Created
June 15, 2017 07:21
-
-
Save bicycle1885/991d4d355be80a56834fc7753939ccce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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