Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install red hawk 
Shell :: Git Auto Completion Enable for M1 
Shell :: cm4 usb not working 
Shell :: git 2 
Shell :: output text after specific character powershell 
Shell :: using both ca cert and certificate between server and client 
Shell :: how to install newrelic agent on aws linux 
Shell :: compile 32 bit on 64 bit linux 
Shell :: install kubernetes plg 
Shell :: extract text awk 
Shell :: shared folder in vmware workstation 15 rhel 8 
Shell :: istio setup ssl 
Shell :: awk get last argument 
Shell :: android studio comment linux 
Shell :: how to clear mouse marks in kubuntu 
Shell :: execute a scheme program 
Shell :: bash sum floating point numbers 
Shell :: lancer un serveur express 
Shell :: readme generator homework 
Shell :: wsl2 emacs dracula 
Shell :: fslstats center-of-gravity 
Shell :: how to upgrade sharepointpnppowershellonline 
Shell :: mining from cli 
Shell :: enable ssh 
Shell :: most active users on github in jordan 
Shell :: how to delete a directory for a different user in linux 
Shell :: git clone a branch submodules 
Shell :: install any desc ubunto 
Shell :: useful utilities for centos 7 
Shell :: ansible only disable service if installed 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =