Off topic:blast against genomes in biopython
0
0
Entering edit mode
9.8 years ago
from Bio import Entrez, SeqIO
from Bio.Blast import NCBIXML
from Bio.Blast import NCBIWWW
result_handle = NCBIWWW.qblast("blastn","nr", "CACTTATTTAGTTAGCTTGCAACCCTGGATTTTTGTTTACTGGAGAGGCC",entrez_query='"Beutenbergia cavernae DSM 12333" [Organism]')
blast_records = NCBIXML.parse(result_handle)
    for blast_record in blast_records:
        for alignment in blast_record.alignments:
           for hsp in alignment.hsps:
               print(hsp.query[0:75] + '...')
               print(hsp.match[0:75] + '...')
               print(hsp.sbjct[0:75] + '...')

This does not give me an output, although the sequence is actually a sequence of the genome, so I must get a result. where is the error? the query is correct?

genome blast qblast biopython • 3.3k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 3017 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6