Skip to content

Nash0990/Useful-Scripts-Oneliners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Useful-Scripts-Oneliners

Set of useful Scripts and Oneliners

Convert Large fasta to bits of 100 bp fasta with/out overlaps

Using sh

grep -v '^>' input.fa | tr -d '\n' | fold -w 100 | nl -n rz -s '' | sed "s|^|>|" | sed "s||\n|" > output.fa

Using pyfasta

pyfasta split -n 1 -k 100 -o 0 chr1.fa

-n Number of output files -k length -o Overlap

Genbank to Fasta

|awk '/^ACCESSION / {printf(">%s\n",$2);next;} /^ORIGIN/ {inseq=1;next;} /^/// {inseq=0;} {if(inseq==0) next; gsub(/[0-9 ]/,"",$0); printf("%s\n",$0);}' | head -n 30

About

Set of useful Scripts and Oneliners

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors