bioawk for identifiers that don't match pattern
1
2
Entering edit mode
9.5 years ago
jyu429 ▴ 120

Hi, I tried using bioawk as follows

bioawk -c fastx '$name !/P/ { print ">"$name; print $seq }' < mat.fasta
bioawk -c fastx '$name ! /P/ { print ">"$name; print $seq }' < mat.fasta

but it says

bioawk: syntax error at source line 1
 context is
    $name >>>  !/ <<<
bioawk: bailing out at source line 1

Could someone tell me what silly error I'm doing? Thanks

bioawk • 2.4k views
ADD COMMENT
0
Entering edit mode

Thanks! Worked perfectly!

ADD REPLY
2
Entering edit mode
9.5 years ago

(not tested) try

!($name ~ /P/ )
ADD COMMENT

Login before adding your answer.

Traffic: 2626 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6