Question: (Closed) Extracting sequence less than N length from FASTA file
gravatar for atitparajuli2018
17 months ago by
atitparajuli20180 wrote:

How do I extract sequences less than 800 bp from a fasta file, I used the following command to extract but I was not successful in doing so. I still have some sequences more than 800 bp in length.

command: $ awk 'BEGIN {RS = ">" ; ORS = ""} length ($2) <= 800 {print ">"$0}' input.fasta > output.fasta

sequence • 1.1k views
ADD COMMENTlink written 17 months ago by atitparajuli20180

Hello atitparajuli2018!

Questions similar to yours can already be found at:

We have closed your question to allow us to keep similar content in the same thread.

If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.


ADD REPLYlink written 17 months ago by Pierre Lindenbaum132k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1064 users visited in the last hour