bio-local-blast
БесплатноЗапускает вложенные скриптыНе проверенBuild local BLAST databases and run searches using NCBI BLAST+ command-line tools. Use when running >50 queries, building custom databases with -parse_seqids…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
Version Compatibility
Reference examples tested with: NCBI BLAST+ 2.15+
Before using code patterns, verify installed versions match. If versions differ:
- CLI:
blastn -versionthenblastn -helpto confirm flags - CLI:
makeblastdb -helpto confirm database build options
If a flag is unrecognized or behavior changes, introspect with -help and adapt the
example to match the installed version rather than retrying.
Local BLAST
"Run BLAST locally for speed and control" -> Build or download a BLAST+ database, run the appropriate program with carefully chosen -task, masking, and thread settings, parse tabular output. Local BLAST is the right tool when remote is rate-limited or when the database must be reproducible (frozen).
The biggest mistakes are (a) using nt/nr without realizing they're >250 GB and grow weekly, (b) not building with -parse_seqids and then being unable to extract hit sequences with blastdbcmd, (c) using default blastn for cross-species when dc-megablast is correct, and (d) thinking -num_threads 32 will scale -- past ~16 threads BLAST is I/O bound.
- CLI:
makeblastdb,blastn/blastp,blastdbcmd,update_blastdb.pl(NCBI BLAST+) - Python:
subprocesswrapper (preferred);Bio.Blast.Applicationswas deprecated and removed -- do not use
Installation
# conda (preferred)
conda install -c bioconda blast
# macOS
brew install blast
# Ubuntu
sudo apt install ncbi-blast+
# Verify
blastn -version # NCBI BLAST+ 2.15+ expected
update_blastdb.pl --showall pretty | head
Database format: v5 vs v4
NCBI introduced BLAST database v5 in BLAST+ 2.10 (2020). v5 includes taxonomy indexing directly in the database files, enabling -taxids and -taxidlist filtering without a companion file. v4 databases require taxonomy4blast.sqlite3 to be present and discoverable.
| Feature | v4 | v5 |
|---|---|---|
| Default for prebuilt NCBI dbs | No (legacy) | Yes (since 2020) |
-taxids, -taxidlist support |
No | Yes |
blastdbcmd -taxids |
No | Yes |
New -info output fields |
No | Yes |
update_blastdb.pl downloads v5 by default. When building a database manually with makeblastdb, v5 format requires -blastdb_version 5. Always pass -blastdb_version 5 and -parse_seqids when building from scratch.
makeblastdb flag taxonomy
| Flag | Effect | When |
|---|---|---|
-dbtype nucl or -dbtype prot |
Required | Always |
-parse_seqids |
Indexes accessions so blastdbcmd -entry <acc> works |
Almost always (downstream extraction) |
-hash_index |
Speeds up extraction by accession | Large dbs |
-blastdb_version 5 |
Use v5 format | Always |
-taxid 9606 |
Single taxid for all seqs | Single-species DB |
-taxid_map file.tsv |
Per-sequence taxid mapping (seqid |
Multi-species DB |
-mask_data masking.asnb |
Apply precomputed soft-masking | Production pipelines |
-title "..." |
Free-text label | Cosmetic |
-out path/prefix |
DB file path prefix | Always |
makeblastdb -in reference.fasta -dbtype nucl \
-blastdb_version 5 \
-parse_seqids \
-hash_index \
-title "Custom reference 2026-05" \
-out custom_db
-task taxonomy (the most-misused BLAST setting)
For blastn, the -task flag picks among heuristics with different word sizes and gap parameters.
-task |
Word | Gapped | Use case | Mistake to avoid |
|---|---|---|---|---|
megablast (default) |
28 | linear | >=95% identity, intra-species, primer hits, contamination check | Used for cross-species and misses everything |
dc-megablast |
11 (discontiguous) | yes | Cross-species mRNA homology | Underused -- this is what blastn "should" be for cross-species |
blastn |
11 | yes | General sensitive DNA | Slower than dc-megablast for same job |
blastn-short |
7 | yes | Queries <50 nt (primers, small RNAs) | Default megablast can't seed at length 7 |
rmblastn |
11 | yes | Repeat masking; bundled with RepeatModeler | Specialized |
For blastp:
-task |
Word | Use case |
|---|---|---|
blastp (default) |
3 | General protein similarity |
blastp-fast |
6 | Faster, less sensitive |
blastp-short |
2 | Peptides <30 aa, with PAM30 + word_size=2 typical |
Soft vs hard masking
| Setting | Effect on seed | Effect on extension | Effect on score |
|---|---|---|---|
-soft_masking true (default for several tasks) |
Skip masked positions when seeding | Allow extension through masked | Score includes masked positions |
-soft_masking false + -dust yes / -seg yes |
Skip masked positions when seeding | Skip masked positions in extension | Score excludes masked positions |
| Hard-mask in input FASTA (N or X) | Hard exclusion everywhere | Hard exclusion | Treated as mismatches |
Soft masking is correct for almost all cases. Hard masking creates artificial mismatches at masked boundaries and can split true alignments. The exception: sear
Установить bio-local-blast в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bio-local-blast?
Build local BLAST databases and run searches using NCBI BLAST+ command-line tools. Use when running >50 queries, building custom databases with -parse_seqids and -taxid, downloading prebuilt NCBI databases via update_blastdb.pl, choosing -task variants (megablast/dc-megablast/blastn/blastn-short), tuning soft/hard masking, scaling threads, or extracting hits with blastdbcmd. Encodes BLAST v5 vs v4 database format, taxonomy filtering, makeblastdb pitfalls.
Как установить скилл bio-local-blast?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bio-local-blast запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic