@brainpilot/skills 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/package.json +1 -1
  2. package/skills/01_Meta-Skills/workflow-skill-creator/SKILL.md +288 -0
  3. package/skills/01_Meta-Skills/workflow-skill-creator/references/cli_script_template.py +217 -0
  4. package/skills/06_fMRI_Neuroimaging/fmriprep/SKILL.md +256 -0
  5. package/skills/06_fMRI_Neuroimaging/fmriprep/references/bids-filter.md +287 -0
  6. package/skills/06_fMRI_Neuroimaging/fmriprep/references/citation.md +284 -0
  7. package/skills/06_fMRI_Neuroimaging/fmriprep/references/cli-reference.md +260 -0
  8. package/skills/06_fMRI_Neuroimaging/fmriprep/references/confounds.md +344 -0
  9. package/skills/06_fMRI_Neuroimaging/fmriprep/references/installation.md +346 -0
  10. package/skills/06_fMRI_Neuroimaging/fmriprep/references/outputs.md +369 -0
  11. package/skills/06_fMRI_Neuroimaging/fmriprep/references/sdc-fieldmaps.md +306 -0
  12. package/skills/06_fMRI_Neuroimaging/fmriprep/references/spaces.md +334 -0
  13. package/skills/06_fMRI_Neuroimaging/fmriprep/references/troubleshooting-faq.md +419 -0
  14. package/skills/06_fMRI_Neuroimaging/fmriprep/references/usage-examples.md +465 -0
  15. package/skills/06_fMRI_Neuroimaging/fmriprep/references/versions-dependencies.md +228 -0
  16. package/skills/06_fMRI_Neuroimaging/fmriprep/references/workflows.md +392 -0
  17. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/SKILL.md +212 -0
  18. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/datasets.md +252 -0
  19. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/interface-plotting.md +238 -0
  20. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/metrics.md +236 -0
  21. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/networks.md +273 -0
  22. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/spatial-modularity.md +291 -0
  23. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/stats.md +290 -0
  24. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/SKILL.md +116 -0
  25. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/references/citation.bib +58 -0
  26. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_pae.py +212 -0
  27. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_plddt.py +125 -0
  28. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/fetch_structure.py +168 -0
  29. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/SKILL.md +176 -0
  30. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/references/citation.bib +14 -0
  31. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/scripts/gtex_cli.py +281 -0
  32. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/SKILL.md +181 -0
  33. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/citation.bib +14 -0
  34. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/search-api.md +137 -0
  35. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/scripts/hpa_cli.py +263 -0
  36. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/SKILL.md +169 -0
  37. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/references/citation.bib +15 -0
  38. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/download_coordinate_files.py +113 -0
  39. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_pdb_metadata.py +70 -0
  40. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_schema.py +251 -0
  41. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/search_pdb.py +187 -0
  42. package/skills/09_Cellular_Molecular_Neuroscience/pymol/SKILL.md +146 -0
  43. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/PYMOL_REFERENCE.md +160 -0
  44. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/RECIPES.md +348 -0
  45. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/citation.bib +6 -0
  46. package/skills/17_Literature_Databases/literature-search-arxiv/SKILL.md +120 -0
  47. package/skills/17_Literature_Databases/literature-search-arxiv/references/citation.bib +18 -0
  48. package/skills/17_Literature_Databases/literature-search-arxiv/references/query_syntax.md +34 -0
  49. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper.py +116 -0
  50. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper_source.py +98 -0
  51. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/search_arxiv.py +174 -0
  52. package/skills/17_Literature_Databases/literature-search-biorxiv/SKILL.md +169 -0
  53. package/skills/17_Literature_Databases/literature-search-biorxiv/references/citation.bib +12 -0
  54. package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_dates.py +297 -0
  55. package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_doi.py +72 -0
  56. package/skills/17_Literature_Databases/literature-search-europepmc/SKILL.md +229 -0
  57. package/skills/17_Literature_Databases/literature-search-europepmc/references/citation.bib +15 -0
  58. package/skills/17_Literature_Databases/literature-search-europepmc/scripts/europepmc_api.py +345 -0
  59. package/skills/17_Literature_Databases/literature-search-openalex/SKILL.md +169 -0
  60. package/skills/17_Literature_Databases/literature-search-openalex/references/authors.md +78 -0
  61. package/skills/17_Literature_Databases/literature-search-openalex/references/citation.bib +8 -0
  62. package/skills/17_Literature_Databases/literature-search-openalex/references/geo_and_language.md +37 -0
  63. package/skills/17_Literature_Databases/literature-search-openalex/references/institutions.md +64 -0
  64. package/skills/17_Literature_Databases/literature-search-openalex/references/publishers_funders.md +42 -0
  65. package/skills/17_Literature_Databases/literature-search-openalex/references/sources.md +79 -0
  66. package/skills/17_Literature_Databases/literature-search-openalex/references/taxonomy.md +52 -0
  67. package/skills/17_Literature_Databases/literature-search-openalex/references/topics.md +29 -0
  68. package/skills/17_Literature_Databases/literature-search-openalex/references/type_values.md +65 -0
  69. package/skills/17_Literature_Databases/literature-search-openalex/references/works.md +304 -0
  70. package/skills/17_Literature_Databases/literature-search-openalex/scripts/openalex_cli.py +633 -0
  71. package/skills/17_Literature_Databases/pubmed-database/SKILL.md +185 -0
  72. package/skills/17_Literature_Databases/pubmed-database/references/advanced-linking.md +128 -0
  73. package/skills/17_Literature_Databases/pubmed-database/references/advanced-search.md +98 -0
  74. package/skills/17_Literature_Databases/pubmed-database/references/bulk-workflows.md +88 -0
  75. package/skills/17_Literature_Databases/pubmed-database/references/citation-matching.md +155 -0
  76. package/skills/17_Literature_Databases/pubmed-database/references/citation.bib +15 -0
  77. package/skills/17_Literature_Databases/pubmed-database/references/cross-database-linking.md +93 -0
  78. package/skills/17_Literature_Databases/pubmed-database/references/fetch-and-resolve.md +125 -0
  79. package/skills/17_Literature_Databases/pubmed-database/references/search-and-discovery.md +106 -0
  80. package/skills/17_Literature_Databases/pubmed-database/references/utilities.md +42 -0
  81. package/skills/17_Literature_Databases/pubmed-database/scripts/pubmed_api.py +715 -0
  82. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/SKILL.md +251 -0
  83. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/pyproject.toml +15 -0
  84. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/references/citation.bib +12 -0
  85. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/analyze_ism.py +334 -0
  86. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/generate_ontology_mapping.py +170 -0
  87. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/interpret_splicing.py +305 -0
  88. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/lookup_gene_info.py +337 -0
  89. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/resolve_ontology_terms.py +155 -0
  90. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_genome_tracks.py +402 -0
  91. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_variant_effects.py +1198 -0
  92. package/skills/18_Genetics_Genomics/clinvar-database/SKILL.md +370 -0
  93. package/skills/18_Genetics_Genomics/clinvar-database/references/citation.bib +23 -0
  94. package/skills/18_Genetics_Genomics/clinvar-database/scripts/clinvar_api.py +711 -0
  95. package/skills/18_Genetics_Genomics/dbsnp-database/SKILL.md +350 -0
  96. package/skills/18_Genetics_Genomics/dbsnp-database/references/api-notes.md +88 -0
  97. package/skills/18_Genetics_Genomics/dbsnp-database/references/citation.bib +12 -0
  98. package/skills/18_Genetics_Genomics/dbsnp-database/scripts/dbsnp_cli.py +625 -0
  99. package/skills/18_Genetics_Genomics/gnomad-database/SKILL.md +73 -0
  100. package/skills/18_Genetics_Genomics/gnomad-database/references/citation.bib +14 -0
  101. package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_gene_constraint.py +90 -0
  102. package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_variant_frequency.py +181 -0
  103. package/skills/18_Genetics_Genomics/gnomad-database/scripts/search_variants.py +207 -0
  104. package/skills/19_Pharmacology/chembl-database/SKILL.md +283 -0
  105. package/skills/19_Pharmacology/chembl-database/references/api_endpoints.md +97 -0
  106. package/skills/19_Pharmacology/chembl-database/references/citation.bib +30 -0
  107. package/skills/19_Pharmacology/chembl-database/scripts/chembl_api.py +657 -0
  108. package/skills/19_Pharmacology/clinical-trials-database/SKILL.md +378 -0
  109. package/skills/19_Pharmacology/clinical-trials-database/references/citation.bib +11 -0
  110. package/skills/19_Pharmacology/clinical-trials-database/references/clinical_trials_api.md +187 -0
  111. package/skills/19_Pharmacology/clinical-trials-database/references/studies_schema.md +143 -0
  112. package/skills/19_Pharmacology/clinical-trials-database/scripts/clinical_trials_api.py +373 -0
  113. package/skills/19_Pharmacology/openfda-database/SKILL.md +225 -0
  114. package/skills/19_Pharmacology/openfda-database/references/api_endpoints.md +207 -0
  115. package/skills/19_Pharmacology/openfda-database/references/citation.bib +15 -0
  116. package/skills/19_Pharmacology/openfda-database/references/recipes.md +150 -0
  117. package/skills/19_Pharmacology/openfda-database/scripts/openfda_query.py +505 -0
  118. package/skills/19_Pharmacology/opentargets-database/SKILL.md +198 -0
  119. package/skills/19_Pharmacology/opentargets-database/references/OpenTargets_GraphQL_Guide.md +216 -0
  120. package/skills/19_Pharmacology/opentargets-database/references/citation.bib +15 -0
  121. package/skills/19_Pharmacology/opentargets-database/scripts/query_opentargets.py +533 -0
  122. package/skills/19_Pharmacology/pubchem-database/SKILL.md +164 -0
  123. package/skills/19_Pharmacology/pubchem-database/references/citation.bib +15 -0
  124. package/skills/19_Pharmacology/pubchem-database/references/endpoints.md +71 -0
  125. package/skills/19_Pharmacology/pubchem-database/references/workflows.md +32 -0
  126. package/skills/19_Pharmacology/pubchem-database/scripts/pubchem_api.py +327 -0
  127. package/skills/20_Infrastructure/uv/SKILL.md +30 -0
  128. package/skills/01_Meta-Skills/academic-research-hub/SKILL.md +0 -108
  129. package/skills/01_Meta-Skills/academic-research-hub/scripts/requirements.txt +0 -17
  130. package/skills/01_Meta-Skills/academic-research-hub/scripts/research.py +0 -781
  131. package/skills/01_Meta-Skills/beautiful-log/SKILL.md +0 -64
  132. package/skills/01_Meta-Skills/beautiful-log/scripts/beautiful_log.py +0 -274
  133. package/skills/01_Meta-Skills/ethoclaw-daily-paper/SKILL.md +0 -130
  134. package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/config.template.yaml +0 -54
  135. package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/top5_digest_template.md +0 -5
  136. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/build_top5_digest.py +0 -300
  137. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/common.py +0 -137
  138. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/merge_results.py +0 -106
  139. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/run_pipeline.py +0 -177
  140. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_arxiv.py +0 -162
  141. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_pubmed.py +0 -202
  142. package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/SKILL.md +0 -173
  143. package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/scripts/normalize_data.py +0 -874
  144. package/skills/01_Meta-Skills/ethoclaw-pdf-research/SKILL.md +0 -134
  145. package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/confirmation-prompts.md +0 -31
  146. package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/output-patterns.md +0 -45
  147. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_markdown_deliverables.py +0 -41
  148. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_research_log.py +0 -84
  149. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_summary_md.py +0 -63
  150. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/extract_pdf_bundle.py +0 -140
  151. package/skills/01_Meta-Skills/experiment-controller/SKILL.md +0 -140
  152. package/skills/01_Meta-Skills/knowledge-graph-builder/SKILL.md +0 -366
  153. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/entity_resolution.py +0 -120
  154. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/extraction_prompt_template.txt +0 -19
  155. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/graph_query.py +0 -106
  156. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/hypothesis_cli_reference.py +0 -42
  157. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/new_data_source_template.py +0 -116
  158. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/requirements.txt +0 -15
  159. package/skills/01_Meta-Skills/method-design/SKILL.md +0 -61
  160. package/skills/01_Meta-Skills/multi-search-engine/SKILL.md +0 -119
  161. package/skills/01_Meta-Skills/research-idea/SKILL.md +0 -65
  162. package/skills/05_EEG_ERP/eeg-skill/SKILL.md +0 -197
  163. package/skills/05_EEG_ERP/meg-skill/SKILL.md +0 -188
  164. package/skills/05_EEG_ERP/meg-skill/scripts/time_frequency.py +0 -223
  165. package/skills/05_EEG_ERP/mne-eeg-tool/SKILL.md +0 -165
  166. package/skills/05_EEG_ERP/mne-eeg-tool/scripts/eeg_pipeline_reference.py +0 -231
  167. package/skills/05_EEG_ERP/seed-iv-skill/SKILL.md +0 -184
  168. package/skills/05_EEG_ERP/seed-iv-skill/scripts/classify_seed_iv.py +0 -154
  169. package/skills/05_EEG_ERP/seed-iv-skill/scripts/extract_seed_iv_features.py +0 -190
  170. package/skills/05_EEG_ERP/seed-iv-skill/scripts/validate_seed_iv.py +0 -102
  171. package/skills/05_EEG_ERP/seed-vig-skill/SKILL.md +0 -182
  172. package/skills/05_EEG_ERP/seed-vig-skill/scripts/classify_seed_vig.py +0 -165
  173. package/skills/05_EEG_ERP/seed-vig-skill/scripts/extract_seed_vig_features.py +0 -185
  174. package/skills/05_EEG_ERP/seed-vig-skill/scripts/validate_seed_vig.py +0 -88
  175. package/skills/06_fMRI_Neuroimaging/abcd-skill/SKILL.md +0 -308
  176. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/abcd_qc_summary.py +0 -449
  177. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/extract_abcd_phenotype.py +0 -292
  178. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/reorganize_abcd.py +0 -387
  179. package/skills/06_fMRI_Neuroimaging/abide-skill/SKILL.md +0 -302
  180. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/abide_qc_summary.py +0 -317
  181. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/extract_abide_phenotype.py +0 -267
  182. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/reorganize_abide.py +0 -387
  183. package/skills/06_fMRI_Neuroimaging/adhd200-skill/SKILL.md +0 -244
  184. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/adhd200_qc_summary.py +0 -98
  185. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/extract_adhd200_phenotype.py +0 -134
  186. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/reorganize_adhd200.py +0 -206
  187. package/skills/06_fMRI_Neuroimaging/adni-skill/SKILL.md +0 -358
  188. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_adni_task_files.py +0 -1305
  189. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_vqa_from_tasks.py +0 -766
  190. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/reorganize_adni.py +0 -491
  191. package/skills/06_fMRI_Neuroimaging/aibl-skill/SKILL.md +0 -295
  192. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/aibl_qc_summary.py +0 -260
  193. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/extract_aibl_phenotype.py +0 -365
  194. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/reorganize_aibl.py +0 -394
  195. package/skills/06_fMRI_Neuroimaging/aomic-skill/SKILL.md +0 -292
  196. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/aomic_qc_summary.py +0 -258
  197. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/extract_aomic_phenotype.py +0 -284
  198. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/reorganize_aomic.py +0 -322
  199. package/skills/06_fMRI_Neuroimaging/asl-skill/SKILL.md +0 -168
  200. package/skills/06_fMRI_Neuroimaging/asl-skill/scripts/compute_cbf.py +0 -224
  201. package/skills/06_fMRI_Neuroimaging/bids-organizer/SKILL.md +0 -241
  202. package/skills/06_fMRI_Neuroimaging/bold5000-skill/SKILL.md +0 -186
  203. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/bold5000_qc_summary.py +0 -96
  204. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/extract_bold5000_stimulus.py +0 -125
  205. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/reorganize_bold5000.py +0 -102
  206. package/skills/06_fMRI_Neuroimaging/camcan-skill/SKILL.md +0 -213
  207. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/camcan_qc_summary.py +0 -131
  208. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/extract_camcan_phenotype.py +0 -145
  209. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/validate_camcan.py +0 -141
  210. package/skills/06_fMRI_Neuroimaging/cobre-skill/SKILL.md +0 -201
  211. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/cobre_qc_summary.py +0 -95
  212. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/extract_cobre_phenotype.py +0 -104
  213. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/reorganize_cobre.py +0 -140
  214. package/skills/06_fMRI_Neuroimaging/conn-tool/SKILL.md +0 -180
  215. package/skills/06_fMRI_Neuroimaging/dcm2nii/SKILL.md +0 -189
  216. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/SKILL.md +0 -183
  217. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/dmt_har_med_qc_summary.py +0 -96
  218. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/extract_dmt_har_med_phenotype.py +0 -121
  219. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/reorganize_dmt_har_med.py +0 -125
  220. package/skills/06_fMRI_Neuroimaging/dwi-skill/SKILL.md +0 -359
  221. package/skills/06_fMRI_Neuroimaging/fmri-skill/SKILL.md +0 -371
  222. package/skills/06_fMRI_Neuroimaging/fmriprep-tool/SKILL.md +0 -228
  223. package/skills/06_fMRI_Neuroimaging/freesurfer-tool/SKILL.md +0 -286
  224. package/skills/06_fMRI_Neuroimaging/freesurfer-tool/scripts/freesurfer_processor.py +0 -145
  225. package/skills/06_fMRI_Neuroimaging/fsl-tool/SKILL.md +0 -208
  226. package/skills/06_fMRI_Neuroimaging/hbn-skill/SKILL.md +0 -271
  227. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/extract_hbn_phenotype.py +0 -107
  228. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/hbn_qc_summary.py +0 -96
  229. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/reorganize_hbn.py +0 -150
  230. package/skills/06_fMRI_Neuroimaging/hcpa-skill/SKILL.md +0 -210
  231. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/extract_hcpa_phenotype.py +0 -146
  232. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/hcpa_qc_summary.py +0 -120
  233. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/reorganize_hcpa.py +0 -155
  234. package/skills/06_fMRI_Neuroimaging/hcpd-skill/SKILL.md +0 -210
  235. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/extract_hcpd_phenotype.py +0 -148
  236. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/hcpd_qc_summary.py +0 -125
  237. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/reorganize_hcpd.py +0 -146
  238. package/skills/06_fMRI_Neuroimaging/hcpep-skill/SKILL.md +0 -215
  239. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/extract_hcpep_phenotype.py +0 -157
  240. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/hcpep_qc_summary.py +0 -143
  241. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/reorganize_hcpep.py +0 -146
  242. package/skills/06_fMRI_Neuroimaging/hcppipeline-tool/SKILL.md +0 -217
  243. package/skills/06_fMRI_Neuroimaging/hcpya-skill/SKILL.md +0 -214
  244. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/extract_hcpya_phenotype.py +0 -190
  245. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/hcpya_qc_summary.py +0 -152
  246. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/reorganize_hcpya.py +0 -203
  247. package/skills/06_fMRI_Neuroimaging/ixi-skill/SKILL.md +0 -198
  248. package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/ixi_qc_summary.py +0 -137
  249. package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/reorganize_ixi.py +0 -190
  250. package/skills/06_fMRI_Neuroimaging/mnd-skill/SKILL.md +0 -191
  251. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/extract_mnd_phenotype.py +0 -143
  252. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/mnd_qc_summary.py +0 -120
  253. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/validate_mnd.py +0 -107
  254. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/SKILL.md +0 -203
  255. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/analyze_lesions.py +0 -119
  256. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/longitudinal_lesion.py +0 -148
  257. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/mschallenge_qc_summary.py +0 -132
  258. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/validate_mschallenge.py +0 -116
  259. package/skills/06_fMRI_Neuroimaging/nibabel-skill/SKILL.md +0 -184
  260. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/atlas_coordinate_reference.py +0 -61
  261. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/freesurfer_io_reference.py +0 -34
  262. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/nifti_inspection_reference.py +0 -35
  263. package/skills/06_fMRI_Neuroimaging/nifd-skill/SKILL.md +0 -205
  264. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/extract_nifd_phenotype.py +0 -132
  265. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/nifd_qc_summary.py +0 -111
  266. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/validate_nifd.py +0 -111
  267. package/skills/06_fMRI_Neuroimaging/nii2dcm/SKILL.md +0 -143
  268. package/skills/06_fMRI_Neuroimaging/nilearn-tool/SKILL.md +0 -266
  269. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/connectome_reference.py +0 -65
  270. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/denoise_timeseries_reference.py +0 -58
  271. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/hierarchical_parcellation_reference.py +0 -53
  272. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/kmeans_parcellation_reference.py +0 -53
  273. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/preprocess_bold_reference.py +0 -76
  274. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_dictlearning_reference.py +0 -56
  275. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_ica_reference.py +0 -59
  276. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/second_level_glm_reference.py +0 -58
  277. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/spacenet_classifier_reference.py +0 -59
  278. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/svm_classifier_reference.py +0 -60
  279. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/task_glm_reference.py +0 -63
  280. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/zalff_summary_reference.py +0 -109
  281. package/skills/06_fMRI_Neuroimaging/nsd-skill/SKILL.md +0 -210
  282. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/extract_nsd_stimulus.py +0 -171
  283. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/nsd_qc_summary.py +0 -142
  284. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/validate_nsd.py +0 -142
  285. package/skills/06_fMRI_Neuroimaging/oasis-skill/SKILL.md +0 -205
  286. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/extract_oasis_phenotype.py +0 -126
  287. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/oasis_qc_summary.py +0 -115
  288. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/validate_oasis.py +0 -119
  289. package/skills/06_fMRI_Neuroimaging/pet-skill/SKILL.md +0 -173
  290. package/skills/06_fMRI_Neuroimaging/pet-skill/scripts/compute_suvr.py +0 -202
  291. package/skills/06_fMRI_Neuroimaging/pnc-skill/SKILL.md +0 -206
  292. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/extract_pnc_phenotype.py +0 -136
  293. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/pnc_qc_summary.py +0 -116
  294. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/validate_pnc.py +0 -120
  295. package/skills/06_fMRI_Neuroimaging/ppmi-skill/SKILL.md +0 -209
  296. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/extract_ppmi_phenotype.py +0 -138
  297. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/ppmi_qc_summary.py +0 -111
  298. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/validate_ppmi.py +0 -117
  299. package/skills/06_fMRI_Neuroimaging/qsiprep-tool/SKILL.md +0 -320
  300. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/SKILL.md +0 -215
  301. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/extract_rest_mdd_phenotype.py +0 -132
  302. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/harmonize_sites.py +0 -152
  303. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/rest_mdd_qc_summary.py +0 -124
  304. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/validate_rest_mdd.py +0 -103
  305. package/skills/06_fMRI_Neuroimaging/smri-skill/SKILL.md +0 -302
  306. package/skills/06_fMRI_Neuroimaging/tcp-skill/SKILL.md +0 -204
  307. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/extract_tcp_phenotype.py +0 -139
  308. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/tcp_qc_summary.py +0 -111
  309. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/validate_tcp.py +0 -99
  310. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/SKILL.md +0 -217
  311. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/extract_ucla_cnp_phenotype.py +0 -145
  312. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/ucla_cnp_qc_summary.py +0 -111
  313. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/validate_ucla_cnp.py +0 -113
  314. package/skills/06_fMRI_Neuroimaging/ukb-skill/SKILL.md +0 -310
  315. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/build_ukb_survival.py +0 -210
  316. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_cases.py +0 -308
  317. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_phenotype.py +0 -232
  318. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/ukb_qc_summary.py +0 -158
  319. package/skills/06_fMRI_Neuroimaging/wmh-segmentation/SKILL.md +0 -133
  320. package/skills/07_Computational_Modeling/detrending/SKILL.md +0 -118
  321. package/skills/07_Computational_Modeling/dictlearning/SKILL.md +0 -122
  322. package/skills/07_Computational_Modeling/filtering/SKILL.md +0 -121
  323. package/skills/07_Computational_Modeling/glm/SKILL.md +0 -153
  324. package/skills/07_Computational_Modeling/hierarchical/SKILL.md +0 -121
  325. package/skills/07_Computational_Modeling/ica/SKILL.md +0 -122
  326. package/skills/07_Computational_Modeling/kmeans/SKILL.md +0 -119
  327. package/skills/07_Computational_Modeling/run_models/SKILL.md +0 -427
  328. package/skills/07_Computational_Modeling/spacenet/SKILL.md +0 -122
  329. package/skills/07_Computational_Modeling/svm/SKILL.md +0 -120
  330. package/skills/08_Computational_Neuroscience/brain_gnn/SKILL.md +0 -183
  331. package/skills/08_Computational_Neuroscience/dipy-tool/SKILL.md +0 -239
  332. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/dti_metrics_reference.py +0 -70
  333. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/load_and_mask_reference.py +0 -76
  334. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/roi_stats_reference.py +0 -59
  335. package/skills/08_Computational_Neuroscience/fm_app/SKILL.md +0 -195
  336. package/skills/08_Computational_Neuroscience/neurostorm/SKILL.md +0 -151
  337. package/skills/13_Visualization/brain-visualization/SKILL.md +0 -191
  338. package/skills/13_Visualization/brain-visualization/scripts/connectome_reference.py +0 -108
  339. package/skills/13_Visualization/brain-visualization/scripts/freesurfer_ply_reference.py +0 -54
  340. package/skills/13_Visualization/brain-visualization/scripts/zalff_summary_reference.py +0 -116
  341. package/skills/13_Visualization/ethoclaw-paper-figure-layout/SKILL.md +0 -78
  342. package/skills/13_Visualization/ethoclaw-paper-figure-layout/assets/naturecomm_figures.tex +0 -74
  343. package/skills/13_Visualization/ethoclaw-paper-figure-layout/scripts/layout_results_foldered.py +0 -579
  344. package/skills/14_Writing/overleaf-skill/SKILL.md +0 -184
  345. package/skills/14_Writing/overleaf-skill/scripts/install.sh +0 -30
  346. package/skills/14_Writing/paper-writing/SKILL.md +0 -146
  347. package/skills/14_Writing/paper-writing/scripts/data_statement_templates.py +0 -164
  348. package/skills/14_Writing/paper-writing/scripts/figure_templates.py +0 -315
  349. package/skills/14_Writing/paper-writing/scripts/nature_figure_style.py +0 -214
  350. package/skills/14_Writing/paper-writing/scripts/section_phrasebank.py +0 -246
  351. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/SKILL.md +0 -274
  352. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.html +0 -112
  353. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.md +0 -21
  354. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/cluster-section.md +0 -5
  355. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/heatmap-section.md +0 -5
  356. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/integrated-interpretation.md +0 -3
  357. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/overview.md +0 -3
  358. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/project-summary.md +0 -3
  359. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/radar-section.md +0 -5
  360. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/raw-trajectory.md +0 -3
  361. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/sample-check.md +0 -3
  362. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/single-subject-section.md +0 -3
  363. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/stats-section.md +0 -5
  364. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/epm.md +0 -52
  365. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/fst.md +0 -37
  366. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/nor.md +0 -39
  367. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/oft.md +0 -43
  368. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tcst.md +0 -45
  369. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tst.md +0 -36
  370. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/input-types.md +0 -59
  371. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/interpretation-guardrails.md +0 -45
  372. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/metadata-schema.md +0 -57
  373. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/report-sections.md +0 -86
  374. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/section-selection-rules.md +0 -169
  375. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/build_report_manifest.py +0 -27
  376. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/render_report.py +0 -34
  377. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/report_utils.py +0 -1121
  378. package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/SKILL.md +0 -390
  379. package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/reference_code.py +0 -98
  380. package/skills/16_Animal_Behavior/ethoclaw-animal-pose-estimation/SKILL.md +0 -336
  381. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/README.md +0 -21
  382. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/SKILL.md +0 -41
  383. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/batch_kinematic_generator.py +0 -663
  384. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/config.json +0 -19
  385. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/generate_kinematic_parameter.py +0 -401
  386. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/kinematic_generator.py +0 -265
  387. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/SKILL.md +0 -72
  388. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/references/config.example.toml +0 -56
  389. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params.py +0 -232
  390. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params_from_config.py +0 -236
  391. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/SKILL.md +0 -68
  392. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/references/notes.md +0 -5
  393. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/scripts/plot_h5_radar.py +0 -513
  394. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/SKILL.md +0 -52
  395. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/config.toml +0 -81
  396. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/references/stats-rule.md +0 -18
  397. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_inspect.py +0 -79
  398. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_batch.py +0 -624
  399. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_stats.py +0 -438
  400. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/SKILL.md +0 -280
  401. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_trajectory.py +0 -790
  402. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_velocity.py +0 -855
  403. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.csv +0 -101
  404. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.h5 +0 -0
  405. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_data_readme.md +0 -126
