-
-
Save bmpvieira/251e2ca293abadcf27041bbf669e5b2c to your computer and use it in GitHub Desktop.
easily find retracted papers in PubMed, using only bionode-ncbi and jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you'll need: | |
# - bionode-ncbi (https://github.com/bionode/bionode-ncbi) | |
# - jq (https://github.com/stedolan/jq) | |
# count the number of retracted papers | |
bionode-ncbi search pubmed "\"Retracted Publication\"" \ | |
| jq -c 'select(.pubtype[] | inside("Retracted Publication"))' | |
| wc -l | |
# get DOIs for all the retracted papers | |
# note that not all retracted papers have DOIs - those without DOIs will be left out of this list | |
bionode-ncbi search pubmed "\"Retracted Publication\"" \ | |
| jq -c 'select(.pubtype[] | inside("Retracted Publication")) | .articleids | .[] | select(.idtype == "doi")| .value' \ | |
> pubmed_retracted_DOIs.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment