Created
June 3, 2012 15:57
-
-
Save fac2003/2863978 to your computer and use it in GitHub Desktop.
Parsing a Goby reads file
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
| final String inputFilename = "input.compact-reads"; | |
| final MutableString sequence = new MutableString(); | |
| final ReadsReader reader = new ReadsReader(new FileInputStream(inputFilename)); | |
| for (final Reads.ReadEntry readEntry : reader) { | |
| ReadsReader.decodeSequence(readEntry, sequence); | |
| System.out.printf("read-index: %d read-id: %s sequence: %s %n", | |
| readEntry.getReadIndex(), | |
| readEntry.hasReadIdentifier() ? readEntry.getReadIdentifier() : "", | |
| sequence); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demonstrate how to parse/iterate through a Goby .compact reads file.