Off topic:Extracting fasta file according to Ids
1
0
Entering edit mode
6.7 years ago
KVC_bioinfo ▴ 590

Hello,

I have a huge Fasta file. I would like to extract all the sequences with id such that the ids start from NM?

I tried following two commands which did not work for me.

awk‘BEGIN{RS=”>”}/NM/{print“>”$0}’huge.fasta

grep '^>NM' -B 1 huge.fasta > Nm.fasta

Could someone help me with a better solution. thank you in advance.

#fasta #extractsequence • 2.2k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1568 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