User:Timothee Flutre/Notebook/Postdoc/2012/05/25

From OpenWetWare

Jump to: navigation, search
Project name Main project page
Previous entry      Next entry

Awk one-liner to convert fasta file into fastq format

awk 'BEGIN{RS=">"} {if(NF==0)next; split($0,a,"\n"); printf "@"a[1]"\n"a[2]"\n+\n"; \
for(i=1;i<=length(a[2]);i++)printf "}"; printf"\n"}' probes.fa > probes.fq


Personal tools