Yes the file is space delimited, but its still not working... When using this command there is no error, but the new txt file empty, and I'm not sure why
• 0 views
•
link
Hi everyone,
I have some blast files which I want to filter. Because I am only interested in the blast results with an E-value of 0.0.
The results are in a .txt file and the E-value is located in column number 10. How can I filter the unwanted results away with bash?
Thank you in advance!
Ah, is your file space delimited? If so, try this
awk -F ' ' '{if ($10 <= 0.001) print $0}' blast_file.txt > Filtered_blast_file.txt
Yes the file is space delimited, but its still not working... When using this command there is no error, but the new txt file empty, and I'm not sure why
Log in to answer this question.
If selecting for evalues below, let's say 0.001 and assuming your file is tab delimited,
I'm not sure it's working, because it's taking quite a while for just a test run(50 results)
My file looks like this:
And that for all the blast results