@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.
- 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/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,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
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Human Protein Atlas Search Query API Reference
|
|
2
|
+
|
|
3
|
+
This document provides a comprehensive guide to constructing search queries for
|
|
4
|
+
the **Human Protein Atlas (HPA)**. The search engine allows users to filter the
|
|
5
|
+
HPA database based on protein expression, mRNA levels, subcellular localization,
|
|
6
|
+
and functional classifications.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Core Syntax Overview
|
|
11
|
+
|
|
12
|
+
The HPA search engine follows a standard key-value pair format. All queries are
|
|
13
|
+
**case-insensitive**.
|
|
14
|
+
|
|
15
|
+
**IMPORTANT:** Terms with spaces do **not** need to be enclosed in double
|
|
16
|
+
quotes (e.g. `protein_class:Transcription factors`), and adding quotes may
|
|
17
|
+
actually break the query. When a field has sub-categories, values for them are
|
|
18
|
+
separated by a semi-colon `;`. Multiple selections within a sub-category are
|
|
19
|
+
separated by a comma `,`.
|
|
20
|
+
|
|
21
|
+
* **Field Search**: `field:value`
|
|
22
|
+
* Example: `chromosome:12`
|
|
23
|
+
* **Field with Subfields**: `field:subvalue1;subvalue2`
|
|
24
|
+
* Example: `tissue_category_rna:Brain;Tissue enriched`
|
|
25
|
+
* **Multiple selections**: `field:subval1;sel1,sel2`
|
|
26
|
+
* Example: `tissue_category_rna:Any;Tissue enriched,Group enriched`
|
|
27
|
+
* **Boolean AND**: `term1 AND term2`
|
|
28
|
+
* Example: `protein_class:Enzymes AND chromosome:X`
|
|
29
|
+
* **Boolean OR**: `term1 OR term2`
|
|
30
|
+
* Example: `tissue_category_rna:Any;Tissue enriched OR tissue_category_rna:Any;Tissue enhanced`
|
|
31
|
+
* **Boolean NOT**: `term1 NOT term2`
|
|
32
|
+
* Example: `protein_class:Enzymes NOT chromosome:1`
|
|
33
|
+
* **Grouping**: `( ... )`
|
|
34
|
+
* Example: `(tissue_category_rna:Any;Tissue enriched OR tissue_category_rna:Any;Group enriched) AND chromosome:1`
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 2. Specificity Classifications
|
|
39
|
+
|
|
40
|
+
The HPA categorizes gene expression based on RNA-seq data across tissues
|
|
41
|
+
(General Atlas), brain regions (Brain Atlas) and single cell types (Single Cell
|
|
42
|
+
Atlas). These categories are built out of two dropdowns in the UI: the
|
|
43
|
+
region/tissue to filter on, and the specificity category.
|
|
44
|
+
|
|
45
|
+
### RNA Tissue Specificity (`tissue_category_rna`)
|
|
46
|
+
Filters based on the general tissue distribution across the entire human body.
|
|
47
|
+
Format: `tissue_category_rna:<Tissue Name>;<Specificity Category>`
|
|
48
|
+
|
|
49
|
+
* **Specificity Categories**:
|
|
50
|
+
* **`Tissue enriched`**: Genes with mRNA levels at least 4-fold higher in a
|
|
51
|
+
single tissue compared to all others.
|
|
52
|
+
* **`Group enriched`**: Genes with mRNA levels at least 4-fold higher in a
|
|
53
|
+
group of 2-5 tissues compared to all others.
|
|
54
|
+
* **`Tissue enhanced`**: Genes with mRNA levels at least 4-fold higher in a
|
|
55
|
+
tissue compared to the *average* of all others.
|
|
56
|
+
* **`Low tissue specificity`**: Low tissue specificity; detected in many
|
|
57
|
+
tissues.
|
|
58
|
+
* **`Not detected`**: Not detected in tissues.
|
|
59
|
+
|
|
60
|
+
*Example*: `tissue_category_rna:Liver;Tissue enriched`
|
|
61
|
+
*Example*: `tissue_category_rna:Any;Tissue enriched,Group enriched`
|
|
62
|
+
|
|
63
|
+
### RNA Brain Region Specificity (`brain_category_rna`)
|
|
64
|
+
Filters based on distribution across different brain structures.
|
|
65
|
+
Format: `brain_category_rna:<Brain Region>;<Specificity Category>`
|
|
66
|
+
|
|
67
|
+
* **Specificity Categories**:
|
|
68
|
+
* **`Region enriched`**: Genes with mRNA levels at least 4-fold higher in one
|
|
69
|
+
brain region compared to all others.
|
|
70
|
+
* **`Group enriched`**: mRNA levels at least 4-fold higher in 2-5 brain
|
|
71
|
+
regions.
|
|
72
|
+
* **`Region enhanced`**: mRNA levels at least 4-fold higher in a brain region
|
|
73
|
+
compared to the average of others.
|
|
74
|
+
|
|
75
|
+
*Example*: `brain_category_rna:Amygdala;Region enriched,Group enriched`
|
|
76
|
+
|
|
77
|
+
> **Pro-Tip:** If you are specifically looking for proteins that are *unique* to
|
|
78
|
+
> the brain compared to the rest of the body, combine `tissue_category_rna` and
|
|
79
|
+
> `brain_category_rna` fields.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 3. Commonly Used Query Fields
|
|
84
|
+
|
|
85
|
+
Below is a reference of the most frequently used fields for filtering the
|
|
86
|
+
database.
|
|
87
|
+
|
|
88
|
+
* **`gene_name`**: Search by the official HGNC symbol.
|
|
89
|
+
* Examples: `gene_name:APOE`, `gene_name:TP53`
|
|
90
|
+
* **`chromosome`**: Filter by the genomic location.
|
|
91
|
+
* Examples: `1`, `2`, ..., `X`, `Y`, `MT`
|
|
92
|
+
* **`protein_class`**: Functional classification of the protein.
|
|
93
|
+
* Examples: `Enzymes`, `Transcription factors`, `FDA approved drug targets`
|
|
94
|
+
* **`subcell_location`**: Main localization based on ICC staining.
|
|
95
|
+
* Examples: `Nucleoplasm`, `Mitochondria`, `Cytosol`
|
|
96
|
+
* **`predicted_location`**: Filter for secreted or intracellular logic.
|
|
97
|
+
* Examples: `Predicted secreted proteins`, `Predicted membrane proteins`
|
|
98
|
+
* **`cancer_category_rna`**: Expression in specific cancers.
|
|
99
|
+
* Example: `cancer_category_rna:Breast cancer;Cancer enriched`
|
|
100
|
+
* **`ihc_ab_validation`**: The validation level of the IHC antibody data.
|
|
101
|
+
* Examples: `Supported`, `Approved`, `Enhanced - Independent`
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 4. Constructing Complex Queries
|
|
106
|
+
|
|
107
|
+
### Scenario A: Finding Specific Brain Markers
|
|
108
|
+
To find genes that are **Enriched** in a specific brain region (e.g.,
|
|
109
|
+
Hypothalamus) and localized to the **Vesicles** (for secretory/synaptic paths):
|
|
110
|
+
`brain_category_rna:Hypothalamus;Region enriched AND subcell_location:Vesicles`
|
|
111
|
+
|
|
112
|
+
### Scenario B: Finding Elevated Genes in a Region
|
|
113
|
+
To find genes that show an elevated protein expression level in the amygdala
|
|
114
|
+
compared to other regions of the human brain:
|
|
115
|
+
```
|
|
116
|
+
brain_category_rna:Amygdala;Region enriched,Group enriched,Region enhanced
|
|
117
|
+
AND sort_by:Tissue specific score
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Scenario C: Filtering for Validated Enzymes on Chromosome 1
|
|
121
|
+
To find Enzymes with Approved reliability (high-quality IHC data) located on
|
|
122
|
+
Chromosome 1:
|
|
123
|
+
`protein_class:Enzymes AND chromosome:1 AND ihc_ab_validation:Approved`
|
|
124
|
+
|
|
125
|
+
### Scenario D: Identifying Tissue-Specific Transcription Factors
|
|
126
|
+
To find Transcription factors that are either Tissue Enriched or Group Enriched
|
|
127
|
+
across any tissue:
|
|
128
|
+
```
|
|
129
|
+
protein_class:Transcription factors
|
|
130
|
+
AND tissue_category_rna:Any;Tissue enriched,Group enriched
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
Note on Data Versions: The HPA is updated periodically. The specificity
|
|
136
|
+
categories remain consistent, but the underlying RNA-seq datasets (e.g., HPA vs.
|
|
137
|
+
GTEx) may yield slightly different results if you specify the data source.
|