@@ -0,0 +1,185 @@
1
+ ---
2
+ name: pubmed-database
3
+ description: >-
4
+ Search PubMed for scientific literature, including published clinical trials.
5
+ Fetch abstracts and full text. Link published research to biological databases
6
+ (gene, protein, nucleotide, PubChem) to discover associations between papers
7
+ and specific compounds or genes. Verify medical spelling, match raw citations,
8
+ and cache result sets for bulk processing. Interfaces NCBI E-utilities and PMC
9
+ BioC APIs.
10
+ ---
11
+
12
+ # PubMed API
13
+
14
+ ## Prerequisites
15
+
16
+ 1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
17
+ `uv` is installed and on PATH.
18
+ 2. **User Notification**: If .licenses/pubmed_database_LICENSE.txt does not
19
+ already exist in the workspace root directory then (1) prominently notify
20
+ the user to check the terms at https://pubmed.ncbi.nlm.nih.gov/disclaimer/
21
+ and https://www.ncbi.nlm.nih.gov/home/about/policies/ and to always check
22
+ the license of the papers retrieved by the skill for any restrictions, then
23
+ (2) create the file recording the notification text and timestamp.
24
+ 3. **`.env` file**: Make sure the `.env` file exists in your home directory.
25
+ Create one if it does not exist.
26
+ 4. **`NCBI_API_KEY`** (optional): Raises the NCBI E-utilities rate limit from 3
27
+ to 10 requests/second. The skill works without it, but a key is recommended
28
+ if the user plans many queries or encounters a 429 error. You can register
29
+ for a key for free at https://www.ncbi.nlm.nih.gov/account/settings/. You
30
+ **MUST** use the safe credentials protocol in the `credentials` skill to
31
+ check for and request this key if this skill looks relevant to the user's
32
+ request.
33
+ 5. **`USER_EMAIL`** (optional): Identifies the caller to NCBI (recommended by
34
+ their Terms of Use). You **MUST** use the safe credentials protocol in the
35
+ `credentials` skill to check for and request this credential if this skill
36
+ looks relevant to the user's request.
37
+
38
+ This skill provides CLI access to the NCBI PubMed and PubMed Central APIs via
39
+ `scripts/pubmed_api.py` — a single CLI with 10 functions covering search, fetch,
40
+ linking, full text, spelling, discovery, citation matching, and caching.
41
+
42
+ ## Core Rules
43
+
44
+ - **API Use**: Always use the provided wrapper `scripts/pubmed_api.py` which
45
+ manages rate limits automatically and prevents API abuse. Setting the
46
+ `NCBI_API_KEY` environment variable raises the rate limit from 3 to 10
47
+ requests/second. Querying the API any other way (e.g. via curl, wget, or
48
+ hand-written code) is strictly forbidden.
49
+ - **JSON Processing**: Use `jq` to filter and transform JSON output (or python
50
+ equivalents if `jq` is not available) to prevent hallucinations and context
51
+ overflow.
52
+ - **Temporary Files**: To avoid polluting the working directory with JSON
53
+ files, use a temporary directory inside the current directory. When running
54
+ multiple agents or tasks in parallel, ensure each uses a unique subdirectory
55
+ name (e.g., `tmp_$TASK_ID/`) to avoid file collisions.
56
+ - **Notification**: If this skill is used, ensure this is mentioned in the
57
+ output AND list the URLs of all papers that were used in producing the
58
+ output.
59
+
60
+ ## Structure of the skill folder
61
+
62
+ - `SKILL.md` - This file
63
+ - `scripts/pubmed_api.py` - The skill CLI
64
+ - `references/` - Directory with detailed function specifications
65
+ - `advanced-linking.md`
66
+ - `advanced-search.md`
67
+ - `bulk-workflows.md`
68
+ - `citation-matching.md`
69
+ - `cross-database-linking.md`
70
+ - `fetch-and-resolve.md`
71
+ - `search-and-discovery.md`
72
+ - `utilities.md`
73
+
74
+ ## CLI Usage
75
+
76
+ ```bash
77
+ uv run scripts/pubmed_api.py <output_file> <function_name> <required_args> [--flag value ...]
78
+ ```
79
+
80
+ - **Positional Arguments**: Arguments are positional; list arguments are
81
+ passed as comma-separated strings without spaces (e.g.
82
+ `"35113657,31234568"`).
83
+ - **Flag Options**: Optional arguments can be passed as `--flag value` instead
84
+ of positional args.
85
+ - **Output Handling**: On success, JSON is written to `output_file`. On error,
86
+ the process exits with a non-zero code and no output file is written.
87
+
88
+ ### Example Usage
89
+
90
+ ```bash
91
+ uv run scripts/pubmed_api.py ./search_results.json search_pubmed "BRCA1" --max_results 5
92
+ cat ./search_results.json | jq '.[]' -r
93
+ uv run scripts/pubmed_api.py ./abstracts.json fetch_article_abstracts "35113657"
94
+ cat ./abstracts.json | jq '.[0].title' -r
95
+ ```
96
+
97
+ ## Essential Recipes
98
+
99
+ **Join PMIDs for the next call (most common chaining pattern):**
100
+
101
+ ```bash
102
+ cat ./search_results.json | jq -r 'join(",")'
103
+ ```
104
+
105
+ **Slim abstracts to essential fields and truncate long abstracts:**
106
+
107
+ ```bash
108
+ cat ./abstracts.json | jq '[.[] | {pmid, title, snippet: (.abstract // "")[:500]}]'
109
+ ```
110
+
111
+ **Filter by keyword (null-safe):**
112
+
113
+ ```bash
114
+ cat ./abstracts.json | jq '[.[] | select((.title // "") | contains("Review"))]'
115
+ ```
116
+
117
+ ### Context Management & Accuracy
118
+
119
+ When processing larger result sets (>10 abstracts):
120
+
121
+ 1. **Filter Early**: Use `jq` to verify keywords in abstracts *before* reading
122
+ the full JSON into context.
123
+ 2. **Slimming**: Extract only `title` and `abstract` fields unless explicitly
124
+ instructed otherwise. Author lists and metadata contribute to noise.
125
+ 3. **Bulk Operations (N > 10)**: Avoid fetching or processing IDs one-by-one.
126
+ The API and History Server are designed for bulk retrieval. Fetch all data
127
+ in a **single turn** and use shell pipelines to slim the results before
128
+ reading into context. This prevents turn exhaustion and context overflow.
129
+ 4. **Grounding**: Never use internal knowledge to provide specific identifiers
130
+ (PMIDs, CIDs, Gene IDs) if no results are found. Report the tool's output
131
+ accurately to ensure results are grounded in the current database state.
132
+ 5. **Search Termination**: When asked to find papers that may not exist, limit
133
+ exploration to 3–5 high-quality, varied search queries. If no results match
134
+ after these attempts, conclude that no papers meet the criteria rather than
135
+ continuing to iterate — unless explicitly instructed to be thorough.
136
+
137
+ ## Functions
138
+
139
+ > **⚠️ MANDATORY**: You **MUST** read the linked reference file for a function
140
+ > group **before calling any function** in that group. The tables below only
141
+ > describe *what* each function does — not *how* to call it. Argument names,
142
+ > argument order, flags, and output schemas are **only** documented in the
143
+ > reference files. **Do NOT guess or infer arguments from function names.** If
144
+ > you call a function without first reading its reference, you **will** produce
145
+ > incorrect invocations.
146
+
147
+ ### [Search](references/search-and-discovery.md)
148
+
149
+ - `search_pubmed`: Find PMIDs matching a free-text or structured NCBI query.
150
+ - `global_database_discovery`: Count how many records match a query across
151
+ every NCBI database.
152
+
153
+ ### [Fetch & Resolve](references/fetch-and-resolve.md)
154
+
155
+ - `fetch_article_abstracts`: Retrieve metadata and abstracts for a batch of
156
+ PMIDs.
157
+ - `get_full_text_pmc`: Retrieve open-access full text from PMC.
158
+ - `fetch_database_summary`: Resolve opaque UIDs from any NCBI database into
159
+ human-readable metadata.
160
+
161
+ ### [Cross-Database Linking](references/cross-database-linking.md)
162
+
163
+ - `find_linked_biological_data`: Find records in other NCBI databases linked
164
+ to a source record.
165
+ - `discover_available_links`: List all available ELink linknames for a given
166
+ record.
167
+
168
+ ### [Bulk Workflows](references/bulk-workflows.md)
169
+
170
+ When working with **more than ~10 PMIDs**, avoid processing IDs one-by-one.
171
+ Upload them to the NCBI History Server via `cache_results_history` to get a
172
+ session handle (`webenv` + `query_key`), then pass that handle to
173
+ `fetch_article_abstracts` or `find_linked_biological_data` for a single bulk
174
+ call. Chain with `jq` shell pipelines to slim results before reading into
175
+ context. This prevents turn exhaustion and context overflow. See the reference
176
+ for complete workflow recipes (search→fetch, cross-db exploration, citation
177
+ resolution, and bulk retrieval with data slimming).
178
+
179
+ - `cache_results_history`: Upload PMIDs to the NCBI History Server for bulk
180
+ retrieval.
181
+
182
+ ### [Utilities](references/utilities.md)
183
+
184
+ - `verify_medical_spelling`: Spell-check biomedical terms before searching.
185
+ - `match_raw_citations`: Resolve incomplete bibliographic citations to PMIDs.
@@ -0,0 +1,128 @@
1
+ # Advanced Biological Database Linking (ELink)
2
+
3
+ ## 1. Core Concepts: Database vs. Linkname
4
+
5
+ A query requires both a `target_database` and a `linkname`:
6
+
7
+ * Target Database: The destination repository (e.g., `gene`, `nuccore`,
8
+ `pccompound`).
9
+ * Linkname: The specific "semantic bridge" defined by NCBI. Linknames follow
10
+ the naming convention: `dbfrom_db_subset`. One database pair can have
11
+ multiple linknames representing different relationships.
12
+
13
+ ### Common Database and Linkname Pairs
14
+
15
+ * **pubmed**, `pubmed_pubmed_citedin`: **Forward Citations** — Find papers
16
+ that cite the source paper.
17
+ * **pubmed**, `pubmed_pubmed_refs`: **Backward Citations** — Extract the
18
+ source paper's bibliography.
19
+ * **pubmed**, `pubmed_pubmed`: **Similar Articles** — Papers sharing MeSH
20
+ terms or keywords.
21
+ * **pmc**, `pubmed_pmc`: **Full Text** — Resolve a PMID to a PMCID (required
22
+ for BioC API).
23
+ * **pccompound**, `pubmed_pccompound`: **Chemicals** — Find specific chemicals
24
+ or drugs mentioned (CIDs).
25
+ * **pcassay**, `pubmed_pcassay`: **PubChem BioAssays** — Link to experimental
26
+ results and screening data.
27
+ * **gene**, `pubmed_gene`: **Genetics** — Identify specific NCBI Gene records
28
+ discussed.
29
+ * **nuccore**, `pubmed_nuccore`: **Sequence Data** — Link to
30
+ GenBank/nucleotide sequences.
31
+ * **protein**, `pubmed_protein`: **Proteins** — Link to RefSeq or GenPept
32
+ protein records.
33
+ * **clinvar**, `pubmed_clinvar`: **Clinical Variants** — Find links to the
34
+ ClinVar database (mutations).
35
+ * **snp**, `pubmed_snp`: **SNPs** — Find specific Single Nucleotide
36
+ Polymorphisms.
37
+ * **sra**, `pubmed_sra`: **Raw Data** — Find raw datasets in the Sequence Read
38
+ Archive.
39
+ * **structure**, `pubmed_structure`: **3D Structures** — Find molecular
40
+ structures (PDB) for proteins/ligands.
41
+
42
+ This list covers the most common `pubmed → X` links. For the full list of all
43
+ ELink linknames across all NCBI databases, see the
44
+ [NCBI Entrez Links catalog](https://eutils.ncbi.nlm.nih.gov/entrez/query/static/entrezlinks.html).
45
+
46
+ --------------------------------------------------------------------------------
47
+
48
+ ## 2. Procedural Wisdom: Handling Failure Modes
49
+
50
+ ### The "Indexing Lag" Problem (Recent Papers)
51
+
52
+ NCBI links are not created instantly. There is a human-in-the-loop and automated
53
+ indexing process that results in a **4-8 week delay** for cross-database links.
54
+
55
+ **Symptom**: `find_linked_biological_data` returns `[]` for a paper published 2
56
+ weeks ago.
57
+
58
+ **Strategy**: If the paper is very recent, **pivot immediately** to semantic
59
+ search or full-text extraction. Use `get_full_text_pmc` and search for primary
60
+ identifiers in the prose (e.g., by searching for specific identifiers or
61
+ nomenclature manually).
62
+
63
+ ### The "High-Citation" Timeout
64
+
65
+ For foundational papers with >10,000 citations, `pubmed_pubmed_citedin` may fail
66
+ or timeout.
67
+
68
+ **Strategy**: Instead of linking, use `search_pubmed` with the title of the
69
+ paper in quotes or a specific query like `"citations for PMID [SOURCE_PMID]"`
70
+
71
+ ### Verifying Open Access Availability
72
+
73
+ Before calling `get_full_text_pmc`, it is more reliable to check the link first
74
+
75
+ **Workflow**: Call `find_linked_biological_data` with `target_database="pmc"`
76
+ and `linkname="pubmed_pmc"`. If it returns a result, the paper is definitely in
77
+ the PMC BioC database. If not, don't waste time on a full-text fetch; use
78
+ `fetch_article_abstracts` instead.
79
+
80
+ --------------------------------------------------------------------------------
81
+
82
+ ## 3. Category-Specific Tips
83
+
84
+ ### Chemical Entities (`pccompound`, `pcassay`)
85
+
86
+ Links to chemical databases typically return **internal identifiers** (e.g.,
87
+ PubChem CIDs) rather than common names.
88
+
89
+ **Example**: A link to a drug study might return `["4091"]`.
90
+
91
+ **Note**: To resolve these to names, you must use a separate metadata lookup or
92
+ search strategy, as the linking tool only provides the relationship, not the
93
+ entity details.
94
+
95
+ ### Sequence and Genomic Data (`nuccore`, `protein`, `gene`)
96
+
97
+ These links represent formal submissions to NCBI repositories (like GenBank).
98
+
99
+ **Strategy**: If a link search returns empty for recent research, search for the
100
+ paper's title or key findings in PubMed to find the abstract. Authors often
101
+ include primary identifiers in the text before the database cross-references are
102
+ finalized.
103
+
104
+ --------------------------------------------------------------------------------
105
+
106
+ ## 4. Troubleshooting Empty Results
107
+
108
+ If `find_linked_biological_data` returns `[]`:
109
+
110
+ 1. **Check Date**: Is it a recent paper? (Indexing lag).
111
+ 2. **Check Scope**: Is the topic niche? (Authors may not have submitted data to
112
+ NCBI).
113
+ 3. **Check Database Pair**: Ensure you are using the correct `linkname` for the
114
+ `target_database`. Using `pubmed_gene` with `target_database="nuccore"` will
115
+ fail.
116
+
117
+ --------------------------------------------------------------------------------
118
+
119
+ ## 5. Advanced Features
120
+
121
+ * **Reverse lookups**: `find_linked_biological_data` accepts a `dbfrom`
122
+ parameter (default: `"pubmed"`). Set it to another database to traverse
123
+ links in the opposite direction (e.g., `gene → pubmed`).
124
+ * **Date filtering**: Pass `mindate` and `maxdate` (YYYY/MM/DD format) to
125
+ filter linked results by publication date. Only works when `dbfrom` and
126
+ `target_database` are both `"pubmed"`.
127
+ * **Link discovery**: Use `discover_available_links` with a record ID to list
128
+ all available linknames before calling `find_linked_biological_data`.
@@ -0,0 +1,98 @@
1
+ # PubMed Advanced Search Reference
2
+
3
+ This guide provides a comprehensive reference for advanced PubMed querying,
4
+ specifically for scientific research, high-precision filtering, and niche
5
+ metadata analysis.
6
+
7
+ ## 1. Complete Field Qualifier Reference (Search Tags)
8
+
9
+ * **[sh]**, MeSH Subheadings: Limits a MeSH term to a specific aspect. E.g.,
10
+ `"Parkinson disease/genetics"[sh]`. Common: `/therapy`, `/toxicity`,
11
+ `/drug effects`.
12
+ * **[majr]**, MeSH Major Topic: Limits results to citations where the MeSH
13
+ term is the **primary focus** of the article.
14
+ * **[crdt]**, Create Date: The date the record was first added to PubMed. Best
15
+ for finding "what's new" in the database.
16
+ * **[edat]**, Entry Date: Used for sorting by "Most Recent." Set to
17
+ publication date for older papers newly added.
18
+ * **[sb]**, Subset: Pre-built high-quality filters. E.g., `systematic[sb]`,
19
+ `"free full text"[sb]`, `cancer[sb]`.
20
+ * **[nm]**, Supplementary Concept: For specific chemicals, drugs, or rare
21
+ substances not yet in MeSH (formerly Substance Name).
22
+ * **[ad]**, Affiliation: Search for authors at specific institutions, cities,
23
+ or countries. E.g., `Stanford[ad]`.
24
+ * **[auid]**, Author Identifier: Search by unique identifiers like ORCID.
25
+ E.g., `0000-0002-1234-5678[auid]`.
26
+ * **[la]**, Language: Restrict results by language. E.g., `eng[la]`.
27
+ * **[pt]**, Publication Type: Filter by study design: `Meta-Analysis`,
28
+ `Systematic Review`, `Randomized Controlled Trial`.
29
+ * **[tw]**, Text Word: Includes Title, Abstract, MeSH, Subheadings, and other
30
+ indexing fields. Very broad.
31
+ * **[ta]**, Journal: Search by NLM Title Abbreviation or ISSN. E.g.,
32
+ `Nature[ta]`.
33
+
34
+ ## 2. Advanced Syntax & Logic
35
+
36
+ ### Proximity Searching
37
+
38
+ Finds terms within a specific distance of each other. Available in `[ti]`,
39
+ `[tiab]`, and `[ad]`.
40
+
41
+ **Format:** `"term1 term2"[field:~N]`
42
+
43
+ **Example:** `"gut microbiome"[tiab:~2]` finds "gut" and "microbiome" with up
44
+ to 2 words between them.
45
+
46
+ ### Boolean Nesting
47
+
48
+ PubMed processes logic from left to right. Use parentheses to control the order
49
+ of operations.
50
+
51
+ **Example:**
52
+
53
+ `(Parkinson OR "Dopamine deficiency") AND (Microbiome OR "Gut Flora")`
54
+
55
+ ### Truncation
56
+
57
+ Use `*` at the end of a word to search for all terms that begin with that root.
58
+
59
+ **Example:** `patholog*` finds pathology, pathologist, pathological.
60
+
61
+ **Note:** Truncation turns off **Automatic Term Mapping (ATM)**.
62
+
63
+ ## 3. Specialized Research Strategies
64
+
65
+ ### Evidence-Based Medicine (EBM) Filters
66
+
67
+ To find the highest quality clinical evidence, append these filters:
68
+
69
+ - **Systematic Reviews:** `AND systematic[sb]`
70
+ - **Clinical Trials:** `AND "Clinical Trial"[pt]`
71
+ - **Meta-Analyses:** `AND "Meta-Analysis"[pt]`
72
+
73
+ ### The "Expert Query" Construction
74
+
75
+ For maximum coverage and precision, combine MeSH terms with Title/Abstract
76
+ keywords:
77
+
78
+ ```
79
+ ("Parkinson Disease"[mesh] OR "Parkinson's"[tiab])
80
+ AND ("Gastrointestinal Microbiome"[mesh] OR "gut microbiome"[tiab:~2])
81
+ ```
82
+
83
+ ### Tracking Literature Updates
84
+
85
+ To find only the papers added to the database since your last visit (e.g., March
86
+ 1st):
87
+
88
+ - `Parkinson[tiab] AND 2026/03/01:2026/03/13[crdt]`
89
+
90
+ ## 4. Troubleshooting & Nuances
91
+
92
+ - **ATM (Automatic Term Mapping):** If you search `Parkinson`, PubMed
93
+ automatically adds `"Parkinson Disease"[mesh]`. If you use quotes
94
+ (`"Parkinson"`) or truncation (`Parkinson*`), ATM is disabled.
95
+ - **Interchangeable Tags:** `[dp]` and `[pdat]` are identical. `[ta]` and
96
+ `[journal]` are identical.
97
+ - **Language Bias:** PubMed is predominantly English-language. Use `eng[la]`
98
+ if the agent must perform text analysis on the results.
@@ -0,0 +1,88 @@
1
+ # Bulk Workflows
2
+
3
+ Argument specifications for `cache_results_history` and common multi-step batch
4
+ patterns for search, fetch, linking, and large-scale retrieval.
5
+
6
+ ## `cache_results_history` — Batch-upload PMIDs for bulk retrieval
7
+
8
+ Uploads a batch of PMIDs to the NCBI History Server and returns a `webenv` and
9
+ `query_key` session handle. Use this when working with **more than ~10 PMIDs**
10
+ or when the same batch of IDs will be passed to multiple subsequent calls (e.g.
11
+ fetch abstracts *and* link to genes). For small batches (≤10 IDs), pass them
12
+ inline instead — it saves a round-trip. The returned handles can be passed to
13
+ `fetch_article_abstracts` or `find_linked_biological_data`.
14
+
15
+ ```bash
16
+ uv run scripts/pubmed_api.py ./batch_session.json cache_results_history "35113657,31234568,29474920"
17
+ ```
18
+
19
+ **Arguments:**
20
+
21
+ - `pmids` (list[str], required) – comma-separated PMIDs to upload.
22
+
23
+ **Output:**
24
+
25
+ ```json
26
+ {
27
+ "webenv": "NCID_1_123456789_130.14.18.97_9001",
28
+ "query_key": "1"
29
+ }
30
+ ```
31
+
32
+ --------------------------------------------------------------------------------
33
+
34
+ ## Workflow Recipes
35
+
36
+ ### Search → batch fetch abstracts → summarize
37
+
38
+ ```bash
39
+ uv run scripts/pubmed_api.py ./mrna_melanoma_results.json search_pubmed "mRNA vaccines melanoma" --max_results 5 --sort_by relevance
40
+ uv run scripts/pubmed_api.py ./mrna_melanoma_abstracts.json fetch_article_abstracts "PMID1,PMID2,PMID3,PMID4,PMID5"
41
+ ```
42
+
43
+ ### Search → full text (open-access only)
44
+
45
+ ```bash
46
+ uv run scripts/pubmed_api.py ./psilocybin_depression_results.json search_pubmed "psilocybin depression" --max_results 5 --sort_by relevance
47
+ uv run scripts/pubmed_api.py ./psilocybin_depression_full_text.json get_full_text_pmc "PMID1"
48
+ ```
49
+
50
+ If `get_full_text_pmc` returns an error, the paper is not open-access; use
51
+ `fetch_article_abstracts` instead.
52
+
53
+ ### Fuzzy citation → fetch
54
+
55
+ ```bash
56
+ uv run scripts/pubmed_api.py ./nature2006_pmids.json match_raw_citations "nature|2006||||takahashi k|key0|"
57
+ uv run scripts/pubmed_api.py ./abstracts.json fetch_article_abstracts "RESOLVED_PMID"
58
+ ```
59
+
60
+ ### Cross-database exploration
61
+
62
+ ```bash
63
+ uv run scripts/pubmed_api.py ./35113657_links.json discover_available_links "35113657"
64
+ uv run scripts/pubmed_api.py ./35113657_gene_links.json find_linked_biological_data "35113657" gene pubmed_gene
65
+ uv run scripts/pubmed_api.py ./35113657_compound_links.json find_linked_biological_data "35113657" pccompound pubmed_pccompound
66
+ uv run scripts/pubmed_api.py ./35113657_nuccore_links.json find_linked_biological_data "35113657" nuccore pubmed_nuccore
67
+ uv run scripts/pubmed_api.py ./35113657_citing_papers.json find_linked_biological_data "35113657" pubmed pubmed_pubmed_citedin
68
+ ```
69
+
70
+ ### Bulk Retrieval and Data Slimming (N > 10)
71
+
72
+ For large result batches, avoid processing IDs iteratively. Chain
73
+ `cache_results_history` and **shell pipelines** to perform batch retrieval and
74
+ slimming in one turn.
75
+
76
+ ```bash
77
+ # 1. Search and batch-upload to get a session handle
78
+ PMIDS=$(uv run scripts/pubmed_api.py ./s.json search_pubmed "CRISPR" --max_results 50 && cat ./s.json | jq -r 'join(",")')
79
+ uv run scripts/pubmed_api.py ./session.json cache_results_history "$PMIDS"
80
+ WEBENV=$(cat ./session.json | jq -r '.webenv')
81
+
82
+ # 2. Bulk fetch AND slim to only relevant fields in ONE turn
83
+ # Use brackets in jq [ ... ] to ensure the output is a valid JSON array.
84
+ uv run scripts/pubmed_api.py ./full.json fetch_article_abstracts "" --webenv "$WEBENV" --query_key 1
85
+ cat ./full.json | jq '[.[] | {pmid: .pmid, title: .title, abstract: .abstract}]' > ./slim.json
86
+ ```
87
+
88
+ When using `--webenv`/`--query_key`, pass `""` for the `pmids` argument.
@@ -0,0 +1,155 @@
1
+ # Citation Matching Guide (ecitmatch)
2
+
3
+ The `match_raw_citations` tool uses NCBI's ecitmatch endpoint, which predates
4
+ modern APIs. This guide covers the pipe format, field selection strategies, and
5
+ what to do when matching fails.
6
+
7
+ --------------------------------------------------------------------------------
8
+
9
+ ## 1. The Pipe Format
10
+
11
+ Each citation is a single string with 7 pipe-separated fields and a trailing
12
+ pipe:
13
+
14
+ ```
15
+ journal|year|volume|first_page|author_name|key|
16
+ ```
17
+
18
+ All fields except `journal` are optional — empty segments are valid. The `key`
19
+ is an arbitrary label you choose to track which citation matched which PMID in
20
+ the results.
21
+
22
+ **Examples:** `nature|2006||||takahashi k|ref1| proc natl acad
23
+ sci|2007|104|11760|takahashi k|ref2| cell|2020|183||doe j|ref3|`
24
+
25
+ Assemble the pipe-delimited string directly — all fields except `journal` are
26
+ optional, so leave unwanted segments empty.
27
+
28
+ --------------------------------------------------------------------------------
29
+
30
+ ## 2. Which Fields Matter Most
31
+
32
+ Not all fields contribute equally. ecitmatch uses fuzzy matching, but some
33
+ combinations are far more reliable than others.
34
+
35
+ **High-value combinations (use these first):** - `journal` + `author` + `year` —
36
+ resolves most citations - `journal` + `volume` + `first_page` — uniquely
37
+ identifies articles even without author/year
38
+
39
+ **Low-value on their own:** - `year` alone — too broad - `first_page` alone —
40
+ page numbers repeat across volumes - `volume` alone — meaningless without
41
+ journal
42
+
43
+ **Strategy:** Start with whatever fields you have. If it misses, drop the most
44
+ uncertain field (often `first_page` or `volume`) and retry — ecitmatch sometimes
45
+ does worse with partly-wrong data than with missing data.
46
+
47
+ --------------------------------------------------------------------------------
48
+
49
+ ## 3. Journal Name Pitfalls
50
+
51
+ The `journal` field is the most critical and the most error-prone.
52
+
53
+ **Abbreviation vs. full name:** ecitmatch accepts both, but they are not
54
+ interchangeable for all journals. When in doubt, use the NLM abbreviated form.
55
+
56
+ Common mappings: - "The New England Journal of Medicine" → `n engl j med` -
57
+ "Proceedings of the National Academy of Sciences" → `proc natl acad sci` - "The
58
+ Journal of Biological Chemistry" → `j biol chem` - "JAMA" → `jama` (already
59
+ abbreviated)
60
+
61
+ **Case:** ecitmatch is case-insensitive. `Nature` and `nature` are equivalent.
62
+
63
+ **Punctuation:** Strip periods from abbreviations. Use `j biol chem` not `J.
64
+ Biol. Chem.`
65
+
66
+ --------------------------------------------------------------------------------
67
+
68
+ ## 4. Author Name Format
69
+
70
+ ecitmatch expects **last name followed by first initial**, lowercase, no
71
+ periods, no commas.
72
+
73
+ Source format | ecitmatch format
74
+ :----------------- | :---------------
75
+ Takahashi, K. | `takahashi k`
76
+ John A. Smith | `smith j`
77
+ María García-López | `garcia-lopez m`
78
+ van der Berg, P.J. | `van der berg p`
79
+
80
+ Only provide the **first author**. ecitmatch ignores additional authors.
81
+
82
+ --------------------------------------------------------------------------------
83
+
84
+ ## 5. Batching Multiple Citations
85
+
86
+ Pass multiple citations as a comma-separated list to `match_raw_citations`:
87
+
88
+ ```bash
89
+ uv run scripts/pubmed_api.py /tmp/pubmed_results.json match_raw_citations \
90
+ "nature|2006||||takahashi k|ref1|,cell|2020|183||doe j|ref2|"
91
+ ```
92
+
93
+ The response returns PMIDs for matched citations only. Unmatched citations are
94
+ silently dropped. Match the `key` field in the response to track which citations
95
+ resolved.
96
+
97
+ --------------------------------------------------------------------------------
98
+
99
+ ## 6. When ecitmatch Fails
100
+
101
+ ecitmatch has a ~70-80% hit rate on well-formed citations and drops sharply with
102
+ messy input. When it returns empty:
103
+
104
+ ### Fallback 1: Search PubMed directly
105
+
106
+ Construct a query from the citation fields:
107
+
108
+ ```bash
109
+ uv run scripts/pubmed_api.py /tmp/pubmed_results.json search_pubmed \
110
+ '"Takahashi" AND "2006" AND "Nature"' 5
111
+ ```
112
+
113
+ ### Fallback 2: Title search
114
+
115
+ If you have the paper title (even partial):
116
+
117
+ ```bash
118
+ uv run scripts/pubmed_api.py /tmp/pubmed_results.json search_pubmed \
119
+ '"Induction of Pluripotent Stem Cells"[ti]' 5
120
+ ```
121
+
122
+ ### Fallback 3: Strip fields and retry
123
+
124
+ Remove the least-reliable field and resubmit:
125
+
126
+ ```bash
127
+ uv run scripts/pubmed_api.py /tmp/pubmed_results.json match_raw_citations \
128
+ "nature|2006||||takahashi k|ref1|"
129
+ uv run scripts/pubmed_api.py /tmp/pubmed_results.json match_raw_citations \
130
+ "nature|||||takahashi k|ref1|"
131
+ ```
132
+
133
+ ### Fallback 4: DOI or known identifier
134
+
135
+ If the source has a DOI, skip ecitmatch entirely:
136
+
137
+ ```bash
138
+ uv run scripts/pubmed_api.py /tmp/pubmed_results.json search_pubmed \
139
+ "10.1016/j.cell.2006.07.024[doi]" 1
140
+ ```
141
+
142
+ --------------------------------------------------------------------------------
143
+
144
+ ## 7. Common Failure Patterns
145
+
146
+ - **Returns empty for a known paper** — Wrong journal abbreviation. Try full
147
+ name or NLM abbreviation.
148
+ - **Returns wrong PMID** — Author name mismatch. Check last-name + initial
149
+ format.
150
+ - **Returns empty for recent paper** — Not yet indexed by ecitmatch. Use
151
+ `search_pubmed` title search.
152
+ - **Returns empty for old paper (pre-1966)** — Pre-MEDLINE era. These papers
153
+ may lack structured metadata.
154
+ - **Multiple citations, partial hits** — One citation has bad data. Check
155
+ returned keys to isolate the miss.
@@ -0,0 +1,15 @@
1
+ @ARTICLE{Sayers2025,
2
+ ABSTRACT = {The National Center for Biotechnology Information (NCBI) provides online information resources for biology, including the GenBank® nucleic acid sequence repository and the PubMed® repository of citations and abstracts published in life science journals. NCBI provides search and retrieval operations for most of these data from 31 distinct repositories and knowledgebases. The E-utilities serve as the programming interface for most of these. Resources receiving significant updates in the past year include PubMed, PubMed Central, Bookshelf, the NIH Comparative Genomics Resource, BLAST, Sequence Read Archive, Taxonomy, iCn3D, Conserved Domain Database, Pathogen Detection, antimicrobial resistance resources and PubChem. These resources can be accessed through the NCBI home page at https://www.ncbi.nlm.nih.gov.},
3
+ AUTHOR = {Sayers, Eric W and Beck, Jeffrey and Bolton, Evan E and Brister, J Rodney and Chan, Jessica and Connor, Ryan and Feldgarden, Michael and Fine, Anna M and Funk, Kathryn and Hoffman, Jinna and Kannan, Sivakumar and Kelly, Christopher and Klimke, William and Kim, Sunghwan and Lathrop, Stacy and Marchler-Bauer, Aron and Murphy, Terence D and O’Sullivan, Chris and Schmieder, Erin and Skripchenko, Yuriy and Stine, Adam and Thibaud-Nissen, Francoise and Wang, Jiyao and Ye, Jian and Zellers, Erin and Schneider, Valerie A and Pruitt, Kim D},
4
+ URL = {https://doi.org/10.1093/nar/gkae979},
5
+ DATE = {2025-01},
6
+ DOI = {10.1093/nar/gkae979},
7
+ EPRINT = {https://academic.oup.com/nar/article-pdf/53/D1/D20/60586411/gkae979.pdf},
8
+ ISSN = {1362-4962},
9
+ JOURNALTITLE = {Nucleic Acids Research},
10
+ NUMBER = {D1},
11
+ PAGES = {D20--D29},
12
+ TITLE = {Database resources of the National Center for Biotechnology Information in 2025},
13
+ VOLUME = {53},
14
+ }
15
+