Entering edit mode
3.9 years ago
er.doug.ragnar
▴
30
Hi, I'm trying to filter my blast results but I keep getting an error.
awk: 1: unexpected character '.'
I thought it wwas the files name so I changed the points to underscores:
L_brevis_NG-45673_blastVF1_2.txt
But I keep getting the same error. This is the command I'm running:
for file in *.txt; do echo $file; awk '{alg = $4/($8-$7)}{size = ($10-$9)/($8-$7)}(size>=0.75 && size<=1.5 && alg>0.6){print $1, $2, $3}' | awk '{id = $1; getline} ($1!=id){print $0}'$file >> $file.filtered; done
Thank you very much for your help, it worked fine after fixing it.