@brainpilot/skills 0.0.10 → 0.0.12

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 (392) 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/netneurotools-guide/SKILL.md +212 -0
  5. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/datasets.md +252 -0
  6. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/interface-plotting.md +238 -0
  7. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/metrics.md +236 -0
  8. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/networks.md +273 -0
  9. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/spatial-modularity.md +291 -0
  10. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/stats.md +290 -0
  11. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/SKILL.md +116 -0
  12. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/references/citation.bib +58 -0
  13. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_pae.py +212 -0
  14. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_plddt.py +125 -0
  15. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/fetch_structure.py +168 -0
  16. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/SKILL.md +176 -0
  17. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/references/citation.bib +14 -0
  18. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/scripts/gtex_cli.py +281 -0
  19. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/SKILL.md +181 -0
  20. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/citation.bib +14 -0
  21. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/search-api.md +137 -0
  22. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/scripts/hpa_cli.py +263 -0
  23. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/SKILL.md +169 -0
  24. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/references/citation.bib +15 -0
  25. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/download_coordinate_files.py +113 -0
  26. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_pdb_metadata.py +70 -0
  27. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_schema.py +251 -0
  28. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/search_pdb.py +187 -0
  29. package/skills/09_Cellular_Molecular_Neuroscience/pymol/SKILL.md +146 -0
  30. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/PYMOL_REFERENCE.md +160 -0
  31. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/RECIPES.md +348 -0
  32. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/citation.bib +6 -0
  33. package/skills/17_Literature_Databases/literature-search-arxiv/SKILL.md +120 -0
  34. package/skills/17_Literature_Databases/literature-search-arxiv/references/citation.bib +18 -0
  35. package/skills/17_Literature_Databases/literature-search-arxiv/references/query_syntax.md +34 -0
  36. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper.py +116 -0
  37. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper_source.py +98 -0
  38. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/search_arxiv.py +174 -0
  39. package/skills/17_Literature_Databases/literature-search-biorxiv/SKILL.md +169 -0
  40. package/skills/17_Literature_Databases/literature-search-biorxiv/references/citation.bib +12 -0
  41. package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_dates.py +297 -0
  42. package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_doi.py +72 -0
  43. package/skills/17_Literature_Databases/literature-search-europepmc/SKILL.md +229 -0
  44. package/skills/17_Literature_Databases/literature-search-europepmc/references/citation.bib +15 -0
  45. package/skills/17_Literature_Databases/literature-search-europepmc/scripts/europepmc_api.py +345 -0
  46. package/skills/17_Literature_Databases/literature-search-openalex/SKILL.md +169 -0
  47. package/skills/17_Literature_Databases/literature-search-openalex/references/authors.md +78 -0
  48. package/skills/17_Literature_Databases/literature-search-openalex/references/citation.bib +8 -0
  49. package/skills/17_Literature_Databases/literature-search-openalex/references/geo_and_language.md +37 -0
  50. package/skills/17_Literature_Databases/literature-search-openalex/references/institutions.md +64 -0
  51. package/skills/17_Literature_Databases/literature-search-openalex/references/publishers_funders.md +42 -0
  52. package/skills/17_Literature_Databases/literature-search-openalex/references/sources.md +79 -0
  53. package/skills/17_Literature_Databases/literature-search-openalex/references/taxonomy.md +52 -0
  54. package/skills/17_Literature_Databases/literature-search-openalex/references/topics.md +29 -0
  55. package/skills/17_Literature_Databases/literature-search-openalex/references/type_values.md +65 -0
  56. package/skills/17_Literature_Databases/literature-search-openalex/references/works.md +304 -0
  57. package/skills/17_Literature_Databases/literature-search-openalex/scripts/openalex_cli.py +633 -0
  58. package/skills/17_Literature_Databases/pubmed-database/SKILL.md +185 -0
  59. package/skills/17_Literature_Databases/pubmed-database/references/advanced-linking.md +128 -0
  60. package/skills/17_Literature_Databases/pubmed-database/references/advanced-search.md +98 -0
  61. package/skills/17_Literature_Databases/pubmed-database/references/bulk-workflows.md +88 -0
  62. package/skills/17_Literature_Databases/pubmed-database/references/citation-matching.md +155 -0
  63. package/skills/17_Literature_Databases/pubmed-database/references/citation.bib +15 -0
  64. package/skills/17_Literature_Databases/pubmed-database/references/cross-database-linking.md +93 -0
  65. package/skills/17_Literature_Databases/pubmed-database/references/fetch-and-resolve.md +125 -0
  66. package/skills/17_Literature_Databases/pubmed-database/references/search-and-discovery.md +106 -0
  67. package/skills/17_Literature_Databases/pubmed-database/references/utilities.md +42 -0
  68. package/skills/17_Literature_Databases/pubmed-database/scripts/pubmed_api.py +715 -0
  69. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/SKILL.md +251 -0
  70. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/pyproject.toml +15 -0
  71. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/references/citation.bib +12 -0
  72. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/analyze_ism.py +334 -0
  73. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/generate_ontology_mapping.py +170 -0
  74. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/interpret_splicing.py +305 -0
  75. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/lookup_gene_info.py +337 -0
  76. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/resolve_ontology_terms.py +155 -0
  77. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_genome_tracks.py +402 -0
  78. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_variant_effects.py +1198 -0
  79. package/skills/18_Genetics_Genomics/clinvar-database/SKILL.md +370 -0
  80. package/skills/18_Genetics_Genomics/clinvar-database/references/citation.bib +23 -0
  81. package/skills/18_Genetics_Genomics/clinvar-database/scripts/clinvar_api.py +711 -0
  82. package/skills/18_Genetics_Genomics/dbsnp-database/SKILL.md +350 -0
  83. package/skills/18_Genetics_Genomics/dbsnp-database/references/api-notes.md +88 -0
  84. package/skills/18_Genetics_Genomics/dbsnp-database/references/citation.bib +12 -0
  85. package/skills/18_Genetics_Genomics/dbsnp-database/scripts/dbsnp_cli.py +625 -0
  86. package/skills/18_Genetics_Genomics/gnomad-database/SKILL.md +73 -0
  87. package/skills/18_Genetics_Genomics/gnomad-database/references/citation.bib +14 -0
  88. package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_gene_constraint.py +90 -0
  89. package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_variant_frequency.py +181 -0
  90. package/skills/18_Genetics_Genomics/gnomad-database/scripts/search_variants.py +207 -0
  91. package/skills/19_Pharmacology/chembl-database/SKILL.md +283 -0
  92. package/skills/19_Pharmacology/chembl-database/references/api_endpoints.md +97 -0
  93. package/skills/19_Pharmacology/chembl-database/references/citation.bib +30 -0
  94. package/skills/19_Pharmacology/chembl-database/scripts/chembl_api.py +657 -0
  95. package/skills/19_Pharmacology/clinical-trials-database/SKILL.md +378 -0
  96. package/skills/19_Pharmacology/clinical-trials-database/references/citation.bib +11 -0
  97. package/skills/19_Pharmacology/clinical-trials-database/references/clinical_trials_api.md +187 -0
  98. package/skills/19_Pharmacology/clinical-trials-database/references/studies_schema.md +143 -0
  99. package/skills/19_Pharmacology/clinical-trials-database/scripts/clinical_trials_api.py +373 -0
  100. package/skills/19_Pharmacology/openfda-database/SKILL.md +225 -0
  101. package/skills/19_Pharmacology/openfda-database/references/api_endpoints.md +207 -0
  102. package/skills/19_Pharmacology/openfda-database/references/citation.bib +15 -0
  103. package/skills/19_Pharmacology/openfda-database/references/recipes.md +150 -0
  104. package/skills/19_Pharmacology/openfda-database/scripts/openfda_query.py +505 -0
  105. package/skills/19_Pharmacology/opentargets-database/SKILL.md +198 -0
  106. package/skills/19_Pharmacology/opentargets-database/references/OpenTargets_GraphQL_Guide.md +216 -0
  107. package/skills/19_Pharmacology/opentargets-database/references/citation.bib +15 -0
  108. package/skills/19_Pharmacology/opentargets-database/scripts/query_opentargets.py +533 -0
  109. package/skills/19_Pharmacology/pubchem-database/SKILL.md +164 -0
  110. package/skills/19_Pharmacology/pubchem-database/references/citation.bib +15 -0
  111. package/skills/19_Pharmacology/pubchem-database/references/endpoints.md +71 -0
  112. package/skills/19_Pharmacology/pubchem-database/references/workflows.md +32 -0
  113. package/skills/19_Pharmacology/pubchem-database/scripts/pubchem_api.py +327 -0
  114. package/skills/20_Infrastructure/uv/SKILL.md +30 -0
  115. package/skills/01_Meta-Skills/academic-research-hub/SKILL.md +0 -108
  116. package/skills/01_Meta-Skills/academic-research-hub/scripts/requirements.txt +0 -17
  117. package/skills/01_Meta-Skills/academic-research-hub/scripts/research.py +0 -781
  118. package/skills/01_Meta-Skills/beautiful-log/SKILL.md +0 -64
  119. package/skills/01_Meta-Skills/beautiful-log/scripts/beautiful_log.py +0 -274
  120. package/skills/01_Meta-Skills/ethoclaw-daily-paper/SKILL.md +0 -130
  121. package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/config.template.yaml +0 -54
  122. package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/top5_digest_template.md +0 -5
  123. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/build_top5_digest.py +0 -300
  124. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/common.py +0 -137
  125. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/merge_results.py +0 -106
  126. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/run_pipeline.py +0 -177
  127. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_arxiv.py +0 -162
  128. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_pubmed.py +0 -202
  129. package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/SKILL.md +0 -173
  130. package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/scripts/normalize_data.py +0 -874
  131. package/skills/01_Meta-Skills/ethoclaw-pdf-research/SKILL.md +0 -134
  132. package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/confirmation-prompts.md +0 -31
  133. package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/output-patterns.md +0 -45
  134. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_markdown_deliverables.py +0 -41
  135. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_research_log.py +0 -84
  136. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_summary_md.py +0 -63
  137. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/extract_pdf_bundle.py +0 -140
  138. package/skills/01_Meta-Skills/experiment-controller/SKILL.md +0 -140
  139. package/skills/01_Meta-Skills/knowledge-graph-builder/SKILL.md +0 -366
  140. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/entity_resolution.py +0 -120
  141. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/extraction_prompt_template.txt +0 -19
  142. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/graph_query.py +0 -106
  143. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/hypothesis_cli_reference.py +0 -42
  144. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/new_data_source_template.py +0 -116
  145. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/requirements.txt +0 -15
  146. package/skills/01_Meta-Skills/method-design/SKILL.md +0 -61
  147. package/skills/01_Meta-Skills/multi-search-engine/SKILL.md +0 -119
  148. package/skills/01_Meta-Skills/research-idea/SKILL.md +0 -65
  149. package/skills/05_EEG_ERP/eeg-skill/SKILL.md +0 -197
  150. package/skills/05_EEG_ERP/meg-skill/SKILL.md +0 -188
  151. package/skills/05_EEG_ERP/meg-skill/scripts/time_frequency.py +0 -223
  152. package/skills/05_EEG_ERP/mne-eeg-tool/SKILL.md +0 -165
  153. package/skills/05_EEG_ERP/mne-eeg-tool/scripts/eeg_pipeline_reference.py +0 -231
  154. package/skills/05_EEG_ERP/seed-iv-skill/SKILL.md +0 -184
  155. package/skills/05_EEG_ERP/seed-iv-skill/scripts/classify_seed_iv.py +0 -154
  156. package/skills/05_EEG_ERP/seed-iv-skill/scripts/extract_seed_iv_features.py +0 -190
  157. package/skills/05_EEG_ERP/seed-iv-skill/scripts/validate_seed_iv.py +0 -102
  158. package/skills/05_EEG_ERP/seed-vig-skill/SKILL.md +0 -182
  159. package/skills/05_EEG_ERP/seed-vig-skill/scripts/classify_seed_vig.py +0 -165
  160. package/skills/05_EEG_ERP/seed-vig-skill/scripts/extract_seed_vig_features.py +0 -185
  161. package/skills/05_EEG_ERP/seed-vig-skill/scripts/validate_seed_vig.py +0 -88
  162. package/skills/06_fMRI_Neuroimaging/abcd-skill/SKILL.md +0 -308
  163. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/abcd_qc_summary.py +0 -449
  164. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/extract_abcd_phenotype.py +0 -292
  165. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/reorganize_abcd.py +0 -387
  166. package/skills/06_fMRI_Neuroimaging/abide-skill/SKILL.md +0 -302
  167. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/abide_qc_summary.py +0 -317
  168. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/extract_abide_phenotype.py +0 -267
  169. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/reorganize_abide.py +0 -387
  170. package/skills/06_fMRI_Neuroimaging/adhd200-skill/SKILL.md +0 -244
  171. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/adhd200_qc_summary.py +0 -98
  172. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/extract_adhd200_phenotype.py +0 -134
  173. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/reorganize_adhd200.py +0 -206
  174. package/skills/06_fMRI_Neuroimaging/adni-skill/SKILL.md +0 -358
  175. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_adni_task_files.py +0 -1305
  176. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_vqa_from_tasks.py +0 -766
  177. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/reorganize_adni.py +0 -491
  178. package/skills/06_fMRI_Neuroimaging/aibl-skill/SKILL.md +0 -295
  179. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/aibl_qc_summary.py +0 -260
  180. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/extract_aibl_phenotype.py +0 -365
  181. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/reorganize_aibl.py +0 -394
  182. package/skills/06_fMRI_Neuroimaging/aomic-skill/SKILL.md +0 -292
  183. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/aomic_qc_summary.py +0 -258
  184. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/extract_aomic_phenotype.py +0 -284
  185. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/reorganize_aomic.py +0 -322
  186. package/skills/06_fMRI_Neuroimaging/asl-skill/SKILL.md +0 -168
  187. package/skills/06_fMRI_Neuroimaging/asl-skill/scripts/compute_cbf.py +0 -224
  188. package/skills/06_fMRI_Neuroimaging/bids-organizer/SKILL.md +0 -241
  189. package/skills/06_fMRI_Neuroimaging/bold5000-skill/SKILL.md +0 -186
  190. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/bold5000_qc_summary.py +0 -96
  191. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/extract_bold5000_stimulus.py +0 -125
  192. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/reorganize_bold5000.py +0 -102
  193. package/skills/06_fMRI_Neuroimaging/camcan-skill/SKILL.md +0 -213
  194. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/camcan_qc_summary.py +0 -131
  195. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/extract_camcan_phenotype.py +0 -145
  196. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/validate_camcan.py +0 -141
  197. package/skills/06_fMRI_Neuroimaging/cobre-skill/SKILL.md +0 -201
  198. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/cobre_qc_summary.py +0 -95
  199. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/extract_cobre_phenotype.py +0 -104
  200. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/reorganize_cobre.py +0 -140
  201. package/skills/06_fMRI_Neuroimaging/conn-tool/SKILL.md +0 -180
  202. package/skills/06_fMRI_Neuroimaging/dcm2nii/SKILL.md +0 -189
  203. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/SKILL.md +0 -183
  204. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/dmt_har_med_qc_summary.py +0 -96
  205. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/extract_dmt_har_med_phenotype.py +0 -121
  206. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/reorganize_dmt_har_med.py +0 -125
  207. package/skills/06_fMRI_Neuroimaging/dwi-skill/SKILL.md +0 -359
  208. package/skills/06_fMRI_Neuroimaging/fmri-skill/SKILL.md +0 -371
  209. package/skills/06_fMRI_Neuroimaging/fmriprep-tool/SKILL.md +0 -228
  210. package/skills/06_fMRI_Neuroimaging/freesurfer-tool/SKILL.md +0 -286
  211. package/skills/06_fMRI_Neuroimaging/freesurfer-tool/scripts/freesurfer_processor.py +0 -145
  212. package/skills/06_fMRI_Neuroimaging/fsl-tool/SKILL.md +0 -208
  213. package/skills/06_fMRI_Neuroimaging/hbn-skill/SKILL.md +0 -271
  214. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/extract_hbn_phenotype.py +0 -107
  215. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/hbn_qc_summary.py +0 -96
  216. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/reorganize_hbn.py +0 -150
  217. package/skills/06_fMRI_Neuroimaging/hcpa-skill/SKILL.md +0 -210
  218. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/extract_hcpa_phenotype.py +0 -146
  219. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/hcpa_qc_summary.py +0 -120
  220. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/reorganize_hcpa.py +0 -155
  221. package/skills/06_fMRI_Neuroimaging/hcpd-skill/SKILL.md +0 -210
  222. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/extract_hcpd_phenotype.py +0 -148
  223. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/hcpd_qc_summary.py +0 -125
  224. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/reorganize_hcpd.py +0 -146
  225. package/skills/06_fMRI_Neuroimaging/hcpep-skill/SKILL.md +0 -215
  226. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/extract_hcpep_phenotype.py +0 -157
  227. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/hcpep_qc_summary.py +0 -143
  228. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/reorganize_hcpep.py +0 -146
  229. package/skills/06_fMRI_Neuroimaging/hcppipeline-tool/SKILL.md +0 -217
  230. package/skills/06_fMRI_Neuroimaging/hcpya-skill/SKILL.md +0 -214
  231. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/extract_hcpya_phenotype.py +0 -190
  232. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/hcpya_qc_summary.py +0 -152
  233. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/reorganize_hcpya.py +0 -203
  234. package/skills/06_fMRI_Neuroimaging/ixi-skill/SKILL.md +0 -198
  235. package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/ixi_qc_summary.py +0 -137
  236. package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/reorganize_ixi.py +0 -190
  237. package/skills/06_fMRI_Neuroimaging/mnd-skill/SKILL.md +0 -191
  238. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/extract_mnd_phenotype.py +0 -143
  239. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/mnd_qc_summary.py +0 -120
  240. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/validate_mnd.py +0 -107
  241. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/SKILL.md +0 -203
  242. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/analyze_lesions.py +0 -119
  243. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/longitudinal_lesion.py +0 -148
  244. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/mschallenge_qc_summary.py +0 -132
  245. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/validate_mschallenge.py +0 -116
  246. package/skills/06_fMRI_Neuroimaging/nibabel-skill/SKILL.md +0 -184
  247. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/atlas_coordinate_reference.py +0 -61
  248. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/freesurfer_io_reference.py +0 -34
  249. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/nifti_inspection_reference.py +0 -35
  250. package/skills/06_fMRI_Neuroimaging/nifd-skill/SKILL.md +0 -205
  251. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/extract_nifd_phenotype.py +0 -132
  252. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/nifd_qc_summary.py +0 -111
  253. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/validate_nifd.py +0 -111
  254. package/skills/06_fMRI_Neuroimaging/nii2dcm/SKILL.md +0 -143
  255. package/skills/06_fMRI_Neuroimaging/nilearn-tool/SKILL.md +0 -266
  256. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/connectome_reference.py +0 -65
  257. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/denoise_timeseries_reference.py +0 -58
  258. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/hierarchical_parcellation_reference.py +0 -53
  259. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/kmeans_parcellation_reference.py +0 -53
  260. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/preprocess_bold_reference.py +0 -76
  261. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_dictlearning_reference.py +0 -56
  262. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_ica_reference.py +0 -59
  263. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/second_level_glm_reference.py +0 -58
  264. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/spacenet_classifier_reference.py +0 -59
  265. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/svm_classifier_reference.py +0 -60
  266. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/task_glm_reference.py +0 -63
  267. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/zalff_summary_reference.py +0 -109
  268. package/skills/06_fMRI_Neuroimaging/nsd-skill/SKILL.md +0 -210
  269. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/extract_nsd_stimulus.py +0 -171
  270. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/nsd_qc_summary.py +0 -142
  271. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/validate_nsd.py +0 -142
  272. package/skills/06_fMRI_Neuroimaging/oasis-skill/SKILL.md +0 -205
  273. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/extract_oasis_phenotype.py +0 -126
  274. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/oasis_qc_summary.py +0 -115
  275. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/validate_oasis.py +0 -119
  276. package/skills/06_fMRI_Neuroimaging/pet-skill/SKILL.md +0 -173
  277. package/skills/06_fMRI_Neuroimaging/pet-skill/scripts/compute_suvr.py +0 -202
  278. package/skills/06_fMRI_Neuroimaging/pnc-skill/SKILL.md +0 -206
  279. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/extract_pnc_phenotype.py +0 -136
  280. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/pnc_qc_summary.py +0 -116
  281. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/validate_pnc.py +0 -120
  282. package/skills/06_fMRI_Neuroimaging/ppmi-skill/SKILL.md +0 -209
  283. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/extract_ppmi_phenotype.py +0 -138
  284. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/ppmi_qc_summary.py +0 -111
  285. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/validate_ppmi.py +0 -117
  286. package/skills/06_fMRI_Neuroimaging/qsiprep-tool/SKILL.md +0 -320
  287. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/SKILL.md +0 -215
  288. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/extract_rest_mdd_phenotype.py +0 -132
  289. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/harmonize_sites.py +0 -152
  290. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/rest_mdd_qc_summary.py +0 -124
  291. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/validate_rest_mdd.py +0 -103
  292. package/skills/06_fMRI_Neuroimaging/smri-skill/SKILL.md +0 -302
  293. package/skills/06_fMRI_Neuroimaging/tcp-skill/SKILL.md +0 -204
  294. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/extract_tcp_phenotype.py +0 -139
  295. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/tcp_qc_summary.py +0 -111
  296. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/validate_tcp.py +0 -99
  297. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/SKILL.md +0 -217
  298. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/extract_ucla_cnp_phenotype.py +0 -145
  299. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/ucla_cnp_qc_summary.py +0 -111
  300. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/validate_ucla_cnp.py +0 -113
  301. package/skills/06_fMRI_Neuroimaging/ukb-skill/SKILL.md +0 -310
  302. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/build_ukb_survival.py +0 -210
  303. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_cases.py +0 -308
  304. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_phenotype.py +0 -232
  305. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/ukb_qc_summary.py +0 -158
  306. package/skills/06_fMRI_Neuroimaging/wmh-segmentation/SKILL.md +0 -133
  307. package/skills/07_Computational_Modeling/detrending/SKILL.md +0 -118
  308. package/skills/07_Computational_Modeling/dictlearning/SKILL.md +0 -122
  309. package/skills/07_Computational_Modeling/filtering/SKILL.md +0 -121
  310. package/skills/07_Computational_Modeling/glm/SKILL.md +0 -153
  311. package/skills/07_Computational_Modeling/hierarchical/SKILL.md +0 -121
  312. package/skills/07_Computational_Modeling/ica/SKILL.md +0 -122
  313. package/skills/07_Computational_Modeling/kmeans/SKILL.md +0 -119
  314. package/skills/07_Computational_Modeling/run_models/SKILL.md +0 -427
  315. package/skills/07_Computational_Modeling/spacenet/SKILL.md +0 -122
  316. package/skills/07_Computational_Modeling/svm/SKILL.md +0 -120
  317. package/skills/08_Computational_Neuroscience/brain_gnn/SKILL.md +0 -183
  318. package/skills/08_Computational_Neuroscience/dipy-tool/SKILL.md +0 -239
  319. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/dti_metrics_reference.py +0 -70
  320. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/load_and_mask_reference.py +0 -76
  321. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/roi_stats_reference.py +0 -59
  322. package/skills/08_Computational_Neuroscience/fm_app/SKILL.md +0 -195
  323. package/skills/08_Computational_Neuroscience/neurostorm/SKILL.md +0 -151
  324. package/skills/13_Visualization/brain-visualization/SKILL.md +0 -191
  325. package/skills/13_Visualization/brain-visualization/scripts/connectome_reference.py +0 -108
  326. package/skills/13_Visualization/brain-visualization/scripts/freesurfer_ply_reference.py +0 -54
  327. package/skills/13_Visualization/brain-visualization/scripts/zalff_summary_reference.py +0 -116
  328. package/skills/13_Visualization/ethoclaw-paper-figure-layout/SKILL.md +0 -78
  329. package/skills/13_Visualization/ethoclaw-paper-figure-layout/assets/naturecomm_figures.tex +0 -74
  330. package/skills/13_Visualization/ethoclaw-paper-figure-layout/scripts/layout_results_foldered.py +0 -579
  331. package/skills/14_Writing/overleaf-skill/SKILL.md +0 -184
  332. package/skills/14_Writing/overleaf-skill/scripts/install.sh +0 -30
  333. package/skills/14_Writing/paper-writing/SKILL.md +0 -146
  334. package/skills/14_Writing/paper-writing/scripts/data_statement_templates.py +0 -164
  335. package/skills/14_Writing/paper-writing/scripts/figure_templates.py +0 -315
  336. package/skills/14_Writing/paper-writing/scripts/nature_figure_style.py +0 -214
  337. package/skills/14_Writing/paper-writing/scripts/section_phrasebank.py +0 -246
  338. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/SKILL.md +0 -274
  339. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.html +0 -112
  340. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.md +0 -21
  341. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/cluster-section.md +0 -5
  342. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/heatmap-section.md +0 -5
  343. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/integrated-interpretation.md +0 -3
  344. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/overview.md +0 -3
  345. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/project-summary.md +0 -3
  346. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/radar-section.md +0 -5
  347. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/raw-trajectory.md +0 -3
  348. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/sample-check.md +0 -3
  349. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/single-subject-section.md +0 -3
  350. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/stats-section.md +0 -5
  351. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/epm.md +0 -52
  352. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/fst.md +0 -37
  353. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/nor.md +0 -39
  354. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/oft.md +0 -43
  355. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tcst.md +0 -45
  356. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tst.md +0 -36
  357. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/input-types.md +0 -59
  358. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/interpretation-guardrails.md +0 -45
  359. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/metadata-schema.md +0 -57
  360. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/report-sections.md +0 -86
  361. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/section-selection-rules.md +0 -169
  362. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/build_report_manifest.py +0 -27
  363. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/render_report.py +0 -34
  364. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/report_utils.py +0 -1121
  365. package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/SKILL.md +0 -390
  366. package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/reference_code.py +0 -98
  367. package/skills/16_Animal_Behavior/ethoclaw-animal-pose-estimation/SKILL.md +0 -336
  368. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/README.md +0 -21
  369. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/SKILL.md +0 -41
  370. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/batch_kinematic_generator.py +0 -663
  371. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/config.json +0 -19
  372. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/generate_kinematic_parameter.py +0 -401
  373. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/kinematic_generator.py +0 -265
  374. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/SKILL.md +0 -72
  375. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/references/config.example.toml +0 -56
  376. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params.py +0 -232
  377. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params_from_config.py +0 -236
  378. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/SKILL.md +0 -68
  379. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/references/notes.md +0 -5
  380. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/scripts/plot_h5_radar.py +0 -513
  381. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/SKILL.md +0 -52
  382. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/config.toml +0 -81
  383. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/references/stats-rule.md +0 -18
  384. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_inspect.py +0 -79
  385. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_batch.py +0 -624
  386. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_stats.py +0 -438
  387. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/SKILL.md +0 -280
  388. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_trajectory.py +0 -790
  389. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_velocity.py +0 -855
  390. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.csv +0 -101
  391. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.h5 +0 -0
  392. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_data_readme.md +0 -126
