neuroquery / pubget

Collecting papers from PubMed Central and extracting text, metadata and stereotactic coordinates.
https://neuroquery.github.io/pubget/
MIT License
20 stars 12 forks source link

Accept PubMed IDs, and conver to PMCIDS #45

Open adelavega opened 3 months ago

adelavega commented 3 months ago

Feature suggestion from the hackathon

jeromedockes commented 2 months ago

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 commented 2 months ago

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