Skip to content

Instantly share code, notes, and snippets.

@nathanhaigh
Last active December 10, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanhaigh/4499548 to your computer and use it in GitHub Desktop.
Save nathanhaigh/4499548 to your computer and use it in GitHub Desktop.
Converts FASTQ to FASTA
#!/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