Off topic:Extracting sequence less than N length from FASTA file
0
0
Entering edit mode
4.7 years ago

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.8k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1691 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