Skip to content

Instantly share code, notes, and snippets.

@taoliu
Created June 25, 2013 19:15
Show Gist options
  • Save taoliu/5861468 to your computer and use it in GitHub Desktop.
Save taoliu/5861468 to your computer and use it in GitHub Desktop.
Convert sequence.txt to fastq
perl -ne 'if (/^(\S+\/1)\:([ATCGN]+)\:(\S+)$/){print "@",$1,"\n",$2,"\n","+\n",$3,"\n";}' a.txt > a.fastq
@wakimchris
Copy link

is there a way to convert from fastq to txt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment