tywei08/bioskills-plugin/blast-searches
Claude Code and agent skill by tywei08/bioskills-plugin
- community
Checking that the SKILL.md file is still in the repository.
Run remote BLAST searches against NCBI databases using Biopython Bio.Blast. Use when identifying unknown sequences, finding homologs, or searching for sequence similarity against NCBI's nr/nt databases.
Install
npx vskill@latest install tywei08/bioskills-plugin/blast-searchesSKILL.md
The same SKILL.md was published earlier as tywei08/bioskills-plugin/blast-searches.
Version Compatibility
Reference examples tested with: BioPython 1.83+, NCBI BLAST+ 2.15+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
BLAST Searches
"BLAST this sequence against NCBI" → Submit a query sequence to NCBI BLAST servers, retrieve XML results, and parse hits with E-values and identity scores.
- Python:
NCBIWWW.qblast()+NCBIXML.read()(BioPython) - CLI:
blastn -remote -db nt -query seq.fa(BLAST+) - R:
blast()(rBLAST, local only)
Run BLAST searches against NCBI databases using Biopython's Bio.Blast module.
Required Import
BLAST Programs
| Program | Query | Database | Use Case | |
|---|---|---|---|---|
blastn | Nucleotide | Nucleotide | DNA/RNA sequence similarity | |
blastp | Protein | Protein | Protein sequence similarity | |
blastx | Nucleotide | Protein | Find protein hits for DNA query | |
tblastn | Protein | Nucleotide | Find DNA encoding protein-like | |
tblastx | Nucleotide | Nucleotide | Translated vs translated |
Core Function
NCBIWWW.qblast()
Submit a BLAST query to NCBI servers.
Key Parameters:
| Parameter | Description | Example | |
|---|---|---|---|
program | BLAST program | 'blastn', 'blastp' | |
database | Target database | 'nr', 'nt', 'refseq_rna' | |
sequence | Query sequence | String or SeqRecord | |
entrez_query | Limit by Entrez query | 'Homo sapiens[organism]' | |
hitlist_size | Max hits to return | 50 | |
expect | E-value threshold | 0.001 | |
word_size | Word size | 11 for blastn | |
gapcosts | Gap penalties | '5 2' (open, extend) | |
format_type | Output format | 'XML' (default), 'Text' |
Common Databases
Nucleotide:
| Database | Description | |
|---|---|---|
nt | All GenBank + EMBL + DDBJ | |
refseq_rna | RefSeq RNA sequences | |
refseq_genomic | RefSeq genomic sequences |
Protein:
| Database | Description | |
|---|---|---|
nr | Non-redundant protein | |
refseq_protein | RefSeq proteins | |
swissprot | SwissProt (curated) | |
pdb | Protein structures |
Parsing Results
NCBIXML Parser
Alignment/HSP Attributes
Code Patterns
Basic BLASTN
BLASTP with Organism Filter
BLAST from FASTA File
Save Results to File
Extract Top Hits
Goal: Run a BLAST search and return a structured list of top hits with identity, coverage, and E-values.
Approach: Submit query with qblast, parse the XML result, and extract key metrics from each alignment's best HSP.
Reference (BioPython 1.83+):
BLASTX (DNA to Protein)
Multiple Sequences
Filter by Identity/Coverage
Goal: Retain only BLAST hits meeting minimum identity and query coverage thresholds.
Approach: Iterate all alignments and HSPs, compute identity and coverage fractions, and collect those passing both cutoffs.
Reference (BioPython 1.83+):
Common Errors
| Error | Cause | Solution | |
|---|---|---|---|
| Timeout | NCBI servers busy | Retry later, use smaller query | |
| No hits | Wrong database or program | Check program/database match | |
| Empty results | E-value too stringent | Increase expect parameter | |
| URLError | Network issue | Check connection, retry |
Timing Notes
- Remote BLAST can take 30 seconds to several minutes
- Longer queries take longer
- Peak times (US business hours) may be slower
- For many queries, consider local BLAST
Decision Tree
Related Skills
- local-blast - Run BLAST locally for faster, unlimited searches
- entrez-fetch - Fetch full records for BLAST hits
- sequence-io - Read query sequences from files
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdatabase-access/blast-searches/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tywei08/bioskills-plugin/blast-searches)