Last active
December 10, 2015 22:08
-
-
Save nathanhaigh/4499548 to your computer and use it in GitHub Desktop.
Converts FASTQ to FASTA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: fastq2fasta.sh < in.fastq > out.fasta | |
# Taken from http://stackoverflow.com/a/10359425/1413849 and happens to | |
# be able to convert 10 millions reads in 14 seconds!! | |
# The fastest converter I've seen! | |
sed -n '1~4s/^@/>/p;2~4p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment