Entering edit mode
8.7 years ago
Daniel James
▴
10
How to remove a row with an e value less than 95% in a blastn file out put file with a python script
How to remove a row with an e value less than 95% in a blastn file out put file with a python script
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Daniel James, Having seen your previous post, I assume it is hits with an e value of greater than 0.1 that you wish to remove.
Yes e value must be greater than 0.1
what have you tried ?
if(l.split("\t")[2]>=95 & l.split("\t")[10]<=0.1): lin=' '.join((l.split("\t")[0],l.split("\t")[1],l.split("\t")[2],l.split("\t")[3],l.split("\t")[10]))
Use BioPython. Bio.Seq is much better than manual parsing.
if(l.split("\t")[2]>=95 & l.split("\t")[10]<=0.1): lin=' '.join((l.split("\t")[0],l.split("\t")[1],l.split("\t")[2],l.split("\t")[3],l.split("\t")[10]))