Question: (Closed) Extracting sequence less than N length from FASTA file
0
gravatar for atitparajuli2018
5 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 • 149 views
ADD COMMENTlink written 5 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.

Cheers!

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

Help
Access

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