gget queries Ensembl, BLAST, PDB, single-cell, and many other genomic references in one line from the CLI or Python, including Jupyter.
Overview
gget is an open-source command-line tool and Python package for efficient queries against public genomic reference databases. It is split into separate interoperable modules, each focused on one query type so common tasks can run in a single line of code or shell invocation.
Modules cover reference genomes, gene search and sequences, BLAST and alignment, orthologs, expression resources such as ARCHS4 and cellxgene, cancer and disease databases, enrichment, protein structure from PDB, viral sequence filters, and more. The tool is part of the scverse project and is developed in the Pachter Lab.
You can install via pip, use it in Jupyter Lab or Google Colab, or call it from R through reticulate. Maintainers run automated tests on modules twice weekly because upstream databases change structure; users are advised to upgrade before reporting issues.
It targets researchers and bioinformatics workflows who want scripted access to many APIs without maintaining separate clients for each database.
Key features
- Many single-purpose query modules
- CLI and Python package interfaces
- Ensembl search sequence and reference
- BLAST align and enrichment tools
- Single-cell and expression DB access
- Jupyter and Colab usage support
- R access via reticulate
- Automated module regression tests
Use cases
- Fetching Ensembl IDs and gene sequences
- BLASTing sequences from scripts
- Exploring scRNA-seq matrices via cellxgene
- Enrichment analysis on gene lists
- PDB structure retrieval by ID