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
• 1,689 views
•
link
updated
by
Ram
•
written
by
Daniel James •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
I need help with a blast command, please help
written by neto.pvp •I have this command: blastn -db /home/BLAST_nt/nt -query otu_greedy_0.97_82.fasta -outfmt 5 -out otu_greedy_0.97_82_blastn.xml -evalue 0.001 And i have to include the following conditions: >percent identity …
-
How read a CSV file skipping the first column using python
written by mandimunari •I'm checking the presence of genes in at least 95% of the analyzed bacteria, and to do this is necessary read a CSV file using …
-
How to loop through a file to get a value for the coverage in each line of the samtools pileup file…
written by M.O.L.S •Hi, I have a question. I am writing a program in Python. I am using an pileup file generated from samtools. I have loaded the …
-
Error passing generated fasta to blastn in biopython
written by DanielI'm running a script which finds regions of interest, outputs them to a fasta, then passes them to blastn. Both steps work independently, but the …
-
eliminating fields in a blastn file
written by Daniel James •Get a blastn file with the output: Query id, Subject id, % identity, alignment length, e-value the following hits must be eliminated (1) hits to …
-
eliminating fields in a blastn file
written by Daniel James •Get a blastn file with the output: Query id, Subject id, % identity, alignment length, e-value the following hits must be eliminated (1) hits to …
-
batch blast programme
written by Eva_MariaHi every one I want to do a batch standalone blastn with this command blastall -p blastp -d database.fasta -i aa.fasta -m 8 -e 1e-5 …
-
E-values calculation (MEME)
written by anahochmanova •I'm trying to understand how MEME's E-values are calculated but can't find how could I reproduce a simple case with a few sequences, a PSPM …
-
Extract several sequences from genome in FASTA format with genomic coordinates.
written by Ander •Hi pals, I got some problems here. I have an excel file with several genomic coordinates in the format "strand:start:end", and I also have access …
-
Finding Pdb Codes Of Sequences Homologous To An Input Sequences
written by amenabanu •<p>I need to write a script that can do a blastp with an input xml file, then find and display the PDB codes of sequences …
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.
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
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]))