@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,176 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gtex-database
|
|
3
|
+
description: >
|
|
4
|
+
Use when you want to retrieve quantitative RNA expression data and variant
|
|
5
|
+
eQTL information from the GTEx (Genotype-Tissue Expression) Project across 54
|
|
6
|
+
non-diseased tissue sites.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# GTEx Database Integration
|
|
10
|
+
|
|
11
|
+
This skill retrieves transcriptomics data (RNA expression baselines) and
|
|
12
|
+
expression Quantitative Trait Loci (eQTLs) from the GTEx Portal API V2. It
|
|
13
|
+
provides access to median TPM (Transcripts Per Million) values for genes and
|
|
14
|
+
significant eQTLs for variants across 54 human tissue sites.
|
|
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 .licenses/gtex_database_LICENSE.txt does not
|
|
21
|
+
already exist in the workspace root directory then (1) prominently notify
|
|
22
|
+
the user to check the terms at https://gtexportal.org/home/license and
|
|
23
|
+
https://gtexportal.org/home/documentationPage#gtexApi, then (2) create the
|
|
24
|
+
file recording the notification text and timestamp.
|
|
25
|
+
|
|
26
|
+
## When to Use
|
|
27
|
+
|
|
28
|
+
**Use this skill when you need to:**
|
|
29
|
+
|
|
30
|
+
- Map a gene symbol to its Versioned GENCODE ID.
|
|
31
|
+
- Retrieve the baseline median expression level (in TPM) of a gene across
|
|
32
|
+
various tissues.
|
|
33
|
+
- Find the top tissues where a particular gene is most highly expressed.
|
|
34
|
+
- Fetch significant single-tissue eQTLs for a variant or within a chromosomal
|
|
35
|
+
window.
|
|
36
|
+
- Get all significant eQTLs associated with a specific gene.
|
|
37
|
+
- Contextualise a variant within GWAS loci using eQTL data.
|
|
38
|
+
|
|
39
|
+
**Do NOT use when you need to:**
|
|
40
|
+
|
|
41
|
+
- Query for protein-level expression or post-translational modifications
|
|
42
|
+
(PTMs). GTEx only measures mRNA abundance.
|
|
43
|
+
- Query gene expression in diseased tissues (e.g., tumor samples, cirrhosis).
|
|
44
|
+
GTEx is a baseline atlas of normal, non-diseased tissues.
|
|
45
|
+
- Query embryonic or fetal gene expression. GTEx donors are adults only.
|
|
46
|
+
|
|
47
|
+
## Core Rules
|
|
48
|
+
|
|
49
|
+
**CRITICAL**: You MUST respect GTEx Portal API Terms of Use.
|
|
50
|
+
|
|
51
|
+
- **Use the Wrapper**: ALWAYS execute the provided helper scripts to query the
|
|
52
|
+
database rather than accessing the database directly. The scripts
|
|
53
|
+
automatically enforce the required rate limit gracefully.
|
|
54
|
+
- Limit requests to maximum 250 items per page where applicable.
|
|
55
|
+
- **Notification**: If this skill is used, ensure this is mentioned in the
|
|
56
|
+
output.
|
|
57
|
+
|
|
58
|
+
## Command Selection Guide
|
|
59
|
+
|
|
60
|
+
**Pick the right command on the first try.** Match the user's input to the
|
|
61
|
+
correct subcommand below.
|
|
62
|
+
|
|
63
|
+
- Map a gene symbol to GENCODE ID: `resolve-gencode-id`
|
|
64
|
+
- Get median expression (TPM) for a gene: `get-median-expression`
|
|
65
|
+
- Find tissues with highest expression for a gene: `get-top-expressed-tissues`
|
|
66
|
+
- Get all eQTLs for a specific gene: `get-gene-eqtls`
|
|
67
|
+
- Find eQTLs within a chromosomal region: `get-eqtls-in-region`
|
|
68
|
+
|
|
69
|
+
## Quick Start
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Map the TNF gene symbol to its GENCODE ID
|
|
73
|
+
uv run scripts/gtex_cli.py resolve-gencode-id TNF --output /tmp/tnf_id.json
|
|
74
|
+
|
|
75
|
+
# Get median expression of a gene by GENCODE ID
|
|
76
|
+
uv run scripts/gtex_cli.py get-median-expression ENSG00000232810.2 --output /tmp/tnf_expr.json
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
All subcommands write JSON to disk. Always save output in the `/tmp/` directory.
|
|
80
|
+
The default output file is `/tmp/gtex_output.json` if `--output` is not
|
|
81
|
+
specified.
|
|
82
|
+
|
|
83
|
+
## Commands
|
|
84
|
+
|
|
85
|
+
### 1. `resolve-gencode-id` — Gene Symbol → GENCODE ID
|
|
86
|
+
|
|
87
|
+
Maps a standard gene symbol (e.g., "JUN", "TNF") to its Versioned GENCODE ID.
|
|
88
|
+
This ID is required for all other expression and eQTL calls.
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
uv run scripts/gtex_cli.py resolve-gencode-id TNF --output /tmp/tnf_id.json
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
*Arguments:*
|
|
95
|
+
|
|
96
|
+
- `gene_symbol` (positional): The standard gene symbol (e.g., "TNF").
|
|
97
|
+
- `--output`: Output file path (default: `/tmp/gtex_output.json`).
|
|
98
|
+
|
|
99
|
+
### 2. `get-median-expression` — Get Median Expression (TPM)
|
|
100
|
+
|
|
101
|
+
Retrieves the median TPM for a gene across all 54 GTEx tissue sites or specified
|
|
102
|
+
tissues.
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
uv run scripts/gtex_cli.py get-median-expression ENSG00000232810.2 \
|
|
106
|
+
--tissues "Whole Blood,Spleen" --output /tmp/expr.json
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
*Arguments:*
|
|
110
|
+
|
|
111
|
+
- `gencode_id` (positional): The Versioned GENCODE ID.
|
|
112
|
+
- `--tissues`: Comma-separated list of tissue IDs (optional, defaults to all
|
|
113
|
+
54 tissues).
|
|
114
|
+
- `--output`: Output file path (default: `/tmp/gtex_output.json`).
|
|
115
|
+
|
|
116
|
+
### 3. `get-top-expressed-tissues` — Get Top Expressed Tissues
|
|
117
|
+
|
|
118
|
+
Returns the `n` tissues with the highest median expression for the target gene.
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
uv run scripts/gtex_cli.py get-top-expressed-tissues ENSG00000232810.2 \
|
|
122
|
+
--n 5 --output /tmp/top_tissues.json
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
*Arguments:*
|
|
126
|
+
|
|
127
|
+
- `gencode_id` (positional): The Versioned GENCODE ID.
|
|
128
|
+
- `--n`: Number of top tissues to return (default: 5).
|
|
129
|
+
- `--output`: Output file path.
|
|
130
|
+
|
|
131
|
+
### 4. `get-gene-eqtls` — Get All eQTLs for a Gene
|
|
132
|
+
|
|
133
|
+
Returns every significant eQTL associated with the gene across specified
|
|
134
|
+
tissues.
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
uv run scripts/gtex_cli.py get-gene-eqtls ENSG00000232810.2 \
|
|
138
|
+
--tissues "Whole Blood" --output /tmp/eqtls.json
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
*Arguments:*
|
|
142
|
+
|
|
143
|
+
- `gencode_id` (positional): The Versioned GENCODE ID.
|
|
144
|
+
- `--tissues`: Comma-separated list of tissue IDs (optional, defaults to all).
|
|
145
|
+
- `--output`: Output file path.
|
|
146
|
+
|
|
147
|
+
### 5. `get-eqtls-in-region` — Get eQTLs in Chromosomal Region
|
|
148
|
+
|
|
149
|
+
Returns all significant single-tissue eQTLs within a chromosomal window (up to
|
|
150
|
+
8Mb).
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
uv run scripts/gtex_cli.py get-eqtls-in-region chr17 7000000 7100000 "Esophagus - Muscularis" \
|
|
154
|
+
--output /tmp/region_eqtls.json
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
*Arguments:*
|
|
158
|
+
|
|
159
|
+
- `chromosome` (positional): Chromosome name (e.g., `chr17`).
|
|
160
|
+
- `start` (positional): Start position.
|
|
161
|
+
- `end` (positional): End position (max 8Mb from start).
|
|
162
|
+
- `tissue_id` (positional): The target tissue ID.
|
|
163
|
+
- `--output`: Output file path.
|
|
164
|
+
|
|
165
|
+
## Typical Workflows
|
|
166
|
+
|
|
167
|
+
### Identify highest expressing tissues for a gene
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
# Step 1: Map symbol to GENCODE ID
|
|
171
|
+
uv run scripts/gtex_cli.py resolve-gencode-id GATA4 --output /tmp/gata4_id.json
|
|
172
|
+
|
|
173
|
+
# Step 2: Query for top tissues using the resolved ID
|
|
174
|
+
uv run scripts/gtex_cli.py get-top-expressed-tissues <gencode_id> --n 5 \
|
|
175
|
+
--output /tmp/gata4_top.json
|
|
176
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@ARTICLE{Consortium2020,
|
|
2
|
+
ABSTRACT = {The Genotype-Tissue Expression (GTEx) project dissects how genetic variation affects gene expression and splicing. Some human genetic variants affect the amount of RNA produced and the splicing of gene transcripts, crucial steps in development and maintaining a healthy individual. However, some of these changes only occur in a small number of tissues within the body. The Genotype-Tissue Expression (GTEx) project has been expanded over time, and, looking at the final data in version 8, Aguet et al. present a deep characterization of genetic associations and gene expression and splicing in 838 individuals over 49 tissues (see the Perspective by Wilson). This large study was able to characterize the details underlying many aspects of gene expression and provides a resource with which to better understand the fundamental molecular mechanisms of how genetic variants affect gene regulation and complex traits in humans. Science, this issue p. 1318; see also p. 1298 The Genotype-Tissue Expression (GTEx) project was established to characterize genetic effects on the transcriptome across human tissues and to link these regulatory mechanisms to trait and disease associations. Here, we present analyses of the version 8 data, examining 15,201 RNA-sequencing samples from 49 tissues of 838 postmortem donors. We comprehensively characterize genetic associations for gene expression and splicing in cis and trans, showing that regulatory associations are found for almost all genes, and describe the underlying molecular mechanisms and their contribution to allelic heterogeneity and pleiotropy of complex traits. Leveraging the large diversity of tissues, we provide insights into the tissue specificity of genetic effects and show that cell type composition is a key factor in understanding gene regulatory mechanisms in human tissues.},
|
|
3
|
+
AUTHOR = {{The GTEx Consortium} and Aguet, François and Anand, Shankara and Ardlie, Kristin G. and Gabriel, Stacey and Getz, Gad A. and Graubert, Aaron and Hadley, Kane and Handsaker, Robert E. and Huang, Katherine H. and Kashin, Seva and Li, Xiao and MacArthur, Daniel G. and Meier, Samuel R. and Nedzel, Jared L. and Nguyen, Duyen T. and Segrè, Ayellet V. and Todres, Ellen and Balliu, Brunilda and Barbeira, Alvaro N. and Battle, Alexis and Bonazzola, Rodrigo and Brown, Andrew and Brown, Christopher D. and Castel, Stephane E. and Conrad, Donald F. and Cotter, Daniel J. and Cox, Nancy and Das, Sayantan and de Goede, Olivia M. and Dermitzakis, Emmanouil T. and Einson, Jonah and Engelhardt, Barbara E. and Eskin, Eleazar and Eulalio, Tiffany Y. and Ferraro, Nicole M. and Flynn, Elise D. and Fresard, Laure and Gamazon, Eric R. and Garrido-Martín, Diego and Gay, Nicole R. and Gloudemans, Michael J. and Guigó, Roderic and Hame, Andrew R. and He, Yuan and Hoffman, Paul J. and Hormozdiari, Farhad and Hou, Lei and Im, Hae Kyung and Jo, Brian and Kasela, Silva and Kellis, Manolis and Kim-Hellmuth, Sarah and Kwong, Alan and Lappalainen, Tuuli and Li, Xin and Liang, Yanyu and Mangul, Serghei and Mohammadi, Pejman and Montgomery, Stephen B. and Muñoz-Aguirre, Manuel and Nachun, Daniel C. and Nobel, Andrew B. and Oliva, Meritxell and Park, YoSon and Park, Yongjin and Parsana, Princy and Rao, Abhiram S. and Reverter, Ferran and Rouhana, John M. and Sabatti, Chiara and Saha, Ashis and Stephens, Matthew and Stranger, Barbara E. and Strober, Benjamin J. and Teran, Nicole A. and Viñuela, Ana and Wang, Gao and Wen, Xiaoquan and Wright, Fred and Wucher, Valentin and Zou, Yuxin and Ferreira, Pedro G. and Li, Gen and Melé, Marta and Yeger-Lotem, Esti and Barcus, Mary E. and Bradbury, Debra and Krubit, Tanya and McLean, Jeffrey A. and Qi, Liqun and Robinson, Karna and Roche, Nancy V. and Smith, Anna M. and Sobin, Leslie and Tabor, David E. and Undale, Anita and Bridge, Jason and Brigham, Lori E. and Foster, Barbara A. and Gillard, Bryan M. and Hasz, Richard and Hunter, Marcus and Johns, Christopher and Johnson, Mark and Karasik, Ellen and Kopen, Gene and Leinweber, William F. and McDonald, Alisa and Moser, Michael T. and Myer, Kevin and Ramsey, Kimberley D. and Roe, Brian and Shad, Saboor and Thomas, Jeffrey A. and Walters, Gary and Washington, Michael and Wheeler, Joseph and Jewell, Scott D. and Rohrer, Daniel C. and Valley, Dana R. and Davis, David A. and Mash, Deborah C. and Branton, Philip A. and Barker, Laura K. and Gardiner, Heather M. and Mosavel, Maghboeba and Siminoff, Laura A. and Flicek, Paul and Haeussler, Maximilian and Juettemann, Thomas and Kent, W. James and Lee, Christopher M. and Powell, Conner C. and Rosenbloom, Kate R. and Ruffier, Magali and Sheppard, Dan and Taylor, Kieron and Trevanion, Stephen J. and Zerbino, Daniel R. and Abell, Nathan S. and Akey, Joshua and Chen, Lin and Demanelis, Kathryn and Doherty, Jennifer A. and Feinberg, Andrew P. and Hansen, Kasper D. and Hickey, Peter F. and Jasmine, Farzana and Jiang, Lihua and Kaul, Rajinder and Kibriya, Muhammad G. and Li, Jin Billy and Li, Qin and Lin, Shin and Linder, Sandra E. and Pierce, Brandon L. and Rizzardi, Lindsay F. and Skol, Andrew D. and Smith, Kevin S. and Snyder, Michael and Stamatoyannopoulos, John and Tang, Hua and Wang, Meng and Carithers, Latarsha J. and Guan, Ping and Koester, Susan E. and Little, A. Roger and Moore, Helen M. and Nierras, Concepcion R. and Rao, Abhi K. and Vaught, Jimmie B. and Volpi, Simona},
|
|
4
|
+
URL = {https://www.science.org/doi/abs/10.1126/science.aaz1776},
|
|
5
|
+
DATE = {2020},
|
|
6
|
+
DOI = {10.1126/science.aaz1776},
|
|
7
|
+
EPRINT = {https://www.science.org/doi/pdf/10.1126/science.aaz1776},
|
|
8
|
+
JOURNALTITLE = {Science},
|
|
9
|
+
NUMBER = {6509},
|
|
10
|
+
PAGES = {1318--1330},
|
|
11
|
+
TITLE = {The {GTEx Consortium} atlas of genetic regulatory effects across human tissues},
|
|
12
|
+
VOLUME = {369},
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -0,0 +1,281 @@
|
|
|
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
|
+
"""CLI wrapper for GTEx API V2.
|
|
16
|
+
|
|
17
|
+
Follows GTEx Portal Terms of Use by fetching sequentially and handling
|
|
18
|
+
pagination.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
# /// script
|
|
22
|
+
# requires-python = ">=3.10"
|
|
23
|
+
# dependencies = [
|
|
24
|
+
# "polite-http",
|
|
25
|
+
# ]
|
|
26
|
+
# ///
|
|
27
|
+
|
|
28
|
+
import argparse
|
|
29
|
+
import json
|
|
30
|
+
import sys
|
|
31
|
+
import urllib.parse
|
|
32
|
+
|
|
33
|
+
from polite_http import http_client
|
|
34
|
+
|
|
35
|
+
BASE_URL = 'https://gtexportal.org/api/v2'
|
|
36
|
+
DATASET_ID = 'gtex_v10'
|
|
37
|
+
GENCODE_VERSION = 'v39'
|
|
38
|
+
CLIENT = http_client.HttpClient(BASE_URL, qps=1.0)
|
|
39
|
+
|
|
40
|
+
# Optional cache for tissues to avoid fetching repeatedly
|
|
41
|
+
TISSUE_CACHE = None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _fetch(url, params=None):
|
|
45
|
+
"""Fetches URL, with optional query parameters, using HttpClient."""
|
|
46
|
+
if params:
|
|
47
|
+
# Filter out None values
|
|
48
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
49
|
+
query_string = urllib.parse.urlencode(params, doseq=True)
|
|
50
|
+
full_url = f'{url}?{query_string}'
|
|
51
|
+
else:
|
|
52
|
+
full_url = url
|
|
53
|
+
|
|
54
|
+
return CLIENT.fetch_json(full_url)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _fetch_paginated(url, params=None):
|
|
58
|
+
"""Fetches all pages from a paginated endpoint."""
|
|
59
|
+
if params is None:
|
|
60
|
+
params = {}
|
|
61
|
+
|
|
62
|
+
all_data = []
|
|
63
|
+
page = 0
|
|
64
|
+
while True:
|
|
65
|
+
params['page'] = page
|
|
66
|
+
response = _fetch(url, params)
|
|
67
|
+
|
|
68
|
+
# Some endpoints don't use 'data' wrapping or 'paging_info'
|
|
69
|
+
if 'paging_info' not in response:
|
|
70
|
+
return response
|
|
71
|
+
|
|
72
|
+
data = response.get('data', [])
|
|
73
|
+
all_data.extend(data)
|
|
74
|
+
|
|
75
|
+
paging = response.get('paging_info', {})
|
|
76
|
+
total_pages = paging.get('numberOfPages', 0)
|
|
77
|
+
|
|
78
|
+
if page >= total_pages - 1:
|
|
79
|
+
break
|
|
80
|
+
page += 1
|
|
81
|
+
|
|
82
|
+
return all_data
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def get_tissue_mapping():
|
|
86
|
+
"""Fetches the list of tissues and maps names to tissueSiteDetailId."""
|
|
87
|
+
global TISSUE_CACHE
|
|
88
|
+
if TISSUE_CACHE is not None:
|
|
89
|
+
return TISSUE_CACHE
|
|
90
|
+
|
|
91
|
+
url = f'{BASE_URL}/dataset/tissueSiteDetail'
|
|
92
|
+
data = _fetch_paginated(url, {'datasetId': DATASET_ID})
|
|
93
|
+
|
|
94
|
+
mapping = {}
|
|
95
|
+
for t in data:
|
|
96
|
+
id_ = t.get('tissueSiteDetailId')
|
|
97
|
+
name = t.get('tissueSiteDetail')
|
|
98
|
+
if id_ and name:
|
|
99
|
+
mapping[id_.lower()] = id_
|
|
100
|
+
mapping[name.lower()] = id_
|
|
101
|
+
# Allow "Esophagus - Muscularis" instead of "Esophagus_Muscularis", etc.
|
|
102
|
+
mapping[id_.replace('_', ' ').lower()] = id_
|
|
103
|
+
mapping[name.replace('-', ' ').lower()] = id_
|
|
104
|
+
|
|
105
|
+
TISSUE_CACHE = mapping
|
|
106
|
+
return mapping
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def resolve_tissue(tissue_str):
|
|
110
|
+
mapping = get_tissue_mapping()
|
|
111
|
+
cleaned = tissue_str.strip().lower()
|
|
112
|
+
if cleaned in mapping:
|
|
113
|
+
return mapping[cleaned]
|
|
114
|
+
# Try more fuzzy matching if needed
|
|
115
|
+
cleaned_no_hyphen = cleaned.replace('-', ' ')
|
|
116
|
+
if cleaned_no_hyphen in mapping:
|
|
117
|
+
return mapping[cleaned_no_hyphen]
|
|
118
|
+
sys.stderr.write(f"Error: Unknown tissue '{tissue_str}'.\n")
|
|
119
|
+
sys.exit(1)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def resolve_gencode_id(gene_symbol, output_file):
|
|
123
|
+
"""Maps a standard gene symbol to its Versioned GENCODE ID."""
|
|
124
|
+
url = f'{BASE_URL}/reference/gene'
|
|
125
|
+
data = _fetch_paginated(
|
|
126
|
+
url, {'geneId': gene_symbol, 'gencodeVersion': GENCODE_VERSION}
|
|
127
|
+
)
|
|
128
|
+
if not data:
|
|
129
|
+
sys.stderr.write(f"Error: Could not find GENCODE ID for '{gene_symbol}'.\n")
|
|
130
|
+
sys.exit(1)
|
|
131
|
+
|
|
132
|
+
# Return the first matching exact symbol if possible, else just the first one
|
|
133
|
+
best_match = data[0]
|
|
134
|
+
for d in data:
|
|
135
|
+
if d.get('geneSymbol', '').lower() == gene_symbol.lower():
|
|
136
|
+
best_match = d
|
|
137
|
+
break
|
|
138
|
+
|
|
139
|
+
result = {
|
|
140
|
+
'gene_symbol': best_match.get('geneSymbol'),
|
|
141
|
+
'gencode_id': best_match.get('gencodeId'),
|
|
142
|
+
'chromosome': best_match.get('chromosome'),
|
|
143
|
+
'start': best_match.get('start'),
|
|
144
|
+
'end': best_match.get('end'),
|
|
145
|
+
'gene_type': best_match.get('geneType'),
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
with open(output_file, 'w') as f:
|
|
149
|
+
json.dump(result, f, indent=2)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def get_median_expression(gencode_id, tissues, output_file):
|
|
153
|
+
"""Returns the median expression (TPM) for a gene across tissues."""
|
|
154
|
+
url = f'{BASE_URL}/expression/medianGeneExpression'
|
|
155
|
+
params = {'gencodeId': gencode_id, 'datasetId': DATASET_ID}
|
|
156
|
+
|
|
157
|
+
if tissues:
|
|
158
|
+
tissue_list = [t.strip() for t in tissues.split(',')]
|
|
159
|
+
resolved_tissues = [resolve_tissue(t) for t in tissue_list]
|
|
160
|
+
# The API accepts multiple tissueSiteDetailId parameters.
|
|
161
|
+
# urllib.urlencode with doseq=True handles list correctly.
|
|
162
|
+
params['tissueSiteDetailId'] = resolved_tissues
|
|
163
|
+
|
|
164
|
+
data = _fetch_paginated(url, params)
|
|
165
|
+
|
|
166
|
+
with open(output_file, 'w') as f:
|
|
167
|
+
json.dump(data, f, indent=2)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def get_top_expressed_tissues(gencode_id, n, output_file):
|
|
171
|
+
url = f'{BASE_URL}/expression/medianGeneExpression'
|
|
172
|
+
params = {'gencodeId': gencode_id, 'datasetId': DATASET_ID}
|
|
173
|
+
|
|
174
|
+
data = _fetch_paginated(url, params)
|
|
175
|
+
# Sort by median expression, descending
|
|
176
|
+
sorted_data = sorted(data, key=lambda x: x.get('median', 0), reverse=True)
|
|
177
|
+
|
|
178
|
+
top_n = sorted_data[:n]
|
|
179
|
+
with open(output_file, 'w') as f:
|
|
180
|
+
json.dump(top_n, f, indent=2)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def get_gene_eqtls(gencode_id, tissues, output_file):
|
|
184
|
+
"""Returns all significant eQTLs for a gene across tissues."""
|
|
185
|
+
url = f'{BASE_URL}/association/singleTissueEqtl'
|
|
186
|
+
params = {'gencodeId': gencode_id, 'datasetId': DATASET_ID}
|
|
187
|
+
|
|
188
|
+
if tissues:
|
|
189
|
+
tissue_list = [t.strip() for t in tissues.split(',')]
|
|
190
|
+
resolved_tissues = [resolve_tissue(t) for t in tissue_list]
|
|
191
|
+
params['tissueSiteDetailId'] = resolved_tissues
|
|
192
|
+
|
|
193
|
+
data = _fetch_paginated(url, params)
|
|
194
|
+
|
|
195
|
+
with open(output_file, 'w') as f:
|
|
196
|
+
json.dump(data, f, indent=2)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def get_eqtls_in_region(chromosome, start, end, tissue, output_file):
|
|
200
|
+
"""Returns all significant eQTLs for a region in a tissue."""
|
|
201
|
+
url = f'{BASE_URL}/association/singleTissueEqtlByLocation'
|
|
202
|
+
resolved_tissue = resolve_tissue(tissue)
|
|
203
|
+
|
|
204
|
+
params = {
|
|
205
|
+
'chromosome': chromosome,
|
|
206
|
+
'start': start,
|
|
207
|
+
'end': end,
|
|
208
|
+
'tissueSiteDetailId': resolved_tissue,
|
|
209
|
+
'datasetId': DATASET_ID,
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
# This endpoint is NOT paginated per API docs and does not return paging_info.
|
|
213
|
+
data = _fetch(url, params)
|
|
214
|
+
|
|
215
|
+
with open(output_file, 'w') as f:
|
|
216
|
+
json.dump(data, f, indent=2)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def main():
|
|
220
|
+
parser = argparse.ArgumentParser(description='GTEx Portal API V2 CLI')
|
|
221
|
+
subparsers = parser.add_subparsers(dest='command', required=True)
|
|
222
|
+
|
|
223
|
+
p_resolve = subparsers.add_parser(
|
|
224
|
+
'resolve-gencode-id',
|
|
225
|
+
help='Map a standard gene symbol to its Versioned GENCODE ID',
|
|
226
|
+
)
|
|
227
|
+
p_resolve.add_argument('gene_symbol', help='Gene symbol (e.g. TNF)')
|
|
228
|
+
p_resolve.add_argument('--output', default='/tmp/gtex_output.json')
|
|
229
|
+
|
|
230
|
+
p_median = subparsers.add_parser(
|
|
231
|
+
'get-median-expression', help='Get median expression (TPM)'
|
|
232
|
+
)
|
|
233
|
+
p_median.add_argument('gencode_id', help='Versioned GENCODE ID')
|
|
234
|
+
p_median.add_argument('--tissues', help='Comma-separated list of tissue IDs')
|
|
235
|
+
p_median.add_argument('--output', default='/tmp/gtex_output.json')
|
|
236
|
+
|
|
237
|
+
p_top = subparsers.add_parser(
|
|
238
|
+
'get-top-expressed-tissues', help='Get top expressed tissues for a gene'
|
|
239
|
+
)
|
|
240
|
+
p_top.add_argument('gencode_id', help='Versioned GENCODE ID')
|
|
241
|
+
p_top.add_argument(
|
|
242
|
+
'--n', type=int, default=5, help='Number of tissues to return'
|
|
243
|
+
)
|
|
244
|
+
p_top.add_argument('--output', default='/tmp/gtex_output.json')
|
|
245
|
+
|
|
246
|
+
p_eqtls = subparsers.add_parser(
|
|
247
|
+
'get-gene-eqtls', help='Get all significant eQTLs for a gene'
|
|
248
|
+
)
|
|
249
|
+
p_eqtls.add_argument('gencode_id', help='Versioned GENCODE ID')
|
|
250
|
+
p_eqtls.add_argument('--tissues', help='Comma-separated list of tissue IDs')
|
|
251
|
+
p_eqtls.add_argument('--output', default='/tmp/gtex_output.json')
|
|
252
|
+
|
|
253
|
+
p_region = subparsers.add_parser(
|
|
254
|
+
'get-eqtls-in-region', help='Get significant eQTLs in a region'
|
|
255
|
+
)
|
|
256
|
+
p_region.add_argument('chromosome', help='Chromosome (e.g. chr17)')
|
|
257
|
+
p_region.add_argument('start', type=int, help='Start position')
|
|
258
|
+
p_region.add_argument('end', type=int, help='End position')
|
|
259
|
+
p_region.add_argument('tissue_id', help='Target tissue ID')
|
|
260
|
+
p_region.add_argument('--output', default='/tmp/gtex_output.json')
|
|
261
|
+
|
|
262
|
+
args = parser.parse_args()
|
|
263
|
+
|
|
264
|
+
if args.command == 'resolve-gencode-id':
|
|
265
|
+
resolve_gencode_id(args.gene_symbol, args.output)
|
|
266
|
+
elif args.command == 'get-median-expression':
|
|
267
|
+
get_median_expression(args.gencode_id, args.tissues, args.output)
|
|
268
|
+
elif args.command == 'get-top-expressed-tissues':
|
|
269
|
+
get_top_expressed_tissues(args.gencode_id, args.n, args.output)
|
|
270
|
+
elif args.command == 'get-gene-eqtls':
|
|
271
|
+
get_gene_eqtls(args.gencode_id, args.tissues, args.output)
|
|
272
|
+
elif args.command == 'get-eqtls-in-region':
|
|
273
|
+
get_eqtls_in_region(
|
|
274
|
+
args.chromosome, args.start, args.end, args.tissue_id, args.output
|
|
275
|
+
)
|
|
276
|
+
else:
|
|
277
|
+
parser.print_help()
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
if __name__ == '__main__':
|
|
281
|
+
main()
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: human-protein-atlas-database
|
|
3
|
+
description: >
|
|
4
|
+
Use when you want to retrieve semi-quantitative protein expression and
|
|
5
|
+
spatial localisation data from the Human Protein Atlas (HPA).
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Human Protein Atlas (HPA) Database Integration
|
|
9
|
+
|
|
10
|
+
This skill provides semi-quantitative protein expression and spatial
|
|
11
|
+
localisation data from the Human Protein Atlas (HPA). While RNA-seq (e.g., GTEx)
|
|
12
|
+
tells us if a gene is being transcribed, HPA confirms if the protein product
|
|
13
|
+
actually exists, where it is located within the cell (e.g. nucleus vs
|
|
14
|
+
cytoplasm), and its concentration in systemic blood circulation. The data is
|
|
15
|
+
based on Immunohistochemistry (IHC) across normal human tissues and cancer
|
|
16
|
+
types.
|
|
17
|
+
|
|
18
|
+
## Prerequisites
|
|
19
|
+
|
|
20
|
+
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
|
|
21
|
+
`uv` is installed and on PATH.
|
|
22
|
+
2. **User Notification**: If .licenses/human_protein_atlas_database_LICENSE.txt
|
|
23
|
+
does not already exist in the workspace root directory then (1) prominently
|
|
24
|
+
notify the user to check the terms at
|
|
25
|
+
https://www.proteinatlas.org/about/licence, then (2) create the file
|
|
26
|
+
recording the notification text and timestamp.
|
|
27
|
+
|
|
28
|
+
## When to Use
|
|
29
|
+
|
|
30
|
+
**Use this skill when you need to:**
|
|
31
|
+
|
|
32
|
+
- Map a gene symbol to its Ensembl ID for HPA queries.
|
|
33
|
+
- Retrieve the semi-quantitative protein abundance in normal human tissues and
|
|
34
|
+
cancer types based on IHC staining (High, Medium, Low, or Not Detected).
|
|
35
|
+
- Find the specific organelles or subcellular structures where a protein has
|
|
36
|
+
been localized (e.g., nucleoplasm, mitochondria).
|
|
37
|
+
- Check the consistency/agreement between RNA-seq consensus and protein
|
|
38
|
+
expression levels.
|
|
39
|
+
- Search for genes based on specific protein expression criteria (e.g.,
|
|
40
|
+
"elevated in amygdala" or "secreted proteins").
|
|
41
|
+
|
|
42
|
+
**Do NOT use when you need to:**
|
|
43
|
+
|
|
44
|
+
- Query eQTLs, pQTLs, or any variant-level associations. HPA provides
|
|
45
|
+
wild-type expression data and knows nothing about QTLs.
|
|
46
|
+
- Query gene expression in non-human species. HPA is strictly for human
|
|
47
|
+
proteins.
|
|
48
|
+
- Retrieve purely quantitative RNA expression without interest in the protein
|
|
49
|
+
product (consider using the GTEx skill instead).
|
|
50
|
+
|
|
51
|
+
## Command Selection Guide
|
|
52
|
+
|
|
53
|
+
**Pick the right command on the first try.** Match the user's input to the
|
|
54
|
+
correct subcommand below.
|
|
55
|
+
|
|
56
|
+
- Map a gene symbol to Ensembl ID: `resolve-ensembl-id`
|
|
57
|
+
- Get tissue protein expression levels: `get-tissue-expression`
|
|
58
|
+
- Get subcellular location of a protein: `get-subcellular-location`
|
|
59
|
+
- Get the full HPA metadata entry for a gene: `get-atlas-entry`
|
|
60
|
+
- Search HPA for genes matching specific criteria: `search-hpa`
|
|
61
|
+
|
|
62
|
+
## Quick Start
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Map the ERBB2 gene symbol to its Ensembl ID
|
|
66
|
+
uv run scripts/hpa_cli.py resolve-ensembl-id ERBB2 --output /tmp/erbb2_id.json
|
|
67
|
+
|
|
68
|
+
# Get subcellular location by Ensembl ID
|
|
69
|
+
uv run scripts/hpa_cli.py get-subcellular-location ENSG00000141736 --output /tmp/erbb2_location.json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
All subcommands write JSON to disk. Always save output in the `/tmp/` directory.
|
|
73
|
+
The default output file is `/tmp/hpa_output.json` if `--output` is not
|
|
74
|
+
specified.
|
|
75
|
+
|
|
76
|
+
## Commands
|
|
77
|
+
|
|
78
|
+
### 1. `resolve-ensembl-id` — Gene Symbol → Ensembl ID
|
|
79
|
+
|
|
80
|
+
Maps a common gene symbol (e.g., "TP53", "ERBB2") to its Ensembl gene ID. HPA
|
|
81
|
+
endpoints are strictly Ensembl-based.
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
uv run scripts/hpa_cli.py resolve-ensembl-id TP53 --output /tmp/tp53_id.json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
*Arguments:*
|
|
88
|
+
|
|
89
|
+
- `gene_symbol` (positional): The standard gene symbol (e.g., "TP53").
|
|
90
|
+
- `--output`: Output file path (default: `/tmp/hpa_output.json`).
|
|
91
|
+
|
|
92
|
+
### 2. `get-tissue-expression` — Get Tissue Protein Levels
|
|
93
|
+
|
|
94
|
+
Returns a list of tissues and their corresponding protein expression levels
|
|
95
|
+
(High, Medium, Low, or Not Detected) based on IHC staining.
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
uv run scripts/hpa_cli.py get-tissue-expression ENSG00000130234 \
|
|
99
|
+
--tissues "duodenum,thyroid gland" --output /tmp/tissue_expr.json
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
*Arguments:*
|
|
103
|
+
|
|
104
|
+
- `ensembl_id` (positional): The Ensembl Gene ID.
|
|
105
|
+
- `--tissues`: Comma-separated list of tissues to filter by (optional,
|
|
106
|
+
defaults to all available tissues).
|
|
107
|
+
- `--output`: Output file path (default: `/tmp/hpa_output.json`).
|
|
108
|
+
|
|
109
|
+
### 3. `get-subcellular-location` — Get Subcellular Location
|
|
110
|
+
|
|
111
|
+
Retrieves the specific organelles or cellular structures where the protein has
|
|
112
|
+
been localized.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
uv run scripts/hpa_cli.py get-subcellular-location ENSG00000141736 \
|
|
116
|
+
--output /tmp/subcellular.json
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
*Arguments:*
|
|
120
|
+
|
|
121
|
+
- `ensembl_id` (positional): The Ensembl Gene ID.
|
|
122
|
+
- `--output`: Output file path.
|
|
123
|
+
|
|
124
|
+
### 4. `get-atlas-entry` — Get Full HPA Entry
|
|
125
|
+
|
|
126
|
+
Fetches the full metadata for a gene, including IHC scores, RNA-seq consensus,
|
|
127
|
+
and subcellular location.
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
uv run scripts/hpa_cli.py get-atlas-entry ENSG00000254647 \
|
|
131
|
+
--output /tmp/ins_entry.json
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
*Arguments:*
|
|
135
|
+
|
|
136
|
+
- `ensembl_id` (positional): The Ensembl Gene ID.
|
|
137
|
+
- `--format`: Format of the returned entry, e.g., json (default: `json`).
|
|
138
|
+
- `--output`: Output file path.
|
|
139
|
+
|
|
140
|
+
### 5. `search-hpa` — Search by Attribute
|
|
141
|
+
|
|
142
|
+
Allows filtering for genes based on specific criteria (e.g., "elevated in
|
|
143
|
+
amygdala").
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
uv run scripts/hpa_cli.py search-hpa \
|
|
147
|
+
--query "brain_category_rna:amygdala" \
|
|
148
|
+
--output /tmp/search_results.json
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
*Arguments:*
|
|
152
|
+
|
|
153
|
+
- `--query`: The search query string. Refer to references/search-api.md for
|
|
154
|
+
details.
|
|
155
|
+
- `--output`: Output file path.
|
|
156
|
+
|
|
157
|
+
## Core Rules
|
|
158
|
+
|
|
159
|
+
- **Use the Wrapper**: ALWAYS execute the provided helper scripts to query the
|
|
160
|
+
database rather than accessing the database directly. The scripts
|
|
161
|
+
automatically enforce fair use and implement retry logic.
|
|
162
|
+
- **Notification**: If this skill is used, ensure this is mentioned in the
|
|
163
|
+
output.
|
|
164
|
+
|
|
165
|
+
## API Versioning
|
|
166
|
+
|
|
167
|
+
The HPA website at `www.proteinatlas.org` always serves the **latest** data
|
|
168
|
+
release. Older archived versions can be accessed via `vNN.proteinatlas.org`
|
|
169
|
+
(e.g., `v24.proteinatlas.org`), while the current version's subdomain redirects
|
|
170
|
+
to `www.proteinatlas.org`. This skill's scripts query the latest version by
|
|
171
|
+
default.
|
|
172
|
+
|
|
173
|
+
## Common Errors
|
|
174
|
+
|
|
175
|
+
- If no results are returned, confirm the query is detailed enough starting
|
|
176
|
+
with the api reference in references/search-api.md
|
|
177
|
+
- If you cannot find the results, search the web for example HPA queries and
|
|
178
|
+
use these to construct a better query.
|
|
179
|
+
- The output is usually large. Use jq or write your own python data parsing
|
|
180
|
+
library to process the search results. Never output to stdout, or cat the
|
|
181
|
+
output file.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@ARTICLE{Uhlen2015,
|
|
2
|
+
ABSTRACT = {Sequencing the human genome gave new insights into human biology and disease. However, the ultimate goal is to understand the dynamic expression of each of the approximately 20,000 protein-coding genes and the function of each protein. Uhlén et al. now present a map of protein expression across 32 human tissues. They not only measured expression at an RNA level, but also used antibody profiling to precisely localize the corresponding proteins. An interactive website allows exploration of expression patterns across the human body. Science, this issue 10.1126/science.1260419 Transcriptomics and immunohistochemistry map protein expression across 32 human tissues. Resolving the molecular details of proteome variation in the different tissues and organs of the human body will greatly increase our knowledge of human biology and disease. Here, we present a map of the human tissue proteome based on an integrated omics approach that involves quantitative transcriptomics at the tissue and organ level, combined with tissue microarray–based immunohistochemistry, to achieve spatial localization of proteins down to the single-cell level. Our tissue-based analysis detected more than 90\% of the putative protein-coding genes. We used this approach to explore the human secretome, the membrane proteome, the druggable proteome, the cancer proteome, and the metabolic functions in 32 different tissues and organs. All the data are integrated in an interactive Web-based database that allows exploration of individual proteins, as well as navigation of global expression patterns, in all major tissues and organs in the human body.},
|
|
3
|
+
AUTHOR = {Uhlén, Mathias and Fagerberg, Linn and Hallström, Björn M. and Lindskog, Cecilia and Oksvold, Per and Mardinoglu, Adil and Sivertsson, Åsa and Kampf, Caroline and Sjöstedt, Evelina and Asplund, Anna and Olsson, IngMarie and Edlund, Karolina and Lundberg, Emma and Navani, Sanjay and Szigyarto, Cristina Al-Khalili and Odeberg, Jacob and Djureinovic, Dijana and Takanen, Jenny Ottosson and Hober, Sophia and Alm, Tove and Edqvist, Per-Henrik and Berling, Holger and Tegel, Hanna and Mulder, Jan and Rockberg, Johan and Nilsson, Peter and Schwenk, Jochen M. and Hamsten, Marica and von Feilitzen, Kalle and Forsberg, Mattias and Persson, Lukas and Johansson, Fredric and Zwahlen, Martin and von Heijne, Gunnar and Nielsen, Jens and Pontén, Fredrik},
|
|
4
|
+
URL = {https://www.science.org/doi/abs/10.1126/science.1260419},
|
|
5
|
+
DATE = {2015},
|
|
6
|
+
DOI = {10.1126/science.1260419},
|
|
7
|
+
EPRINT = {https://www.science.org/doi/pdf/10.1126/science.1260419},
|
|
8
|
+
JOURNALTITLE = {Science},
|
|
9
|
+
NUMBER = {6220},
|
|
10
|
+
PAGES = {1260419},
|
|
11
|
+
TITLE = {Tissue-based map of the human proteome},
|
|
12
|
+
VOLUME = {347},
|
|
13
|
+
}
|
|
14
|
+
|