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

Accept PubMed IDs, and conver to PMCIDS #45

Open
adelavega opened this issue May 8, 2024 · 2 comments
Open

Accept PubMed IDs, and conver to PMCIDS #45

adelavega opened this issue May 8, 2024 · 2 comments

Comments

@adelavega
Copy link
Collaborator

Feature suggestion from the hackathon

@jeromedockes
Copy link
Member

sounds like a good idea! it shouldn't be too hard as there is an API to do the conversion, or a large csv containing the mapping that can be downloaded from an ftp

@adelavega
Copy link
Collaborator Author

Yeah, pretty easy.

Here's some code that does it, with a progress bar and chunking to the maximum API call size:

https://github.com/neurosynth/ACE/blob/c7b300b9a80b6946f7f23f267b8c9909ee66af7a/ace/scrape.py#L47

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

2 participants