mcpField
A
alterlab-gget

alterlab-gget

github.com/alterlab-ieuData & databases7869 installsUpdated 5w ago
Repository

About alterlab-gget

alterlab-gget is a command-line bioinformatics tool and Python package for researchers who need unified access to genomic databases and analysis methods. Its modules cover gene information, sequences, protein structures, expression, and disease associations.

Key features

  1. 01Unified access to 20+ genomic databases
  2. 02Query gene and transcript information
  3. 03Retrieve sequences and run alignments
  4. 04Access protein structures and expression data
  5. 05Analyze pathway enrichment and disease associations

Use cases

  1. 01Look up gene information from CLI or Python
  2. 02Retrieve sequences and perform sequence alignment
  3. 03Explore protein structures and tissue expression
  4. 04Analyze disease associations or pathway enrichment

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/alterlab-ieu/alterlab-academic-skills --skill alterlab-gget

After installing, type/alterlab-ggetin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

evals/
evals.json
references/
database_info.md
module_examples.md
module_reference.md
workflows.md
scripts/
batch_sequence_analysis.py
enrichment_pipeline.py
gene_analysis.py

Details

From the project README

gget

Overview

gget is a command-line bioinformatics tool and Python package providing unified access to 20+ genomic databases and analysis methods. Query gene information, sequence analysis, protein structures, expression data, and disease associations through a consistent interface. All gget modules work both as command-line tools and as Python functions.

Project home: development moved to the scverse organisation (github.com/scverse/gget); the manual stays at pachterlab.github.io/gget.

Important: The databases queried by gget are continuously updated, which sometimes changes their structure. gget modules are tested automatically on a biweekly basis and updated to match new database structures when necessary.

Installation

Install gget in a clean virtual environment to avoid conflicts:

# Install (or upgrade) into a clean environment
uv pip install --upgrade gget

# In Python/Jupyter
import gget

Quick Start

Basic usage pattern for all modules:

# Command-line
gget <module> [arguments] [options]

# Python
gget.module(arguments, options)

Most modules return:

  • Command-line: JSON (default) or CSV with -csv flag
  • Python: DataFrame or dictionary

Common flags across modules:

  • -o/--out: Save results to file
  • -q/--quiet: Suppress progress information
  • -csv: Return CSV format (command-line only)

Module Catalog

Pick a module, then see references/module_examples.md for worked CLI + Python examples and references/module_reference.md for the full parameter table.

ModulePurposeQueried source
refReference genome download links/metadataEnsembl
searchFind genes by name/descriptionEnsembl
infoGene/transcript metadata (~1000 IDs max)Ensembl, UniProt, NCBI
seqNucleotide/amino-acid sequences (FASTA)Ensembl
blastBLAST against standard databasesNCBI BLAST
blatGenomic position of a sequenceUCSC BLAT
muscleMultiple sequence alignmentMuscle5 (local)
diamondFast local protein/translated alignmentDIAMOND (local)
pdbExperimental protein structures + metadataRCSB PDB
alphafoldPredict 3D protein structure (setup req.)AlphaFold2 (local)
elmEukaryotic linear motifs (setup req.)ELM
archs4Correlated genes / tissue expressionARCHS4
cellxgeneSingle-cell RNA-seq (setup req.)CZ CELLxGENE Census
enrichrOntology/pathway enrichmentEnrichr
bgeeOrthologs and expressionBgee
opentargetsDisease/drug associationsOpenTargets
cbioCancer genomics heatmapscBioPortal
cosmicSomatic cancer mutations (license/account)COSMIC
mutateGenerate mutated sequenceslocal
virusDownload filtered virus genome datasetsNCBI Virus
g2pResidue-level structural/functional annotationsGenomics 2 Proteins portal
gene_expressionMean/variance of normalized expression per partition8cubeDB
psi_blockψ_block block-level specificity scores8cubeDB
specificityGene-level ψ / ζ specificity statistics8cubeDB
gptNatural-language text generation (setup req.)OpenAI API
setupInstall third-party deps for a modulelocal

cbio is exposed in Python as gget.cbio_search() and gget.cbio_plot().

Setup-required modules (gget setup <module> before first use): alphafold (~4GB params, needs uv pip install openmm first), cellxgene, elm, gpt, and cbio.

When to Use This Skill

  • Quick interactive lookup (gene info, BLAST, one structure, one enrichment) → use gget directly; see references/module_examples.md.
  • Batch processing / advanced BLAST → use the biopython skill.
  • Multi-database Python workflows → use the bioservices skill.
Does NOT Trigger
ScenarioUse Instead
Local BLAST+ database builds and large CLI searchesalterlab-blast
Scripted Entrez/SeqIO pipelines and file parsingalterlab-biopython
One workflow spanning many web services in Pythonalterlab-bioservices
Serious CELLxGENE Census querying beyond a one-lineralterlab-cellxgene
Running AlphaFold properly (complexes, confidence analysis)alterlab-alphafold
  • Chaining several gget modules into a pipeline → see references/workflows.md and the ready-made scripts/ (gene_analysis, batch_sequence_analysis, enrichment_pipeline).

Best Practices (essentials)

  • Use --limit to bound large queries; save with -o/--out for reproducibility.
  • Gene symbols are case-sensitive in cellxgene ('PAX7' vs 'Pax7').
  • Run gget setup before first use of alphafold, cellxgene, elm, gpt.
  • Process max ~1000 Ensembl IDs at once with gget info.
  • Database structures change; keep gget updated: uv pip install --upgrade gget.
  • Use virtual environments to avoid dependency conflicts.

Output Formats

  • Command-line: JSON default; -csv for CSV; FASTA (seq, mutate); PDB (pdb, alphafold); PNG (cbio plot).
  • Python: DataFrame/dict default; json=True for JSON; save=True or out="filename" to write; AnnData for cellxgene.

References

  • references/module_examples.md — worked CLI + Python examples for every module
  • references/module_reference.md — full parameter tables for all modules
  • references/database_info.md — queried databases and their update frequencies
  • references/workflows.md — extended multi-module workflow examples

For additional help:

Part of the AlterLab Academic Skills suite.

Comments

Markdown supported