Answers for "how to chop large sequences in linux"

0

how to chop large sequences in linux

awk 'BEGIN {n_seq=0;} /^>/ {if(n_seq%1000==0){file=sprintf("myseq%d.fa",n_seq);} print >> file; n_seq++; next;} { print >> file; }' < sequences.fa
Posted by: Guest on August-13-2021
0

how to chop large sequences in linux

awk 'BEGIN {n_seq=0;} /^>/ {if(n_seq%1000==0){file=sprintf("myseq%d.fa",n_seq);} print >> file; n_seq++; next;} { print >> file; }' < sequences.fa
Posted by: Guest on August-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language