alterlab-blast
Runs NCBI BLAST+ 2.17.0 sequence searches from the command line: makeblastdb (with -parse_seqids), blastn/blastp/blastx/tblastn with tabular -outfmt 6/7 for…
Skill by AlterLab-IEU
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alterlab-ieu-alterlab-blast
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, research, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/alterlab-blast
Tools it pre-approves 11
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
ReadWriteEditBash(python:*)Bash(makeblastdb:*)Bash(blastn:*)Bash(blastp:*)Bash(blastx:*)Bash(tblastn:*)Bash(blastdbcmd:*)Bash(diamond:*)
What's inside
- Skill name
alterlab-blast- Description
- Runs NCBI BLAST+ 2.17.0 sequence searches from the command line: makeblastdb (with -parse_seqids), blastn/blastp/blastx/tblastn with tabular -outfmt 6/7 for parsing, correct -task choice (megablast vs blastn vs blastn-short), -taxids/-negative_taxids taxonomic scoping, and -mt_mode multithreading; plus a DIAMOND blastp --ultra-sensitive path for large protein searches. Warns that -max_target_seqs is a heuristic keep-count, not a top-N best-hits filter. Use when the user wants command-line BLAST, makeblastdb, a local BLAST database, blastn/blastp/blastx/tblastn searches, or DIAMOND protein search. For the Bio.Blast web NCBIWWW API prefer alterlab-biopython; for quick one-liner database lookups prefer alterlab-gget. Part of the AlterLab Academic Skills suite.
- License
- MIT
- Compatibility
- Requires NCBI BLAST+ 2.17.0 binaries on PATH (conda: `bioconda::blast`; or Homebrew `blast`); no API key or account needed for local searches. DIAMOND (`bioconda::diamond`) is optional and only used for the large-protein fast path. Parsing/QC helper runs under `uv run python` with the standard library only.
- Allowed tools
- Read, Write, Edit, Bash(python:*), Bash(makeblastdb:*), Bash(blastn:*), Bash(blastp:*), Bash(blastx:*), Bash(tblastn:*), Bash(blastdbcmd:*), Bash(diamond:*)
- Metadata
- version: 1.1.0 · last_updated: 2026-09-23 · skill-author: AlterLab
- Instructions
- 166 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves some shell commands
Files (5)
- SKILL.md
- evals.json · evals/
- blast_cli.md · references/
- diamond.md · references/
- parse_blast_tab.py · scripts/
SKILL.md (first lines)
# BLAST+ — Command-Line Sequence Search Run local NCBI **BLAST+ 2.17.0** searches end-to-end: build a database with `makeblastdb`, search it with `blastn` / `blastp` / `blastx` / `tblastn`, emit machine-parseable tabular output, and scope by taxonomy. For very large protein searches, hand off to **DIAMOND** `blastp --ultra-sensitive` (100x–10,000x the speed of BLAST, per the DIAMOND project). This is the **CLI / local-database** skill; it is deliberately distinct from the Biopython web API and the gget one-liner (see routing table below). > Bulk DB builds and large searches are CPU/IO-heavy and fully offline — good > candidates to run on local compute rather than burning API calls. ## When to Use This Skill Use this skill when the request involves any of: - "BLAST these sequences", "run blastn/blastp/blastx/tblastn", "command-line BLAST" - "build a local BLAST database", "makeblastdb", "index this FASTA for BLAST" - "search my reads against a local nt/nr database", "get tabular BLAST hits I can parse" - "scope the BLAST search to a taxon" (`-taxids` / `-negative_taxids`) - "BLAST is too slow on millions of proteins" → DIAMOND `blastp` - retrieving sequences out of a BLAST DB (`blastdbcmd`, requires `-parse_seqids`) ### Does NOT Trigger Route adjacent requests to the right sibling skill instead of forcing BLAST+: | The request is really about… | Route to | |------------------------------|----------| | The **web** BLAST API (`Bio.Blast.NCBIWWW.qblast`), or scripting BLAST inside a Python pipeline with `Bio.Blast` parsing | `alterlab-biopython` | | A **quick one-liner** BLAST/database lookup (`gget blast`, gene/structure/enrichment lookups) | `alterlab-gget` | | Unified programmatic access to many bio web services (UniProt, KEGG, Ensembl REST, NCBI eUtils) | `alterlab-bioservices` | | Building/searching a **phylogenetic tree** from sequences, not a similarity search | `alterlab-phylogenetics` | | Read alignment to a reference genome (BWA/minimap2 → BAM) and SAM/BAM handling | `alterlab-pysam` | | FASTQ→VCF variant calling pipeline | `alterlab-nf-core-sarek` | | Transcript-level RNA-seq quantification (salmon/kallisto) | `alterlab-rnaseq-quant` | | 16S/ITS amplicon classification (QIIME 2) | `alterlab-qiime2-amplicon` | | Protein **structure** prediction / embeddings (ESM, AlphaFold) | `alterlab-esm` | If the user explicitly says "web BLAST", "NCBIWWW", or "without installing anything", they want `alterlab-biopython`, not this skill. ## Quick Start ```bash # 1. Build a protein DB (‑parse_seqids enables blastdbcmd retrieval + DIAMOND reuse) makeblastdb -in proteins.fasta -dbtype prot -parse_seqids -out mydb -title "my proteins" # 2. Search, tabular output you can parse, std 12 columns blastp -query query.faa -db mydb -outfmt 6 -evalue 1e-5 -out hits.tsv # 3. QC / summarize the tabular output (stdlib only) uv run python scripts/parse_blast_tab.py hits.tsv --best-hit ``` `-outfmt 6` is the canonical machine-readable format; its default columns are the `std` set: `qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore`. Use `-outfmt 7` for the same columns plus comment lines. ## Choosing the Right Program | Query | Subject DB | Program | |-------|-----------|---------| | nucleotide | nucleotide | `blastn` | | protein | protein | `blastp` | | nucleotide (translated) | protein | `blastx` | | protein | nucleotide (translated) | `tblastn` | `-dbtype` for `makeblastdb` is `nucl` for nucleotide subjects, `prot` for protein. ## The Five Things People Get Wrong 1. **`-max_target_seqs` is NOT a "top N best hits" filter.** It is the number of aligned sequences to *keep*, applied during the search as a heuristic cutoff; ties are broken "by order of sequences in the database", not by score. Setting `-max_target_seqs 1` does **not** reliably return the single best hit. To get the best hit, keep a generous value and pick the top row *after* sorting by bitscore (see `scripts/parse_blast_tab.py --best-hit`). Default is 500. 2. **Wrong `-task` for `blastn`.** `megablast` (default) is for highly similar sequences; use `blastn` for cross-species / more divergent hits and `blastn-short` for queries < ~30 nt (primers, sgRNAs). `dc-megablast` is the discontiguous option for inter-species comparison. 3. **Forgetting `-parse_seqids` at DB-build time.** Without it you cannot pull sequences back out with `blastdbcmd -entry`, and DIAMOND cannot reuse the sequence IDs cleanly. You cannot add it later without rebuilding. 4. **Quoting the `-outfmt` custom column list for DIAMOND.** BLAST+ wants the spec quoted (`-outfmt '6 qseqid sseqid pident evalue'`); **DIAMOND wants it unquoted** (`--outfmt 6 qseqid sseqid pident evalue`). Mixing these up is a common silent error. 5. **Multithreading.** Use `-num_threads N`. Since BLAST+ 2.15 the default `-mt_mode 0` means **BLAST picks the split for you** from query and database size, which NCBI recommends leaving alone. Override only deliberately: `-mt_mode 1` = ThreadByQuery (many small queries), `-mt_mode 2` = ThreadByDatabase (few large queries, big DB). Full option reference, taxonomy scoping, and DB-prep details: [`references/blast_cli.md`](references/blast_cli.md). ## Taxonomic Scoping Restrict a search to (or away from) clades by NCBI taxid: ```bash blastn -query q.fna -db nt -taxids 9606 -outfmt 6 -out human_only.tsv blastp -query q.faa -db nr -negative_taxids 2 -outfmt 6 -out no_bacteria.tsv ``` Scoping by taxid requires a taxonomy-aware database (one built/downloaded with its `*.taxid` mapping, e.g. NCBI's pre-formatted `nt` / `nr`). See [`references/blast_cli.md`](references/blast_cli.md#taxonomy). ## DIAMOND — Fast Path for Large Protein Searches When `blastp` / `blastx` against millions of proteins is too slow, DIAMOND is a drop-in for protein-space search: ```bash diamond makedb --in nr.faa -d nr_diamond
From AlterLab-IEU/AlterLab-Academic-Skills, MIT.
More from AlterLab-IEU/AlterLab-Academic-Skills
- 0.545score
alterlab-anndata
AlterLab-IEU
Build, slice, concatenate, read, and write AnnData annotated data matrices (obs, var, X, layers, obsm, uns) — the scverse data STRUCTURE, not an analysis…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-arboreto
AlterLab-IEU
Infer gene regulatory networks (GRNs) from expression matrices using arboreto's scalable GRNBoost2 and GENIE3 tree-ensemble algorithms with Dask-distributed…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-biopython
AlterLab-IEU
Manipulate biological sequences, parse FASTA/GenBank/PDB files, run phylogenetics, and access NCBI/PubMed programmatically via Biopython (Bio.SeqIO…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-bioservices
AlterLab-IEU
Query 40+ bioinformatics web services through one consistent Python API with bioservices (UniProt, KEGG, ChEMBL, Reactome, Ensembl, NCBI and more).
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-boltz
AlterLab-IEU
Co-fold biomolecular complexes with Boltz-2, an open AlphaFold3-style model — predict protein + ligand (SMILES/CCD), protein + nucleic-acid, and multi-chain…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-borzoi
AlterLab-IEU
Predict genome-wide functional genomics tracks from DNA sequence with Borzoi (Linder 2025) — a sequence-to-function model outputting RNA-seq, CAGE, ATAC, and…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-cellxgene
AlterLab-IEU
Query the CZ CELLxGENE Census (200M+ cells) programmatically via cellxgene-census and TileDB-SOMA, slicing expression by tissue, disease, or cell type and…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-chai
AlterLab-IEU
Predict biomolecular complexes with Chai-1, an open AlphaFold3-style model that folds multi-entity assemblies (proteins, ligands, nucleic acids) from a single…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-cobrapy
AlterLab-IEU
Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-deeptools
AlterLab-IEU
Process and visualize deep-sequencing coverage with the deepTools CLI — convert BAM to bigWig (bamCoverage), build log2 ratio tracks (bamCompare), run QC…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-esm
AlterLab-IEU
Run ESM protein language models — ESMC for embeddings and representations, ESMFold2 for structure prediction, and ESM3 for generative multimodal protein…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-alphafold
AlterLab-IEU
Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based…
SkillBFreshness: B★ 78Claude Code +9
Signals
- Stars
- 78
- Forks
- 16
- Open issues
- 1
- Last commit (this folder)
- Sep 23, 2026 (1 month ago)
- Last release
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1.0
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from AlterLab-IEU
- 0.545score
alterlab-arboreto
AlterLab-IEU
Infer gene regulatory networks (GRNs) from expression matrices using arboreto's scalable GRNBoost2 and GENIE3 tree-ensemble algorithms with Dask-distributed…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-bioservices
AlterLab-IEU
Query 40+ bioinformatics web services through one consistent Python API with bioservices (UniProt, KEGG, ChEMBL, Reactome, Ensembl, NCBI and more).
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-alphafold
AlterLab-IEU
Predict protein 3D structures with AlphaFold2 via ColabFold — MMseqs2-accelerated MSAs, monomer and AlphaFold2-Multimer complex folding, and confidence-based…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-anndata
AlterLab-IEU
Build, slice, concatenate, read, and write AnnData annotated data matrices (obs, var, X, layers, obsm, uns) — the scverse data STRUCTURE, not an analysis…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-biopython
AlterLab-IEU
Manipulate biological sequences, parse FASTA/GenBank/PDB files, run phylogenetics, and access NCBI/PubMed programmatically via Biopython (Bio.SeqIO…
SkillBFreshness: B★ 78Claude Code +9 - 0.545score
alterlab-boltz
AlterLab-IEU
Co-fold biomolecular complexes with Boltz-2, an open AlphaFold3-style model — predict protein + ligand (SMILES/CCD), protein + nucleic-acid, and multi-chain…
SkillBFreshness: B★ 78Claude Code +9
Cite this page
alterlab-blast skill. Agent Mart. https://agentmart.dev/skills/alterlab-ieu-alterlab-blast (last updated 2026-10-24)