No such file or directory: 'buccal_swab.unmapped1.fasta'
1
0
Entering edit mode
23 months ago
정윤 • 0
from Bio.Blast import NCBIWWW 
from Bio.Blast import NCBIXML 
from Bio import SeqIO 

record = SeqIO.read("buccal_swab.unmapped1.fasta", format="fasta") 
handle = NCBIWWW.qblast("blastn","nt",record.format("fasta")) 

blast_records = NCBIXML.parse(handle) 
E_VALUE_THRESHOLD = 0.05 
for blast_record in blast_records: 
    for alignment in blast_record.alignments: 
        for hsp in alignment.hsps: 
            if hsp.expect < E_VALUE_THRESHOLD: 
                print(alignment.title) 
                print(alignment.length) 
                print(hsp.expect) 
                print(hsp.query[0:75]) 
                print(hsp.match[0:75]) 
                print(hsp.sbjct[0:75]) 


--> 
FileNotFoundError: [Errno 2] No such file or directory: 'buccal_swab.unmapped1.fasta'

help me please ...

FileNotFoundError • 424 views
ADD COMMENT
5
Entering edit mode
23 months ago
4galaxy77 2.8k

I don’t mean to be rude, but do you know what ‘no such file or directory’ means? The program is helpfully telling you what the problem is.

ADD COMMENT

Login before adding your answer.

Traffic: 2427 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