Entering edit mode
8.9 years ago
madeltutor
▴
10
def blast():
from Bio.Blast import NCBIXML
from Bio.Blast.Applications import NcbiblastnCommandline
cline = NcbiblastnCommandline(query="sequence.fasta", db="nt", outfmt=6, out="blast.tbl")
outfile = open("blast.tbl", "w")
outfile.write(cline.parse())
outfile.close()
cline.close()
Please read through this post: How to Use Biostars, Part-I: Questions, Answers, Comments and Replies
You will have to rewrite your question to get a relevant response from the community. When people see that the post text is just code, they will skip it.