@@ -0,0 +1,251 @@
1
+ ---
2
+ name: alphagenome-single-variant-analysis
3
+ description: >
4
+ Analyzes genetic variant effects on gene expression (RNA-seq), chromatin
5
+ accessibility (DNASE), histone marks (ChIP), and transcription factors
6
+ using the AlphaGenome API. Use when the user asks about non-coding variant effects,
7
+ pathogenicity, clinical significance, disease associations, functional
8
+ effects, gene expression changes, splicing disruption, or regulatory effects
9
+ in promoters and enhancers. Also use for resolving biological terms to
10
+ tissue/cell-type ontologies (UBERON/CL) or analyzing variants in
11
+ chr:pos:ref>alt format.
12
+ ---
13
+
14
+ # Variant Analysis using AlphaGenome
15
+
16
+ ## Prerequisites
17
+
18
+ 1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
19
+ `uv` is installed and on PATH.
20
+ 2. **User Notification**: If
21
+ .licenses/alphagenome_single_variant_analysis_LICENSE.txt does not already
22
+ exist in the workspace root directory then (1) prominently notify the user
23
+ to check the terms at https://deepmind.google.com/science/alphagenome/, then
24
+ (2) create the file recording the notification text and timestamp.
25
+ 3. **`.env` file**: Make sure the `.env` file exists in your home directory.
26
+ Create one if it does not exist.
27
+ 4. **`ALPHAGENOME_API_KEY`**: This skill requires an API key to function.
28
+ You can register for a key at https://deepmind.google.com/science/alphagenome/.
29
+ You **MUST** use the safe credentials protocol in the `credentials` skill to
30
+ check for and request this key if this skill looks relevant to the user's request.
31
+
32
+ ## Core Rules
33
+
34
+ - **NEVER run `python3` or `python3 -c` directly.** The system Python does not
35
+ necessarily have pandas, numpy, and other key dependencies. ALWAYS use `uv
36
+ run` to run ALL Python code — including scripts, ad-hoc analysis files, and
37
+ one-liners. Do not attempt to `pip install` or create new venvs — `uv`
38
+ manages an isolated environment automatically.
39
+ - **Offline Only**: NEVER use external APIs (e.g., MyGene.info, Ensembl REST)
40
+ for gene/transcript lookup. Use `lookup_gene_info.py` with the local GTF. If
41
+ it fails, fix the environment/paths, do not switch to external APIs.
42
+ - **API Key is required**: `ALPHAGENOME_API_KEY` must be set before running
43
+ any script.
44
+ - **Notification**: If this skill is used, ensure this is mentioned in the
45
+ output.
46
+ - **Report Format**: Always use the templates in `docs/report-templates.md`
47
+ for generating analysis reports, and ensure to include the table of top hits
48
+ from the discovery scan.
49
+
50
+ ## Environment Setup & Troubleshooting
51
+
52
+ ### Python Environment
53
+
54
+ All scripts must be executed using `uv run`, which manages an isolated virtual
55
+ environment with the correct dependencies via `uv`.
56
+
57
+ ```bash
58
+ uv run <script_name> [args...]
59
+ ```
60
+
61
+ For ad-hoc scripts (e.g., inline analysis code saved to a temp file), pass the
62
+ full path instead of a short name:
63
+
64
+ ```bash
65
+ uv run --project $SKILL_DIR /tmp/my_analysis.py --arg1 val1
66
+ ```
67
+
68
+ > [!NOTE] The first invocation resolves and installs dependencies (~10s).
69
+ > Subsequent runs use the cached environment and start instantly. The cache
70
+ > lives in `~/.cache/uv/`.
71
+
72
+ ### Common Issues
73
+
74
+ - **Column Names**: `tidy_scores` and metadata often use `gene_name` (not
75
+ `gene_symbol`) and `output_type` (not `modality`). Always inspect
76
+ `df.columns` before filtering.
77
+ - **Large Genes**: Genes > 500kb (e.g., `USH2A`) break the `whole_gene` view.
78
+ Use `--view detail` or manual regional windows instead.
79
+ - **Sashimi Strand Error**: `plot_components.Sashimi` does NOT accept a
80
+ `strand` argument directly. Filter input tracks instead.
81
+ - **KeyError: 'ontology_curie'**: Not all tracks have `ontology_curie`. Check
82
+ `track.metadata.columns` before filtering.
83
+ - **Python Path**: If `exec: "python": executable file not found` occurs,
84
+ ensure you are using `uv run` instead of bare `python`/`python3`.
85
+ - **NotImplementedError (pandas)**: "iLocation based boolean indexing on an
86
+ integer type is not available". This occurs when using boolean masks with
87
+ `.iloc` on integer-indexed DataFrames in newer pandas versions. **Fix**:
88
+ Convert boolean masks to integer indices using `np.flatnonzero(mask)`.
89
+ - **GTF Feather Case Sensitivity**: The AlphaGenome GTF Feather file uses
90
+ **Capitalized** column names (`Feature`, `Start`, `End`, `Strand`) unlike
91
+ standard GTF files. Always check `df.columns` if getting KeyErrors.
92
+ - **`score_variant` ontology filtering**: `score_variant` does NOT accept
93
+ `ontology_terms` as an argument. You must filter the returned AnnData
94
+ objects manually by inspecting `adata.var` columns. In contrast,
95
+ `predict_variant` DOES accept `ontology_terms` directly.
96
+ - **Sashimi Zoom Logic**: To ensure "skipping" arcs are visible, expand the
97
+ zoom to include the **flanking exons** rather than relying on junction
98
+ overlap alone.
99
+ - **Junction Scores**: Raw `Junction` objects from `prediction` may be simple
100
+ Intervals. Use `junction_data.get_junctions_to_plot(predictions=...,
101
+ name=...)` to retrieve objects with the `.k` (abundance/score) attribute.
102
+ - **`uv` Not Found**: If `exec: uv: not found`, follow the installation
103
+ instructions in [Prerequisites](#prerequisites).
104
+ - **Registry Authentication Error (401)**: If `uv` fails with 401 Unauthorized
105
+ for a private registry, set `UV_INDEX_URL=https://pypi.org/simple` before
106
+ running the script.
107
+
108
+ ## References
109
+
110
+ - [alphagenome-api.md](docs/alphagenome-api.md) — API reference and code
111
+ patterns
112
+ - [interpretation-guide.md](docs/interpretation-guide.md) — Interpretation
113
+ guide, score magnitude rules, ISM, and checklist.
114
+ - [report-templates.md](docs/report-templates.md) — Full report templates
115
+ - [`scripts/visualize_variant_effects.py`](scripts/visualize_variant_effects.py)
116
+ — Single-variant visualization template (Ref/Alt comparisons, Splicing).
117
+ - **Splicing Zoom Strategy**: Uses a **Hybrid Approach** for optimal
118
+ visibility:
119
+ 1. **Base Interval**: Variant +/- 1 downstream and upstream exon
120
+ (Structural Context).
121
+ 2. **Junction Expansion**: Expands to include the full span of any
122
+ **significant splicing junction** (e.g., exon skipping events that
123
+ span multiple exons).
124
+ 3. **Anchor Enforcement**: Ensures the exons *anchoring* these long
125
+ junctions are fully visible. *Lesson*: Simple fixed windows (e.g.,
126
+ 2kb) or nearest-exon logic often fail for skipping events. Always
127
+ use the *observed junction data* to drive zoom levels.
128
+ - [`examples/splicing/`](docs/examples/splicing/) — Splicing analysis examples
129
+ - [`examples/model_limitation_RNU4ATAC/`](docs/examples/model_limitation_RNU4ATAC/)
130
+ — ncRNA structure limitation case study
131
+ - [`examples/polyadenylation_HBA2/`](docs/examples/polyadenylation_HBA2/) — 3'
132
+ UTR / Polyadenylation case study
133
+ - [`examples/regulatory/`](docs/examples/regulatory/) — Regulatory variant
134
+ examples
135
+ - [`examples/negative_result_GATA4/`](docs/examples/negative_result_GATA4/) —
136
+ Negative results (mathematical artefact)
137
+ - [`examples/negative_result_TGFB3/`](docs/examples/negative_result_TGFB3/) —
138
+ Negative results (proxies)
139
+ - [`scripts/lookup_gene_info.py`](scripts/lookup_gene_info.py) — Gene &
140
+ transcript lookup
141
+ - [`scripts/resolve_ontology_terms.py`](scripts/resolve_ontology_terms.py) —
142
+ Ontology term resolution (UBERON/CL IDs)
143
+
144
+ --------------------------------------------------------------------------------
145
+
146
+ ## Code Patterns
147
+
148
+ ### Broad Discovery Scan
149
+
150
+ Use `score_variant` across **differential scorers only** to discover unexpected
151
+ tissue effects.
152
+
153
+ ```python
154
+ from alphagenome.models import dna_client
155
+ from alphagenome.models import variant_scorers
156
+ from alphagenome.data import genome
157
+ import os
158
+ import pandas as pd
159
+ import dotenv
160
+
161
+ # Load environment variables from ~/.env
162
+ dotenv.load_dotenv(os.path.expanduser('~/.env'))
163
+
164
+ # Setup API Key and Client
165
+ dna_model = dna_client.create(api_key=os.environ.get('ALPHAGENOME_API_KEY'),
166
+ address='dns:///gdmscience.googleapis.com:443')
167
+
168
+ # Define Variant (example)
169
+ variant_str = "chr2:1234:A>C"
170
+ chrom, pos_str, ref_alt = variant_str.split(':')
171
+ ref, alt = ref_alt.split('>')
172
+ pos = int(pos_str)
173
+
174
+ # Use supported sequence length (e.g., 2**20 for optimal performance)
175
+ SEQ_LENGTH = 2**20
176
+ interval = genome.Interval(chrom, pos - SEQ_LENGTH // 2, pos + SEQ_LENGTH // 2)
177
+ variant = genome.Variant(chrom, pos, ref, alt)
178
+
179
+ scorers = [
180
+ variant_scorers.RECOMMENDED_VARIANT_SCORERS[m]
181
+ for m in variant_scorers.RECOMMENDED_VARIANT_SCORERS
182
+ if "ACTIVE" not in m and "CAGE" not in m and "PROCAP" not in m
183
+ ]
184
+
185
+ print(f"Scoring variant {variant_str}...")
186
+ scores_list = dna_model.score_variant(interval=interval, variant=variant, variant_scorers=scorers)
187
+
188
+ # Process and Display Results
189
+ all_dfs = []
190
+ for score_adata in scores_list:
191
+ df = variant_scorers.tidy_scores([score_adata], match_gene_strand=True)
192
+ if df is not None:
193
+ all_dfs.append(df)
194
+
195
+ if all_dfs:
196
+ df = pd.concat(all_dfs)
197
+ significant = df[df['quantile_score'].abs() > 0.995]
198
+ ranked = significant.sort_values('raw_score', key=abs, ascending=False)
199
+ print("Top Significant Hits:")
200
+ print(ranked[['biosample_name', 'gene_name', 'output_type', 'quantile_score', 'raw_score']])
201
+ ```
202
+
203
+ ### Extended Search for Disease-Relevant Tissues
204
+
205
+ ```python
206
+ # Define keywords based on disease context
207
+ disease_keywords = ["liver", "hepatocyte"]
208
+
209
+ # Filter for any match
210
+ mask = df['biosample_name'].str.contains('|'.join(disease_keywords), case=False, na=False)
211
+
212
+ relevant_hits = df[mask].sort_values('raw_score', key=abs, ascending=False)
213
+ print(f"\n--- Extended Analysis (Keywords: {disease_keywords}) ---")
214
+ print(relevant_hits.head(20)[['biosample_name', 'output_type', 'raw_score', 'quantile_score']])
215
+ ```
216
+
217
+ ## Workflow Checklist
218
+
219
+ ```
220
+ Variant Analysis Progress:
221
+ - [ ] Step 0: Review Golden Examples (MANDATORY)
222
+ - [ ] Step 1: Create Output Folder and Setup
223
+ - [ ] Step 2: Parse User Query & Research
224
+ - [ ] Step 3: Resolve Tissues & Modalities
225
+ - [ ] Step 4: Visualize & Save Plots
226
+ - [ ] Step 5: Analyze Predictions (view plots, no code). MANDATORY: Read [interpretation-guide.md](docs/interpretation-guide.md) before interpreting results.
227
+ - [ ] Step 6: Write Report, save it as `report.md` (MANDATORY)
228
+ - [ ] Step 7: Self-Critique (view `report.md` to verify links & claims)
229
+ - [ ] Step 8: Make artifact out of `report.md`
230
+ ```
231
+
232
+ --------------------------------------------------------------------------------
233
+
234
+ ## Multi-Variant Workflow
235
+
236
+ If multiple variants are specified, spawn sub-agents to run each variant
237
+ analysis and then synthesize each `report.md` into a single report.
238
+
239
+ ### Script Reference
240
+
241
+ | Script | Purpose |
242
+ | --------------------------- | ---------------------------------------------- |
243
+ | `lookup_gene_info` | Comprehensive gene and transcript lookup using |
244
+ : : GTF data :
245
+ | `resolve_ontology_terms` | Biological terms → UBERON/CL/EFO IDs |
246
+ | `visualize_variant_effects` | REF/ALT visualization (expression, regulatory, |
247
+ : : splicing) :
248
+ | `analyze_ism` | In-Silico Mutagenesis SeqLogo generation |
249
+ | `interpret_splicing` | Quantitative splicing analysis (delta scores, |
250
+ : : junctions) :
251
+ | `visualize_genome_tracks` | Genomic track visualization for a region |
@@ -0,0 +1,15 @@
1
+ [project]
2
+ name = "alphagenome-single-variant-analysis"
3
+ version = "0.1.0"
4
+ requires-python = ">=3.10"
5
+ dependencies = [
6
+ "alphagenome>=0.6.1",
7
+ "absl-py",
8
+ "python-dotenv",
9
+ "matplotlib",
10
+ "numpy",
11
+ "pandas",
12
+ "pyarrow",
13
+ "scipy",
14
+ "seaborn",
15
+ ]
@@ -0,0 +1,12 @@
1
+ @ARTICLE{Avsec2026,
2
+ AUTHOR = {Avsec, Žiga and Latysheva, Natasha and Cheng, Jun and Novati, Guido and Taylor, Kyle R. and Ward, Tom and Bycroft, Clare and Nicolaisen, Lauren and Arvaniti, Eirini and Pan, Joshua and Thomas, Raina and Dutordoir, Vincent and Perino, Matteo and De, Soham and Karollus, Alexander and Gayoso, Adam and Sargeant, Toby and Mottram, Anne and Wong, Lai Hong and Drotár, Pavol and Kosiorek, Adam and Senior, Andrew and Tanburn, Richard and Applebaum, Taylor and Basu, Souradeep and Hassabis, Demis and Kohli, Pushmeet},
3
+ PUBLISHER = {Nature Publishing Group UK London},
4
+ DATE = {2026},
5
+ DOI = {10.1038/s41586-025-10014-0},
6
+ JOURNALTITLE = {Nature},
7
+ NUMBER = {8099},
8
+ PAGES = {1206--1218},
9
+ TITLE = {Advancing regulatory variant effect prediction with {AlphaGenome}},
10
+ VOLUME = {649},
11
+ }
12
+
@@ -0,0 +1,334 @@
1
+ # Copyright 2026 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ r"""Generate ISM Sequence Logo for a variant.
16
+
17
+ Design Note:
18
+ This tool generates ISM Sequence Logos to identify disrupted motifs at the
19
+ variant position, helping explain *why* a regulatory or splicing site was
20
+ lost or gained (mechanistic cause).
21
+
22
+ The script extracts the top k-mer and prints its reverse complement.
23
+ The agent must use its own knowledge about transcription factor binding
24
+ motifs to identify candidate TFs that match the extracted motif or its
25
+ reverse complement.
26
+
27
+ Usage:
28
+ uv run analyze_ism.py --chrom=chr17 --pos=7675148 --ref=G --alt=A \
29
+ --tissue=liver --ontology=UBERON:0002107 --modality=DNASE
30
+
31
+ Examples:
32
+ uv run analyze_ism.py --chrom=chr17 --pos=7675148 --ref=G --alt=A \
33
+ --tissue=liver --ontology=UBERON:0002107 --modality=DNASE
34
+
35
+ uv run analyze_ism.py --chrom=chr21 --pos=46126238 --ref=G --alt=C \
36
+ --tissue='skeletal muscle' --ontology=CL:0002545 --modality=SPLICE_SITE_USAGE \
37
+ --gene=COL6A2
38
+
39
+ uv run analyze_ism.py --chrom=chr7 --pos=5529776 --ref=C --alt=T \
40
+ --tissue=HepG2 --ontology=EFO:0001187 --modality=CHIP_TF --gene=ACTB \
41
+ --output_dir=./ism_plots
42
+ """
43
+
44
+ # /// script
45
+ # requires-python = ">=3.10"
46
+ # dependencies = [
47
+ # "alphagenome",
48
+ # "numpy",
49
+ # "python-dotenv",
50
+ # ]
51
+ # ///
52
+
53
+ from __future__ import annotations
54
+
55
+ import argparse
56
+ import os
57
+ from typing import Any, Sequence
58
+
59
+ from alphagenome.data import genome
60
+ from alphagenome.interpretation import ism
61
+ from alphagenome.models import dna_client
62
+ from alphagenome.models import variant_scorers
63
+ from alphagenome.visualization import plot_components
64
+ import dotenv
65
+ import numpy as np
66
+
67
+
68
+ def _reverse_complement(seq: str) -> str:
69
+ """Returns the reverse complement of a DNA sequence."""
70
+ return seq[::-1].translate(str.maketrans('ACGTacgt', 'TGCAtgca'))
71
+
72
+
73
+ def extract_ontology_scores(
74
+ ism_results: list[tuple[Any, ...]],
75
+ ontology_id: str,
76
+ gene_name: str | None = None,
77
+ ) -> tuple[list[float], list[Any]]:
78
+ """Extracts scores for a specific ontology ID from ISM results."""
79
+ scores_flat: list[float] = []
80
+ variants_flat: list[Any] = []
81
+
82
+ for adata, *_ in ism_results:
83
+ var_obj = adata.uns['variant']
84
+ score = 0.0
85
+
86
+ if 'ontology_curie' in adata.var.columns:
87
+ col_mask = adata.var['ontology_curie'] == ontology_id
88
+ if col_mask.any():
89
+ row_mask = slice(None) # All rows
90
+ if gene_name and 'gene_name' in adata.obs.columns:
91
+ gene_mask = adata.obs['gene_name'] == gene_name
92
+ if gene_mask.any():
93
+ row_mask = gene_mask
94
+ score = np.nanmean(adata.X[row_mask, col_mask])
95
+ else:
96
+ print(
97
+ 'Info: No scores found for ontology term'
98
+ f' {ontology_id!r} in ISM result.'
99
+ )
100
+
101
+ scores_flat.append(score)
102
+ variants_flat.append(var_obj)
103
+
104
+ return scores_flat, variants_flat
105
+
106
+
107
+ def interpret_ism_matrix(
108
+ ref_ism_mat: np.ndarray,
109
+ bases: list[str],
110
+ kmer_length: int,
111
+ min_threshold: float,
112
+ ) -> None:
113
+ """Prints interpretation summary from an ISM matrix."""
114
+ print('\n--- ISM Interpretation Summary ---')
115
+ if not np.any(ref_ism_mat):
116
+ print('ISM matrix is all zeros. No relevant tracks or scores found.')
117
+ return
118
+
119
+ max_scores_per_pos = np.max(np.abs(ref_ism_mat), axis=1)
120
+ top_pos_idx = int(np.argmax(max_scores_per_pos))
121
+ top_score = ref_ism_mat[top_pos_idx, :]
122
+ center_idx = ref_ism_mat.shape[0] // 2
123
+
124
+ print(
125
+ f'Top Disrupted Position: {top_pos_idx - center_idx} (Relative to'
126
+ ' Variant)'
127
+ )
128
+ print(f'Scores at Top Position: {dict(zip(bases, top_score))}')
129
+
130
+ # Use relative threshold but ensure it's at least min_threshold
131
+ threshold = max(np.max(np.abs(ref_ism_mat)) * 0.1, min_threshold)
132
+
133
+ consensus_seq: list[str] = []
134
+ for i in range(ref_ism_mat.shape[0]):
135
+ row = ref_ism_mat[i, :]
136
+ best_idx = np.argmax(np.abs(row))
137
+ if abs(row[best_idx]) > threshold:
138
+ consensus_seq.append(bases[best_idx])
139
+ else:
140
+ consensus_seq.append('.')
141
+
142
+ consensus_str = ''.join(consensus_seq)
143
+ print(f'Consensus Motif: {consensus_str}')
144
+ print(f'Reverse Compl : {_reverse_complement(consensus_str)}')
145
+
146
+ if ref_ism_mat.shape[0] >= kmer_length:
147
+ best_kmer_score = -1.0
148
+ best_kmer_seq = ''
149
+ best_kmer_start = 0
150
+ for i in range(ref_ism_mat.shape[0] - kmer_length + 1):
151
+ window = ref_ism_mat[i : i + kmer_length, :]
152
+ score = np.sum(np.max(np.abs(window), axis=1))
153
+ if score > best_kmer_score:
154
+ best_kmer_score = score
155
+ best_kmer_start = i
156
+ seq = ''
157
+ for j in range(kmer_length):
158
+ w_row = window[j, :]
159
+ seq += bases[np.argmax(np.abs(w_row))]
160
+ best_kmer_seq = seq
161
+ print(
162
+ f'Top {kmer_length}-mer: {best_kmer_seq}'
163
+ f' (Start: {best_kmer_start - center_idx},'
164
+ f' Score: {best_kmer_score:.3f})'
165
+ )
166
+ print(f'RevComp {kmer_length}-mer: {_reverse_complement(best_kmer_seq)}')
167
+ print('----------------------------------\n')
168
+
169
+
170
+ def analyze_ism(
171
+ chrom: str,
172
+ pos: int,
173
+ ref: str,
174
+ alt: str,
175
+ tissue: str,
176
+ ontology: str,
177
+ modality: str,
178
+ gene: str,
179
+ output_dir: str,
180
+ kmer_length: int,
181
+ min_threshold: float,
182
+ ) -> None:
183
+ """Runs In-Silico Mutagenesis (ISM) analysis and plots the results."""
184
+ api_key = os.environ.get('ALPHAGENOME_API_KEY')
185
+ if not api_key:
186
+ raise ValueError('ALPHAGENOME_API_KEY not found.')
187
+
188
+ print('Initializing AlphaGenome Client...')
189
+ dna_model = dna_client.create(
190
+ api_key=api_key,
191
+ address='dns:///gdmscience.googleapis.com:443',
192
+ )
193
+
194
+ variant = genome.Variant(chrom, pos, ref, alt)
195
+ print(f'Variant: {variant}')
196
+
197
+ ism_interval = variant.reference_interval.resize(32)
198
+ sequence_interval = ism_interval.resize(dna_client.SEQUENCE_LENGTH_1MB)
199
+
200
+ try:
201
+ output_type = dna_client.OutputType[modality.upper()]
202
+ except KeyError as e:
203
+ raise ValueError(
204
+ f'Unknown modality: {modality}. Valid options:'
205
+ f' {[o.name for o in dna_client.OutputType]}'
206
+ ) from e
207
+
208
+ if output_type == dna_client.OutputType.SPLICE_JUNCTIONS:
209
+ raise ValueError(
210
+ 'SPLICE_JUNCTIONS is NOT supported for ISM. Please use'
211
+ ' SPLICE_SITE_USAGE instead.'
212
+ )
213
+
214
+ print(f'Scoring ISM for {tissue} ({output_type.name})...')
215
+
216
+ modality_key = modality.upper()
217
+ if modality_key in variant_scorers.RECOMMENDED_VARIANT_SCORERS:
218
+ ism_scorer = variant_scorers.RECOMMENDED_VARIANT_SCORERS[modality_key]
219
+ else:
220
+ raise ValueError(
221
+ f'No recommended scorer found for modality: {modality_key}. '
222
+ 'Available recommended scorers: '
223
+ f'{list(variant_scorers.RECOMMENDED_VARIANT_SCORERS.keys())}'
224
+ )
225
+
226
+ print('Running ISM on REF background...')
227
+ ref_ism_results = dna_model.score_ism_variants(
228
+ interval=sequence_interval,
229
+ ism_interval=ism_interval,
230
+ variant_scorers=[ism_scorer],
231
+ )
232
+
233
+ ref_scores, ref_variants = extract_ontology_scores(
234
+ ref_ism_results, ontology, gene_name=gene
235
+ )
236
+ ref_ism_mat = ism.ism_matrix(ref_scores, variants=ref_variants)
237
+
238
+ max_score = np.max(np.abs(ref_ism_mat))
239
+ if max_score == 0:
240
+ print('WARNING: ISM matrix is empty (all zeros). Check ontology ID.')
241
+ elif max_score < min_threshold:
242
+ print(
243
+ f'WARNING: Max ISM score is very low ({max_score:.3f}), below'
244
+ f' threshold {min_threshold}. The result may not be reliable.'
245
+ )
246
+
247
+ print('Generating SeqLogo...')
248
+ fig = plot_components.plot(
249
+ [
250
+ plot_components.SeqLogo(
251
+ scores=ref_ism_mat,
252
+ scores_interval=ism_interval,
253
+ ylabel=f'ISM {tissue}\n{output_type.name}',
254
+ )
255
+ ],
256
+ interval=ism_interval,
257
+ fig_width=15,
258
+ title=f'ISM Motif Analysis: {gene} {chrom}:{pos} ({tissue})',
259
+ annotations=[plot_components.VariantAnnotation([variant], alpha=0.5)],
260
+ )
261
+
262
+ safe_tissue = tissue.replace(' ', '_').replace('/', '_')
263
+ filename = os.path.join(output_dir, f'ism_{safe_tissue}_{modality}.png')
264
+ os.makedirs(output_dir, exist_ok=True)
265
+ fig.savefig(filename)
266
+ print(f'Saved ISM SeqLogo to {filename}')
267
+
268
+ bases = ['A', 'C', 'G', 'T']
269
+ interpret_ism_matrix(ref_ism_mat, bases, kmer_length, min_threshold)
270
+
271
+
272
+ def main(argv: Sequence[str] | None = None) -> None:
273
+ """Main entry point for the ISM analysis CLI tool."""
274
+ dotenv.load_dotenv(os.path.expanduser('~/.env'))
275
+ parser = argparse.ArgumentParser(
276
+ description='Generate ISM Sequence Logo for a variant.'
277
+ )
278
+ parser.add_argument(
279
+ '--chrom',
280
+ required=True,
281
+ help='Chromosome (e.g., chr17).',
282
+ )
283
+ parser.add_argument(
284
+ '--pos', type=int, required=True, help='Position (1-based).'
285
+ )
286
+ parser.add_argument('--ref', required=True, help='Reference allele.')
287
+ parser.add_argument('--alt', required=True, help='Alternate allele.')
288
+ parser.add_argument(
289
+ '--tissue', required=True, help='Tissue name for labeling.'
290
+ )
291
+ parser.add_argument(
292
+ '--ontology', required=True, help='Ontology CURIE (e.g., UBERON:0002107).'
293
+ )
294
+ parser.add_argument(
295
+ '--modality',
296
+ required=True,
297
+ help='Output modality (e.g., DNASE, CHIP_TF).',
298
+ )
299
+ parser.add_argument(
300
+ '--gene', default='Unknown', help='Gene name for plot title.'
301
+ )
302
+ parser.add_argument('--output_dir', default='.', help='Output directory.')
303
+ parser.add_argument(
304
+ '--kmer_length',
305
+ type=int,
306
+ default=8,
307
+ help='Length of k-mer to scan for top score.',
308
+ )
309
+ parser.add_argument(
310
+ '--min_threshold',
311
+ type=float,
312
+ default=0.05,
313
+ help='Minimum absolute score threshold for motif extraction.',
314
+ )
315
+
316
+ args = parser.parse_args(argv)
317
+
318
+ analyze_ism(
319
+ args.chrom,
320
+ args.pos,
321
+ args.ref,
322
+ args.alt,
323
+ args.tissue,
324
+ args.ontology,
325
+ args.modality,
326
+ args.gene,
327
+ args.output_dir,
328
+ args.kmer_length,
329
+ args.min_threshold,
330
+ )
331
+
332
+
333
+ if __name__ == '__main__':
334
+ main()