Loading...
Loading...
NCBI BLAST sequence similarity search using BioPython. Use when a user wants to run BLAST programmatically with blastn/blastp and retrieve results in JSON format.
npx skill4agent add dakesan/cc-dnawork-plugin bio-blastuv pip install biopython typerpython scripts/run_blast_biopython.py --fasta path/to/query.fastapython scripts/run_blast_biopython.py --sequence ATGCGATCG...python scripts/run_blast_biopython.py --fasta query.fasta --organism "Homo sapiens"python scripts/run_blast_biopython.py --program blastp --database swissprot --sequence MTEYKLVVVG...python scripts/run_blast_biopython.py --fasta query.fasta --output blast_results.json{
"query": "No definition line",
"query_length": 99,
"database": "core_nt",
"num_hits": 10,
"hits": [
{
"rank": 1,
"accession": "NM_007294",
"title": "Homo sapiens BRCA1 DNA repair associated (BRCA1), mRNA",
"e_value": 4.35e-43,
"bit_score": 179.82,
"percent_identity": 100.0,
"identities": 99,
"align_length": 99,
"gaps": 0,
"query_start": 1,
"query_end": 99,
"subject_start": 1,
"subject_end": 99
}
]
}--program--database--fasta--sequence--organism--expect--hitlist-size--output| Aspect | BLAST | BLAT |
|---|---|---|
| Purpose | Similarity search | Genome mapping |
| Sensitivity | High | Medium |
| Speed | Medium | Very fast |
| Best for | Homolog search | Position finding |