Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by www.biostars.org #
 
PREVIOUS NEXT
Tagged: #chop #large #sequences #linux
ADD COMMENT
Topic
Name
8+4 =