This is a test version of Biostars. For the public version, visit https://www.biostars.org.
eliminate hits in a blastn file

How to remove a row with an e value less than 95% in a blastn file out put file with a python script

python blast

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.

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.

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]))

0 answers

No answers yet.

Log in to answer this question.