Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MendeleyPaper not really unique #235

Open
philippbayer opened this issue Jan 19, 2016 · 0 comments
Open

MendeleyPaper not really unique #235

philippbayer opened this issue Jan 19, 2016 · 0 comments

Comments

@philippbayer
Copy link
Member

A minor thing:

https://opensnp.org/search?utf8=%E2%9C%93&search=BRCA1&commit=Search

For some SNPs the Mendeley API returns a paper with a slightly different first author (in the above example: "X Huo" vs. "Xiang Huo", "X D Ma" vs. "X. D. Ma", "S J Ramus" vs "Susan J Ramus" etc.), the problem is that these papers have different reader counts, looks like the names etc. are manually changed over time.

The MendeleyPaper doesn't have a unique doi constraint which causes this (it only has a unique uuid constraint). However, just enforcing it would be boring, we wouldn't get the manual updates to the paper from the Mendeley database, we'd need a minor routine which checks for the paper using the doi and then updates all fields with the fields of the new copy from the Mendeley API. We'd also need a db migration which merges duplicate MendeleyPapers based on doi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant