@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.
- package/package.json +1 -1
- package/skills/01_Meta-Skills/workflow-skill-creator/SKILL.md +288 -0
- package/skills/01_Meta-Skills/workflow-skill-creator/references/cli_script_template.py +217 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/SKILL.md +256 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/bids-filter.md +287 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/citation.md +284 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/cli-reference.md +260 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/confounds.md +344 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/installation.md +346 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/outputs.md +369 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/sdc-fieldmaps.md +306 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/spaces.md +334 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/troubleshooting-faq.md +419 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/usage-examples.md +465 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/versions-dependencies.md +228 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/workflows.md +392 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/SKILL.md +212 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/datasets.md +252 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/interface-plotting.md +238 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/metrics.md +236 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/networks.md +273 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/spatial-modularity.md +291 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/stats.md +290 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/SKILL.md +116 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/references/citation.bib +58 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_pae.py +212 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_plddt.py +125 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/fetch_structure.py +168 -0
- package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/SKILL.md +176 -0
- package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/references/citation.bib +14 -0
- package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/scripts/gtex_cli.py +281 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/SKILL.md +181 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/citation.bib +14 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/search-api.md +137 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/scripts/hpa_cli.py +263 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/SKILL.md +169 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/references/citation.bib +15 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/download_coordinate_files.py +113 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_pdb_metadata.py +70 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_schema.py +251 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/search_pdb.py +187 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/SKILL.md +146 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/PYMOL_REFERENCE.md +160 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/RECIPES.md +348 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/citation.bib +6 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/SKILL.md +120 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/references/citation.bib +18 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/references/query_syntax.md +34 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper.py +116 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper_source.py +98 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/scripts/search_arxiv.py +174 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/SKILL.md +169 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/references/citation.bib +12 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_dates.py +297 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_doi.py +72 -0
- package/skills/17_Literature_Databases/literature-search-europepmc/SKILL.md +229 -0
- package/skills/17_Literature_Databases/literature-search-europepmc/references/citation.bib +15 -0
- package/skills/17_Literature_Databases/literature-search-europepmc/scripts/europepmc_api.py +345 -0
- package/skills/17_Literature_Databases/literature-search-openalex/SKILL.md +169 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/authors.md +78 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/citation.bib +8 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/geo_and_language.md +37 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/institutions.md +64 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/publishers_funders.md +42 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/sources.md +79 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/taxonomy.md +52 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/topics.md +29 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/type_values.md +65 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/works.md +304 -0
- package/skills/17_Literature_Databases/literature-search-openalex/scripts/openalex_cli.py +633 -0
- package/skills/17_Literature_Databases/pubmed-database/SKILL.md +185 -0
- package/skills/17_Literature_Databases/pubmed-database/references/advanced-linking.md +128 -0
- package/skills/17_Literature_Databases/pubmed-database/references/advanced-search.md +98 -0
- package/skills/17_Literature_Databases/pubmed-database/references/bulk-workflows.md +88 -0
- package/skills/17_Literature_Databases/pubmed-database/references/citation-matching.md +155 -0
- package/skills/17_Literature_Databases/pubmed-database/references/citation.bib +15 -0
- package/skills/17_Literature_Databases/pubmed-database/references/cross-database-linking.md +93 -0
- package/skills/17_Literature_Databases/pubmed-database/references/fetch-and-resolve.md +125 -0
- package/skills/17_Literature_Databases/pubmed-database/references/search-and-discovery.md +106 -0
- package/skills/17_Literature_Databases/pubmed-database/references/utilities.md +42 -0
- package/skills/17_Literature_Databases/pubmed-database/scripts/pubmed_api.py +715 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/SKILL.md +251 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/pyproject.toml +15 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/references/citation.bib +12 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/analyze_ism.py +334 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/generate_ontology_mapping.py +170 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/interpret_splicing.py +305 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/lookup_gene_info.py +337 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/resolve_ontology_terms.py +155 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_genome_tracks.py +402 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_variant_effects.py +1198 -0
- package/skills/18_Genetics_Genomics/clinvar-database/SKILL.md +370 -0
- package/skills/18_Genetics_Genomics/clinvar-database/references/citation.bib +23 -0
- package/skills/18_Genetics_Genomics/clinvar-database/scripts/clinvar_api.py +711 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/SKILL.md +350 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/references/api-notes.md +88 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/references/citation.bib +12 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/scripts/dbsnp_cli.py +625 -0
- package/skills/18_Genetics_Genomics/gnomad-database/SKILL.md +73 -0
- package/skills/18_Genetics_Genomics/gnomad-database/references/citation.bib +14 -0
- package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_gene_constraint.py +90 -0
- package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_variant_frequency.py +181 -0
- package/skills/18_Genetics_Genomics/gnomad-database/scripts/search_variants.py +207 -0
- package/skills/19_Pharmacology/chembl-database/SKILL.md +283 -0
- package/skills/19_Pharmacology/chembl-database/references/api_endpoints.md +97 -0
- package/skills/19_Pharmacology/chembl-database/references/citation.bib +30 -0
- package/skills/19_Pharmacology/chembl-database/scripts/chembl_api.py +657 -0
- package/skills/19_Pharmacology/clinical-trials-database/SKILL.md +378 -0
- package/skills/19_Pharmacology/clinical-trials-database/references/citation.bib +11 -0
- package/skills/19_Pharmacology/clinical-trials-database/references/clinical_trials_api.md +187 -0
- package/skills/19_Pharmacology/clinical-trials-database/references/studies_schema.md +143 -0
- package/skills/19_Pharmacology/clinical-trials-database/scripts/clinical_trials_api.py +373 -0
- package/skills/19_Pharmacology/openfda-database/SKILL.md +225 -0
- package/skills/19_Pharmacology/openfda-database/references/api_endpoints.md +207 -0
- package/skills/19_Pharmacology/openfda-database/references/citation.bib +15 -0
- package/skills/19_Pharmacology/openfda-database/references/recipes.md +150 -0
- package/skills/19_Pharmacology/openfda-database/scripts/openfda_query.py +505 -0
- package/skills/19_Pharmacology/opentargets-database/SKILL.md +198 -0
- package/skills/19_Pharmacology/opentargets-database/references/OpenTargets_GraphQL_Guide.md +216 -0
- package/skills/19_Pharmacology/opentargets-database/references/citation.bib +15 -0
- package/skills/19_Pharmacology/opentargets-database/scripts/query_opentargets.py +533 -0
- package/skills/19_Pharmacology/pubchem-database/SKILL.md +164 -0
- package/skills/19_Pharmacology/pubchem-database/references/citation.bib +15 -0
- package/skills/19_Pharmacology/pubchem-database/references/endpoints.md +71 -0
- package/skills/19_Pharmacology/pubchem-database/references/workflows.md +32 -0
- package/skills/19_Pharmacology/pubchem-database/scripts/pubchem_api.py +327 -0
- package/skills/20_Infrastructure/uv/SKILL.md +30 -0
- package/skills/01_Meta-Skills/academic-research-hub/SKILL.md +0 -108
- package/skills/01_Meta-Skills/academic-research-hub/scripts/requirements.txt +0 -17
- package/skills/01_Meta-Skills/academic-research-hub/scripts/research.py +0 -781
- package/skills/01_Meta-Skills/beautiful-log/SKILL.md +0 -64
- package/skills/01_Meta-Skills/beautiful-log/scripts/beautiful_log.py +0 -274
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/SKILL.md +0 -130
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/config.template.yaml +0 -54
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/top5_digest_template.md +0 -5
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/build_top5_digest.py +0 -300
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/common.py +0 -137
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/merge_results.py +0 -106
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/run_pipeline.py +0 -177
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_arxiv.py +0 -162
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_pubmed.py +0 -202
- package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/SKILL.md +0 -173
- package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/scripts/normalize_data.py +0 -874
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/SKILL.md +0 -134
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/confirmation-prompts.md +0 -31
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/output-patterns.md +0 -45
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_markdown_deliverables.py +0 -41
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_research_log.py +0 -84
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_summary_md.py +0 -63
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/extract_pdf_bundle.py +0 -140
- package/skills/01_Meta-Skills/experiment-controller/SKILL.md +0 -140
- package/skills/01_Meta-Skills/knowledge-graph-builder/SKILL.md +0 -366
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/entity_resolution.py +0 -120
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/extraction_prompt_template.txt +0 -19
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/graph_query.py +0 -106
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/hypothesis_cli_reference.py +0 -42
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/new_data_source_template.py +0 -116
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/requirements.txt +0 -15
- package/skills/01_Meta-Skills/method-design/SKILL.md +0 -61
- package/skills/01_Meta-Skills/multi-search-engine/SKILL.md +0 -119
- package/skills/01_Meta-Skills/research-idea/SKILL.md +0 -65
- package/skills/05_EEG_ERP/eeg-skill/SKILL.md +0 -197
- package/skills/05_EEG_ERP/meg-skill/SKILL.md +0 -188
- package/skills/05_EEG_ERP/meg-skill/scripts/time_frequency.py +0 -223
- package/skills/05_EEG_ERP/mne-eeg-tool/SKILL.md +0 -165
- package/skills/05_EEG_ERP/mne-eeg-tool/scripts/eeg_pipeline_reference.py +0 -231
- package/skills/05_EEG_ERP/seed-iv-skill/SKILL.md +0 -184
- package/skills/05_EEG_ERP/seed-iv-skill/scripts/classify_seed_iv.py +0 -154
- package/skills/05_EEG_ERP/seed-iv-skill/scripts/extract_seed_iv_features.py +0 -190
- package/skills/05_EEG_ERP/seed-iv-skill/scripts/validate_seed_iv.py +0 -102
- package/skills/05_EEG_ERP/seed-vig-skill/SKILL.md +0 -182
- package/skills/05_EEG_ERP/seed-vig-skill/scripts/classify_seed_vig.py +0 -165
- package/skills/05_EEG_ERP/seed-vig-skill/scripts/extract_seed_vig_features.py +0 -185
- package/skills/05_EEG_ERP/seed-vig-skill/scripts/validate_seed_vig.py +0 -88
- package/skills/06_fMRI_Neuroimaging/abcd-skill/SKILL.md +0 -308
- package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/abcd_qc_summary.py +0 -449
- package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/extract_abcd_phenotype.py +0 -292
- package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/reorganize_abcd.py +0 -387
- package/skills/06_fMRI_Neuroimaging/abide-skill/SKILL.md +0 -302
- package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/abide_qc_summary.py +0 -317
- package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/extract_abide_phenotype.py +0 -267
- package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/reorganize_abide.py +0 -387
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/SKILL.md +0 -244
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/adhd200_qc_summary.py +0 -98
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/extract_adhd200_phenotype.py +0 -134
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/reorganize_adhd200.py +0 -206
- package/skills/06_fMRI_Neuroimaging/adni-skill/SKILL.md +0 -358
- package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_adni_task_files.py +0 -1305
- package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_vqa_from_tasks.py +0 -766
- package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/reorganize_adni.py +0 -491
- package/skills/06_fMRI_Neuroimaging/aibl-skill/SKILL.md +0 -295
- package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/aibl_qc_summary.py +0 -260
- package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/extract_aibl_phenotype.py +0 -365
- package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/reorganize_aibl.py +0 -394
- package/skills/06_fMRI_Neuroimaging/aomic-skill/SKILL.md +0 -292
- package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/aomic_qc_summary.py +0 -258
- package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/extract_aomic_phenotype.py +0 -284
- package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/reorganize_aomic.py +0 -322
- package/skills/06_fMRI_Neuroimaging/asl-skill/SKILL.md +0 -168
- package/skills/06_fMRI_Neuroimaging/asl-skill/scripts/compute_cbf.py +0 -224
- package/skills/06_fMRI_Neuroimaging/bids-organizer/SKILL.md +0 -241
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/SKILL.md +0 -186
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/bold5000_qc_summary.py +0 -96
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/extract_bold5000_stimulus.py +0 -125
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/reorganize_bold5000.py +0 -102
- package/skills/06_fMRI_Neuroimaging/camcan-skill/SKILL.md +0 -213
- package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/camcan_qc_summary.py +0 -131
- package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/extract_camcan_phenotype.py +0 -145
- package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/validate_camcan.py +0 -141
- package/skills/06_fMRI_Neuroimaging/cobre-skill/SKILL.md +0 -201
- package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/cobre_qc_summary.py +0 -95
- package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/extract_cobre_phenotype.py +0 -104
- package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/reorganize_cobre.py +0 -140
- package/skills/06_fMRI_Neuroimaging/conn-tool/SKILL.md +0 -180
- package/skills/06_fMRI_Neuroimaging/dcm2nii/SKILL.md +0 -189
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/SKILL.md +0 -183
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/dmt_har_med_qc_summary.py +0 -96
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/extract_dmt_har_med_phenotype.py +0 -121
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/reorganize_dmt_har_med.py +0 -125
- package/skills/06_fMRI_Neuroimaging/dwi-skill/SKILL.md +0 -359
- package/skills/06_fMRI_Neuroimaging/fmri-skill/SKILL.md +0 -371
- package/skills/06_fMRI_Neuroimaging/fmriprep-tool/SKILL.md +0 -228
- package/skills/06_fMRI_Neuroimaging/freesurfer-tool/SKILL.md +0 -286
- package/skills/06_fMRI_Neuroimaging/freesurfer-tool/scripts/freesurfer_processor.py +0 -145
- package/skills/06_fMRI_Neuroimaging/fsl-tool/SKILL.md +0 -208
- package/skills/06_fMRI_Neuroimaging/hbn-skill/SKILL.md +0 -271
- package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/extract_hbn_phenotype.py +0 -107
- package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/hbn_qc_summary.py +0 -96
- package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/reorganize_hbn.py +0 -150
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/SKILL.md +0 -210
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/extract_hcpa_phenotype.py +0 -146
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/hcpa_qc_summary.py +0 -120
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/reorganize_hcpa.py +0 -155
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/SKILL.md +0 -210
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/extract_hcpd_phenotype.py +0 -148
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/hcpd_qc_summary.py +0 -125
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/reorganize_hcpd.py +0 -146
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/SKILL.md +0 -215
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/extract_hcpep_phenotype.py +0 -157
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/hcpep_qc_summary.py +0 -143
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/reorganize_hcpep.py +0 -146
- package/skills/06_fMRI_Neuroimaging/hcppipeline-tool/SKILL.md +0 -217
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/SKILL.md +0 -214
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/extract_hcpya_phenotype.py +0 -190
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/hcpya_qc_summary.py +0 -152
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/reorganize_hcpya.py +0 -203
- package/skills/06_fMRI_Neuroimaging/ixi-skill/SKILL.md +0 -198
- package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/ixi_qc_summary.py +0 -137
- package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/reorganize_ixi.py +0 -190
- package/skills/06_fMRI_Neuroimaging/mnd-skill/SKILL.md +0 -191
- package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/extract_mnd_phenotype.py +0 -143
- package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/mnd_qc_summary.py +0 -120
- package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/validate_mnd.py +0 -107
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/SKILL.md +0 -203
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/analyze_lesions.py +0 -119
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/longitudinal_lesion.py +0 -148
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/mschallenge_qc_summary.py +0 -132
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/validate_mschallenge.py +0 -116
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/SKILL.md +0 -184
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/atlas_coordinate_reference.py +0 -61
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/freesurfer_io_reference.py +0 -34
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/nifti_inspection_reference.py +0 -35
- package/skills/06_fMRI_Neuroimaging/nifd-skill/SKILL.md +0 -205
- package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/extract_nifd_phenotype.py +0 -132
- package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/nifd_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/validate_nifd.py +0 -111
- package/skills/06_fMRI_Neuroimaging/nii2dcm/SKILL.md +0 -143
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/SKILL.md +0 -266
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/connectome_reference.py +0 -65
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/denoise_timeseries_reference.py +0 -58
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/hierarchical_parcellation_reference.py +0 -53
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/kmeans_parcellation_reference.py +0 -53
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/preprocess_bold_reference.py +0 -76
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_dictlearning_reference.py +0 -56
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_ica_reference.py +0 -59
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/second_level_glm_reference.py +0 -58
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/spacenet_classifier_reference.py +0 -59
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/svm_classifier_reference.py +0 -60
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/task_glm_reference.py +0 -63
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/zalff_summary_reference.py +0 -109
- package/skills/06_fMRI_Neuroimaging/nsd-skill/SKILL.md +0 -210
- package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/extract_nsd_stimulus.py +0 -171
- package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/nsd_qc_summary.py +0 -142
- package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/validate_nsd.py +0 -142
- package/skills/06_fMRI_Neuroimaging/oasis-skill/SKILL.md +0 -205
- package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/extract_oasis_phenotype.py +0 -126
- package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/oasis_qc_summary.py +0 -115
- package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/validate_oasis.py +0 -119
- package/skills/06_fMRI_Neuroimaging/pet-skill/SKILL.md +0 -173
- package/skills/06_fMRI_Neuroimaging/pet-skill/scripts/compute_suvr.py +0 -202
- package/skills/06_fMRI_Neuroimaging/pnc-skill/SKILL.md +0 -206
- package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/extract_pnc_phenotype.py +0 -136
- package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/pnc_qc_summary.py +0 -116
- package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/validate_pnc.py +0 -120
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/SKILL.md +0 -209
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/extract_ppmi_phenotype.py +0 -138
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/ppmi_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/validate_ppmi.py +0 -117
- package/skills/06_fMRI_Neuroimaging/qsiprep-tool/SKILL.md +0 -320
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/SKILL.md +0 -215
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/extract_rest_mdd_phenotype.py +0 -132
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/harmonize_sites.py +0 -152
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/rest_mdd_qc_summary.py +0 -124
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/validate_rest_mdd.py +0 -103
- package/skills/06_fMRI_Neuroimaging/smri-skill/SKILL.md +0 -302
- package/skills/06_fMRI_Neuroimaging/tcp-skill/SKILL.md +0 -204
- package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/extract_tcp_phenotype.py +0 -139
- package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/tcp_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/validate_tcp.py +0 -99
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/SKILL.md +0 -217
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/extract_ucla_cnp_phenotype.py +0 -145
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/ucla_cnp_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/validate_ucla_cnp.py +0 -113
- package/skills/06_fMRI_Neuroimaging/ukb-skill/SKILL.md +0 -310
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/build_ukb_survival.py +0 -210
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_cases.py +0 -308
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_phenotype.py +0 -232
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/ukb_qc_summary.py +0 -158
- package/skills/06_fMRI_Neuroimaging/wmh-segmentation/SKILL.md +0 -133
- package/skills/07_Computational_Modeling/detrending/SKILL.md +0 -118
- package/skills/07_Computational_Modeling/dictlearning/SKILL.md +0 -122
- package/skills/07_Computational_Modeling/filtering/SKILL.md +0 -121
- package/skills/07_Computational_Modeling/glm/SKILL.md +0 -153
- package/skills/07_Computational_Modeling/hierarchical/SKILL.md +0 -121
- package/skills/07_Computational_Modeling/ica/SKILL.md +0 -122
- package/skills/07_Computational_Modeling/kmeans/SKILL.md +0 -119
- package/skills/07_Computational_Modeling/run_models/SKILL.md +0 -427
- package/skills/07_Computational_Modeling/spacenet/SKILL.md +0 -122
- package/skills/07_Computational_Modeling/svm/SKILL.md +0 -120
- package/skills/08_Computational_Neuroscience/brain_gnn/SKILL.md +0 -183
- package/skills/08_Computational_Neuroscience/dipy-tool/SKILL.md +0 -239
- package/skills/08_Computational_Neuroscience/dipy-tool/scripts/dti_metrics_reference.py +0 -70
- package/skills/08_Computational_Neuroscience/dipy-tool/scripts/load_and_mask_reference.py +0 -76
- package/skills/08_Computational_Neuroscience/dipy-tool/scripts/roi_stats_reference.py +0 -59
- package/skills/08_Computational_Neuroscience/fm_app/SKILL.md +0 -195
- package/skills/08_Computational_Neuroscience/neurostorm/SKILL.md +0 -151
- package/skills/13_Visualization/brain-visualization/SKILL.md +0 -191
- package/skills/13_Visualization/brain-visualization/scripts/connectome_reference.py +0 -108
- package/skills/13_Visualization/brain-visualization/scripts/freesurfer_ply_reference.py +0 -54
- package/skills/13_Visualization/brain-visualization/scripts/zalff_summary_reference.py +0 -116
- package/skills/13_Visualization/ethoclaw-paper-figure-layout/SKILL.md +0 -78
- package/skills/13_Visualization/ethoclaw-paper-figure-layout/assets/naturecomm_figures.tex +0 -74
- package/skills/13_Visualization/ethoclaw-paper-figure-layout/scripts/layout_results_foldered.py +0 -579
- package/skills/14_Writing/overleaf-skill/SKILL.md +0 -184
- package/skills/14_Writing/overleaf-skill/scripts/install.sh +0 -30
- package/skills/14_Writing/paper-writing/SKILL.md +0 -146
- package/skills/14_Writing/paper-writing/scripts/data_statement_templates.py +0 -164
- package/skills/14_Writing/paper-writing/scripts/figure_templates.py +0 -315
- package/skills/14_Writing/paper-writing/scripts/nature_figure_style.py +0 -214
- package/skills/14_Writing/paper-writing/scripts/section_phrasebank.py +0 -246
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/SKILL.md +0 -274
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.html +0 -112
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.md +0 -21
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/cluster-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/heatmap-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/integrated-interpretation.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/overview.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/project-summary.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/radar-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/raw-trajectory.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/sample-check.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/single-subject-section.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/stats-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/epm.md +0 -52
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/fst.md +0 -37
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/nor.md +0 -39
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/oft.md +0 -43
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tcst.md +0 -45
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tst.md +0 -36
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/input-types.md +0 -59
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/interpretation-guardrails.md +0 -45
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/metadata-schema.md +0 -57
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/report-sections.md +0 -86
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/section-selection-rules.md +0 -169
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/build_report_manifest.py +0 -27
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/render_report.py +0 -34
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/report_utils.py +0 -1121
- package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/SKILL.md +0 -390
- package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/reference_code.py +0 -98
- package/skills/16_Animal_Behavior/ethoclaw-animal-pose-estimation/SKILL.md +0 -336
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/README.md +0 -21
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/SKILL.md +0 -41
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/batch_kinematic_generator.py +0 -663
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/config.json +0 -19
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/generate_kinematic_parameter.py +0 -401
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/kinematic_generator.py +0 -265
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/SKILL.md +0 -72
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/references/config.example.toml +0 -56
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params.py +0 -232
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params_from_config.py +0 -236
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/SKILL.md +0 -68
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/references/notes.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/scripts/plot_h5_radar.py +0 -513
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/SKILL.md +0 -52
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/config.toml +0 -81
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/references/stats-rule.md +0 -18
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_inspect.py +0 -79
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_batch.py +0 -624
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_stats.py +0 -438
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/SKILL.md +0 -280
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_trajectory.py +0 -790
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_velocity.py +0 -855
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.csv +0 -101
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.h5 +0 -0
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_data_readme.md +0 -126
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dbsnp-database
|
|
3
|
+
description: >
|
|
4
|
+
Use when you want to look up, map, and search for short genetic variants
|
|
5
|
+
(SNPs, indels) in NCBI's dbSNP database. Resolves between rsIDs, genomic
|
|
6
|
+
coordinates in VCF format, and HGVS strings. For an rsID, returns variant
|
|
7
|
+
type, gene associations, clinical significance, allele frequencies, and
|
|
8
|
+
genomic coordinates (GRCh38).
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# dbSNP Database Integration
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
|
|
16
|
+
`uv` is installed and on PATH.
|
|
17
|
+
2. **User Notification**: If .licenses/dbsnp_database_LICENSE.txt does not
|
|
18
|
+
already exist in the workspace root directory then (1) prominently notify
|
|
19
|
+
the user to check the terms at https://www.ncbi.nlm.nih.gov/snp/, then (2)
|
|
20
|
+
create the file recording the notification text and timestamp.
|
|
21
|
+
3. **`.env` file**: Make sure the `.env` file exists in your home directory.
|
|
22
|
+
Create one if it does not exist.
|
|
23
|
+
4. **`NCBI_API_KEY`** (optional): Raises the NCBI rate limit from 3 to 10
|
|
24
|
+
requests/second. The skill works without it, but a key is recommended if the
|
|
25
|
+
user plans many queries or encounters a 429 error. You can register for a
|
|
26
|
+
key for free at https://www.ncbi.nlm.nih.gov/account/settings/. You **MUST**
|
|
27
|
+
use the safe credentials protocol in the `credentials` skill to check for
|
|
28
|
+
and request this key if this skill looks relevant to the user's request.
|
|
29
|
+
|
|
30
|
+
## Core Rules
|
|
31
|
+
|
|
32
|
+
- **Use the Wrapper**: ALWAYS execute the provided wrapper script
|
|
33
|
+
`scripts/dbsnp_cli.py` to query the database rather than constructing custom
|
|
34
|
+
HTTP or curl requests. The script automatically handles rate limiting,
|
|
35
|
+
retries, and JSON parsing.
|
|
36
|
+
- **Command Choice**: Do NOT use `search-region` to find the rsID of a
|
|
37
|
+
specific variant; use `resolve-variant` instead.
|
|
38
|
+
- **Output Size**: Avoid using `--full` on `get-variant` unless specifically
|
|
39
|
+
needed, as raw payloads can exceed 1 MB.
|
|
40
|
+
- **Shell Safety**: Always wrap HGVS strings in single quotes to prevent shell
|
|
41
|
+
expansion errors.
|
|
42
|
+
- **Notification**: If this skill is used, ensure this is mentioned in the
|
|
43
|
+
output.
|
|
44
|
+
|
|
45
|
+
## When to Use
|
|
46
|
+
|
|
47
|
+
**Use this skill when you need to:**
|
|
48
|
+
|
|
49
|
+
- Map a genomic variant to its canonical rsID (from VCF coordinates or HGVS
|
|
50
|
+
notation).
|
|
51
|
+
- Retrieve summary data for an rsID: variant type, gene associations, clinical
|
|
52
|
+
significance, and population allele frequencies.
|
|
53
|
+
- Convert an rsID back to genomic coordinates on a specific assembly.
|
|
54
|
+
- Find all known variants within a chromosomal region.
|
|
55
|
+
|
|
56
|
+
**Do NOT use when you need to:**
|
|
57
|
+
|
|
58
|
+
- Obtain clinical pathogenicity classifications with submitter rationales (use
|
|
59
|
+
**clinvar-database**).
|
|
60
|
+
- Get precise population-level allele frequencies stratified by ancestry (use
|
|
61
|
+
**gnomad-database**).
|
|
62
|
+
- Predict the functional effect of a novel mutation (use
|
|
63
|
+
**alphagenome-single-variant-analysis**).
|
|
64
|
+
- View 3D protein structures affected by a variant (use
|
|
65
|
+
**alphafold-database-fetch-and-analyze / pdb-database**).
|
|
66
|
+
|
|
67
|
+
## Command Selection Guide
|
|
68
|
+
|
|
69
|
+
**Pick the right command on the first try.** Match the user's input to the
|
|
70
|
+
correct subcommand below — one command call is almost always sufficient.
|
|
71
|
+
|
|
72
|
+
- User gives you…: Run this command
|
|
73
|
+
- An rsID (e.g. `rs7412`, `rs268`): `get-variant`
|
|
74
|
+
- Genomic coordinates: chrom pos ref alt (e.g. `8 19962213 C T`):
|
|
75
|
+
`resolve-variant`
|
|
76
|
+
- An HGVS string (e.g. `NC_000008.11:g.19962213del`): `resolve-hgvs`
|
|
77
|
+
- An rsID and they want coordinates back: `resolve-rsid`
|
|
78
|
+
- A chromosomal region (chrom start end): `search-region`
|
|
79
|
+
|
|
80
|
+
> [!CAUTION] **Do NOT use `search-region` to find the rsID of a specific
|
|
81
|
+
> variant.** If the user provides a chromosome, position, reference allele, and
|
|
82
|
+
> alternate allele (four values), use `resolve-variant` — it is a direct,
|
|
83
|
+
> single-API-call lookup. `search-region` is only for surveying all variants
|
|
84
|
+
> within a positional range and returns hundreds/thousands of results.
|
|
85
|
+
|
|
86
|
+
## Quick Start
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Look up variant rs7412: type, gene, clinical significance, MAF
|
|
90
|
+
uv run scripts/dbsnp_cli.py get-variant rs7412 --output /tmp/rs7412.json
|
|
91
|
+
|
|
92
|
+
# Find the rsID for a variant at chr8:19962213 C>T
|
|
93
|
+
uv run scripts/dbsnp_cli.py resolve-variant 8 19962213 C T \
|
|
94
|
+
--output /tmp/resolve.json
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
All subcommands write JSON to disk. Always save output in the `/tmp/` directory.
|
|
98
|
+
The `--output` flag is required.
|
|
99
|
+
|
|
100
|
+
## Commands
|
|
101
|
+
|
|
102
|
+
### 1. `get-variant` — Fetch Variant Record
|
|
103
|
+
|
|
104
|
+
Retrieve the RefSNP record for one rsID. By default the output is abbreviated to
|
|
105
|
+
the most useful fields. Both `rs268` and `268` are accepted.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
uv run scripts/dbsnp_cli.py get-variant rs268 --output /tmp/rs268.json
|
|
109
|
+
uv run scripts/dbsnp_cli.py get-variant 268 --assembly GCF_000001405.40 \
|
|
110
|
+
--output /tmp/rs268.json
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
*Arguments:*
|
|
114
|
+
|
|
115
|
+
- `rsid` (positional, required): The RefSNP identifier.
|
|
116
|
+
- `--assembly`: RefSeq assembly accession (default: `GCF_000001405.40` =
|
|
117
|
+
GRCh38).
|
|
118
|
+
- `--full`: Return the complete raw JSON payload — see warning below.
|
|
119
|
+
- `--output`: Output file path (default: `/tmp/dbsnp_output.json`).
|
|
120
|
+
|
|
121
|
+
*Abbreviated output fields:*
|
|
122
|
+
|
|
123
|
+
- `refsnp_id`: Numeric rsID
|
|
124
|
+
- `variant_type`: e.g. `snv`, `ins`, `del`, `delins`
|
|
125
|
+
- `genes`: Sorted list of gene symbols (locus names)
|
|
126
|
+
- `clinical_significances`: List of clinical significance labels
|
|
127
|
+
- `minor_allele_frequencies`: Study name, allele count, total count
|
|
128
|
+
- `placements`: Genomic placements for the requested assembly
|
|
129
|
+
|
|
130
|
+
> [!WARNING] **About `--full`:** The raw RefSNP payload is typically 50–500 KB
|
|
131
|
+
> and can exceed 1 MB for clinically significant variants with many submissions.
|
|
132
|
+
> Only use `--full` when you specifically need data absent from the abbreviated
|
|
133
|
+
> output — for example:
|
|
134
|
+
>
|
|
135
|
+
> - The complete HGVS nomenclature across every transcript and protein
|
|
136
|
+
> isoform.
|
|
137
|
+
> - Full submission history with individual submitter details and timestamps.
|
|
138
|
+
> - Population-level allele frequency breakdowns by sub-population within a
|
|
139
|
+
> study (e.g. per-population gnomAD counts).
|
|
140
|
+
> - The full set of genomic placements across multiple assemblies (GRCh37 and
|
|
141
|
+
> GRCh38 simultaneously).
|
|
142
|
+
> - Merge history showing which older rsIDs were merged into this one.
|
|
143
|
+
|
|
144
|
+
### 2. `resolve-variant` — Genomic Coordinates → rsID
|
|
145
|
+
|
|
146
|
+
Determine the rsID(s) for a variant given its genomic coordinates (chromosome,
|
|
147
|
+
position, reference allele, alternate allele). **This is the command to use when
|
|
148
|
+
the user provides a variant as space-separated coordinates** like `8 19962213 C
|
|
149
|
+
T`.
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
uv run scripts/dbsnp_cli.py resolve-variant 8 19962213 C T \
|
|
153
|
+
--output /tmp/resolve.json
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
*Arguments:*
|
|
157
|
+
|
|
158
|
+
- `chrom` (positional): Chromosome number (e.g. `8`) or RefSeq sequence
|
|
159
|
+
accession (e.g. `NC_000008.11`). **Chromosomes X and Y must be passed as
|
|
160
|
+
their numeric equivalents: `23` for X and `24` for Y.**
|
|
161
|
+
- `pos` (positional): 1-based genomic position.
|
|
162
|
+
- `ref` (positional): Reference allele (e.g. `C`).
|
|
163
|
+
- `alts` (positional): Alternate allele(s), comma-separated (e.g. `T`).
|
|
164
|
+
- `--assembly`: RefSeq assembly accession (default: `GCF_000001405.40`).
|
|
165
|
+
- `--output`: Output file path (default: `/tmp/dbsnp_output.json`).
|
|
166
|
+
|
|
167
|
+
*Output:* `{"rsids": ["12345", "67890"]}`
|
|
168
|
+
|
|
169
|
+
### 3. `resolve-rsid` — rsID → Genomic Coordinates
|
|
170
|
+
|
|
171
|
+
Get the genomic placement (sequence ID and allele details) for a known rsID on a
|
|
172
|
+
specific assembly.
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
uv run scripts/dbsnp_cli.py resolve-rsid rs7412 --output /tmp/coords.json
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
*Arguments:*
|
|
179
|
+
|
|
180
|
+
- `rsid` (positional): The RefSNP identifier.
|
|
181
|
+
- `--assembly`: RefSeq assembly accession (default: `GCF_000001405.40`).
|
|
182
|
+
- `--output`: Output file path (default: `/tmp/dbsnp_output.json`).
|
|
183
|
+
|
|
184
|
+
*Output:* `{"rsid": "7412", "assembly": "...", "placements": [...]}`
|
|
185
|
+
|
|
186
|
+
### 4. `resolve-hgvs` — HGVS → rsID
|
|
187
|
+
|
|
188
|
+
Find the rsID(s) corresponding to an HGVS expression.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
uv run scripts/dbsnp_cli.py resolve-hgvs 'NC_000008.11:g.19962213del' \
|
|
192
|
+
--output /tmp/hgvs.json
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
*Arguments:*
|
|
196
|
+
|
|
197
|
+
- `hgvs` (positional): The HGVS string.
|
|
198
|
+
- `--assembly`: RefSeq assembly accession (default: `GCF_000001405.40`).
|
|
199
|
+
- `--output`: Output file path (default: `/tmp/dbsnp_output.json`).
|
|
200
|
+
|
|
201
|
+
*Output:* `{"rsids": ["12345"]}`
|
|
202
|
+
|
|
203
|
+
> [!TIP] HGVS strings often contain characters that shells interpret (colons,
|
|
204
|
+
> greater-than signs). Always wrap them in **single quotes** to prevent shell
|
|
205
|
+
> expansion.
|
|
206
|
+
|
|
207
|
+
### 5. `search-region` — Regional Variant Search
|
|
208
|
+
|
|
209
|
+
Find all rsIDs within a bounded chromosomal region.
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
uv run scripts/dbsnp_cli.py search-region 7 117100000 117300000 \
|
|
213
|
+
--output /tmp/region.json
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
*Arguments:*
|
|
217
|
+
|
|
218
|
+
- `chrom` (positional): Chromosome (e.g. `7`). **Use `23` for chromosome X and
|
|
219
|
+
`24` for chromosome Y.**
|
|
220
|
+
- `start` (positional): Start position.
|
|
221
|
+
- `end` (positional): End position.
|
|
222
|
+
- `--retmax`: Maximum rsIDs to return (default: 500, ceiling: 5 000).
|
|
223
|
+
- `--output`: Output file path (default: `/tmp/dbsnp_output.json`).
|
|
224
|
+
|
|
225
|
+
*Output:*
|
|
226
|
+
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"rsids": ["12345", "67890", "..."],
|
|
230
|
+
"returned": 500,
|
|
231
|
+
"total_available": 1423,
|
|
232
|
+
"truncated": true,
|
|
233
|
+
"note": "Only 500 of 1423 variants returned. Increase --retmax ..."
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
When `total_available` exceeds the returned count, the output includes a
|
|
238
|
+
`truncated` flag and a `note`. Increase `--retmax` to retrieve more (up to 5
|
|
239
|
+
000).
|
|
240
|
+
|
|
241
|
+
## Typical Workflows
|
|
242
|
+
|
|
243
|
+
### Identify a known variant from coordinates
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Step 1: Map VCF coordinates to rsID
|
|
247
|
+
uv run scripts/dbsnp_cli.py resolve-variant 19 44908684 T C \
|
|
248
|
+
--output /tmp/step1.json
|
|
249
|
+
|
|
250
|
+
# Step 2: Get the full details for the resolved rsID
|
|
251
|
+
uv run scripts/dbsnp_cli.py get-variant <rsid_from_step1> \
|
|
252
|
+
--output /tmp/step2.json
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Survey variants in a gene region
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
# Step 1: Find all variants in a region spanning the CFTR gene
|
|
259
|
+
uv run scripts/dbsnp_cli.py search-region 7 117100000 117300000 \
|
|
260
|
+
--retmax 1000 --output /tmp/region.json
|
|
261
|
+
|
|
262
|
+
# Step 2: Retrieve details on individual rsIDs of interest
|
|
263
|
+
uv run scripts/dbsnp_cli.py get-variant <rsid> --output /tmp/detail.json
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Translate HGVS notation to genomic coordinates
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
# Step 1: Get the rsID for an HGVS expression
|
|
270
|
+
uv run scripts/dbsnp_cli.py resolve-hgvs 'NC_000019.10:g.44908684T>C' \
|
|
271
|
+
--output /tmp/hgvs.json
|
|
272
|
+
|
|
273
|
+
# Step 2: Resolve that rsID to VCF-style coordinates
|
|
274
|
+
uv run scripts/dbsnp_cli.py resolve-rsid <rsid> --output /tmp/coords.json
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
## Assembly Defaults and Automatic Fallback
|
|
278
|
+
|
|
279
|
+
The Variation Services endpoints (used by `get-variant`, `resolve-variant`,
|
|
280
|
+
`resolve-rsid`, `resolve-hgvs`) expect a **RefSeq assembly accession**. The
|
|
281
|
+
RefSeq accession for GRCh38 is `GCF_000001405.40`, and for GRCh37 it is
|
|
282
|
+
`GCF_000001405.25`.
|
|
283
|
+
|
|
284
|
+
The `search-region` subcommand always searches GRCh38 positions.
|
|
285
|
+
|
|
286
|
+
> [!IMPORTANT] **Automatic assembly fallback:** The `resolve-variant` and
|
|
287
|
+
> `resolve-hgvs` commands automatically try GRCh38 first. If no rsIDs are found,
|
|
288
|
+
> they retry with GRCh37 before reporting failure. When a fallback occurs the
|
|
289
|
+
> output JSON includes a `"note"` field explaining which assembly succeeded.
|
|
290
|
+
> **You do NOT need to manually retry with a different assembly** — the script
|
|
291
|
+
> handles this transparently.
|
|
292
|
+
|
|
293
|
+
You only need to override `--assembly` when you specifically want to
|
|
294
|
+
**restrict** the lookup to one assembly (e.g. because the user's coordinates are
|
|
295
|
+
known to be GRCh37).
|
|
296
|
+
|
|
297
|
+
## NCBI API Key and Rate Limiting
|
|
298
|
+
|
|
299
|
+
Without an API key the script is limited to **3 requests per second**. With a
|
|
300
|
+
key this increases to **10 requests per second**.
|
|
301
|
+
|
|
302
|
+
You can register for a key for free at
|
|
303
|
+
https://www.ncbi.nlm.nih.gov/account/settings/. You **MUST** use the safe
|
|
304
|
+
credentials protocol in the `credentials` skill to check for and request this
|
|
305
|
+
key if this skill looks relevant to the user's request.
|
|
306
|
+
|
|
307
|
+
## Troubleshooting HTTP 500 Errors
|
|
308
|
+
|
|
309
|
+
### Reference Allele Mismatch
|
|
310
|
+
|
|
311
|
+
If you receive an HTTP 500 error with a message detailing that the asserted
|
|
312
|
+
reference allele is not equal to the reference sequence:
|
|
313
|
+
|
|
314
|
+
**What it means:** The coordinate position is likely valid, but the reference
|
|
315
|
+
allele (`ref`) you provided does not match the base at that position in the
|
|
316
|
+
requested assembly.
|
|
317
|
+
|
|
318
|
+
**Action:** 1. **DO NOT RETRY** the exact same query mechanically. 2. **Check
|
|
319
|
+
the assembly**: Coordinates are assembly-specific. 3. **Switch assembly**: If
|
|
320
|
+
you were querying GRCh37, try GRCh38 (using `--assembly GCF_000001405.40`), or
|
|
321
|
+
if querying GRCh38, try GRCh37 (using `--assembly GCF_000001405.25`).
|
|
322
|
+
|
|
323
|
+
## Common Mistakes
|
|
324
|
+
|
|
325
|
+
- **Mistake:** Forgetting to quote HGVS strings **Fix:** Wrap in single
|
|
326
|
+
quotes: `'NC_000008.11:g.19962213del'`
|
|
327
|
+
|
|
328
|
+
- **Mistake:** Passing a chromosome name to `resolve-variant` instead of a
|
|
329
|
+
sequence accession **Fix:** Use the numeric chromosome ID (e.g. `8`) or a
|
|
330
|
+
RefSeq accession like `NC_000008.11`
|
|
331
|
+
|
|
332
|
+
- **Mistake:** Using `--full` on `get-variant` without needing it **Fix:** The
|
|
333
|
+
abbreviated output covers most use cases; `--full` returns 50–500 KB+ of
|
|
334
|
+
JSON
|
|
335
|
+
|
|
336
|
+
- **Mistake:** Expecting `search-region` to return all results by default
|
|
337
|
+
**Fix:** The default `--retmax` is 500; check `total_available` in the
|
|
338
|
+
output to see if results were truncated
|
|
339
|
+
|
|
340
|
+
- **Mistake:** Using GRCh37 coordinates with `search-region` **Fix:**
|
|
341
|
+
`search-region` always uses GRCh38 positions; lift over coordinates first if
|
|
342
|
+
starting from GRCh37
|
|
343
|
+
|
|
344
|
+
- **Mistake:** Manually retrying `resolve-variant` or `resolve-hgvs` with a
|
|
345
|
+
different `--assembly` when the first call fails **Fix:** The script
|
|
346
|
+
automatically tries GRCh38 then GRCh37; a single call is sufficient
|
|
347
|
+
|
|
348
|
+
- **Mistake:** Passing `X` or `Y` as the chromosome value **Fix:** Use the
|
|
349
|
+
numeric equivalents: `23` for chromosome X and `24` for chromosome Y. The
|
|
350
|
+
CLI treats chromosomes numerically by default.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# NCBI API Implementation Notes
|
|
2
|
+
|
|
3
|
+
This document provides context about the NCBI endpoints used by the
|
|
4
|
+
`dbsnp-database` skill.
|
|
5
|
+
|
|
6
|
+
## Endpoints
|
|
7
|
+
|
|
8
|
+
The script uses two distinct NCBI services:
|
|
9
|
+
|
|
10
|
+
### 1. Variation Services (`https://api.ncbi.nlm.nih.gov/variation/v0/`)
|
|
11
|
+
|
|
12
|
+
A RESTful API for precise variant mapping and resolution. Key endpoints:
|
|
13
|
+
|
|
14
|
+
- **`/refsnp/{rsid}`** — Returns the full RefSNP JSON record. The
|
|
15
|
+
response contains a `primary_snapshot_data` object with:
|
|
16
|
+
- `variant_type` — e.g. `snv`, `del`, `ins`, `delins`, `mnv`.
|
|
17
|
+
- `placements_with_allele` — Genomic placements across assemblies. Each
|
|
18
|
+
placement includes a `seq_id`, `is_ptlp` flag (true for top-level
|
|
19
|
+
placements), and per-assembly alleles in SPDI form.
|
|
20
|
+
- `allele_annotations` — Per-allele metadata including gene associations
|
|
21
|
+
(`assembly_annotation[].genes[]`), clinical significance entries, and
|
|
22
|
+
population frequency data.
|
|
23
|
+
- **`/vcf/{chrom}/{pos}/{ref}/{alt}/contextuals`** — Converts VCF coordinates
|
|
24
|
+
to component-form representations. Returns `data.spdis[]` — each entry has
|
|
25
|
+
`seq_id`, `position`,`deleted_sequence`, and `inserted_sequence` fields.
|
|
26
|
+
- **`/spdi/{spdi_string}/rsids`** — Resolves an SPDI string to its canonical
|
|
27
|
+
rsID(s). Returns `data.rsids[]`.
|
|
28
|
+
- **`/hgvs/{hgvs_string}/contextuals`** — Converts an HGVS expression to the
|
|
29
|
+
same component form. Same response shape as the VCF contextuals endpoint.
|
|
30
|
+
|
|
31
|
+
The VCF-to-rsID and HGVS-to-rsID workflows are two-step: first convert the input
|
|
32
|
+
to SPDI, then resolve each SPDI to rsIDs.
|
|
33
|
+
|
|
34
|
+
### 2. E-utilities (`https://eutils.ncbi.nlm.nih.gov/entrez/eutils/`)
|
|
35
|
+
|
|
36
|
+
NCBI's general-purpose Entrez search interface. The skill uses `esearch.fcgi`
|
|
37
|
+
with `db=snp` for regional variant searches.
|
|
38
|
+
|
|
39
|
+
#### Useful Entrez field tags for `db=snp`
|
|
40
|
+
|
|
41
|
+
- **`[CHR]`**: Filter by chromosome. Example: `7[CHR]`
|
|
42
|
+
- **`[CPOS]`**: GRCh38 coordinate range. Example: `117100000:117300000[CPOS]`
|
|
43
|
+
- **`[CPOS_GRCH37]`**: GRCh37 coordinate range.
|
|
44
|
+
Example: `117100000:117300000[CPOS_GRCH37]`
|
|
45
|
+
- **`[GENE]`**: Filter by gene symbol. Example: `LPL[GENE]`
|
|
46
|
+
- **`[SCLS]`**: Filter by variant class. Example: `snp[SCLS]`
|
|
47
|
+
- **`[ORGN]`**: Filter by organism. Example: `human[ORGN]`
|
|
48
|
+
- **`[CLIN]`**: Clinical significance. Example: `pathogenic[CLIN]`
|
|
49
|
+
|
|
50
|
+
Tags are combined with `AND`. Example query:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
7[CHR] AND 117100000:117300000[CPOS]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Pagination uses `retstart` (0-based offset) and `retmax` (page size).
|
|
57
|
+
The script automatically paginates when results exceed a single page.
|
|
58
|
+
|
|
59
|
+
## The SPDI Data Model
|
|
60
|
+
|
|
61
|
+
SPDI (Sequence-Position-Deletion-Insertion) is NCBI's canonical representation
|
|
62
|
+
for unambiguously defining sequence variants. It consists of four components:
|
|
63
|
+
|
|
64
|
+
- **Sequence**: RefSeq accession of the reference sequence
|
|
65
|
+
- **Position**: 0-based inter-residue coordinate of the change
|
|
66
|
+
- **Deletion**: Number of deleted bases (or the deleted sequence)
|
|
67
|
+
- **Insertion**: The inserted sequence (empty string for deletions)
|
|
68
|
+
|
|
69
|
+
Example: `NC_000008.11:19962212:1:` represents a single-base deletion at
|
|
70
|
+
position 19962213 (1-based) on chromosome 8.
|
|
71
|
+
|
|
72
|
+
SPDI is used as the intermediate representation in the VCF→rsID and HGVS→rsID
|
|
73
|
+
resolution workflows. You generally do not need to construct SPDI strings
|
|
74
|
+
manually — the Variation Services API does the conversion.
|
|
75
|
+
|
|
76
|
+
## Throttling and Rate Limits
|
|
77
|
+
|
|
78
|
+
NCBI enforces rate limits on all public endpoints:
|
|
79
|
+
|
|
80
|
+
- No API key: 3 requests/second
|
|
81
|
+
- With API key: 10 requests/second
|
|
82
|
+
|
|
83
|
+
The script reads the `NCBI_API_KEY` environment variable and adjusts its
|
|
84
|
+
internal delay accordingly. A file-lock mechanism ensures that multiple
|
|
85
|
+
concurrent invocations of the script collectively respect the limit.
|
|
86
|
+
|
|
87
|
+
If the limit is exceeded the NCBI server returns HTTP 429 and the script raises
|
|
88
|
+
a `RateLimitError` with instructions for the agent.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@ARTICLE{Sherry2001,
|
|
2
|
+
AUTHOR = {Sherry, S T and Ward, M H and Kholodov, M and Baker, J and Phan, L and Smigielski, E M and Sirotkin, K},
|
|
3
|
+
DATE = {2001},
|
|
4
|
+
DOI = {10.1093/nar/29.1.308},
|
|
5
|
+
JOURNALTITLE = {Nucleic Acids Res},
|
|
6
|
+
NOTE = {PMID: 11125122},
|
|
7
|
+
NUMBER = {1},
|
|
8
|
+
PAGES = {308--11},
|
|
9
|
+
TITLE = {dbSNP: the NCBI database of genetic variation},
|
|
10
|
+
VOLUME = {29},
|
|
11
|
+
}
|
|
12
|
+
|