Skip to content

Instantly share code, notes, and snippets.

@bicycle1885
Created June 15, 2017 07:21
Show Gist options
  • Save bicycle1885/991d4d355be80a56834fc7753939ccce to your computer and use it in GitHub Desktop.
Save bicycle1885/991d4d355be80a56834fc7753939ccce to your computer and use it in GitHub Desktop.
using CodecZlib
using BioSequences
function readfasta(filepath)
open(GzipDecompressionStream, filepath) do stream
reader = FASTA.Reader(stream)
for record in reader
id = FASTA.identifier(record)
seq = FASTA.sequence(record)
@show id, seq
end
end
end
readfasta("data.fa.gz")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment