Hi, I have a fasta file with many segments and I want to filter out all the segments that have a "P" in the identifier of the segment. Is there a conventional way to do so? Thanks.
Hi, I have a fasta file with many segments and I want to filter out all the segments that have a "P" in the identifier of the segment. Is there a conventional way to do so? Thanks.
just awk
awk '/^>/{N=0} /^>P/{N=1} {if(N)print}' *.fa
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Thank you!