Skip to content

Instantly share code, notes, and snippets.

@kdm9
Last active August 29, 2015 14:18
Show Gist options
  • Save kdm9/7f8b2178764483fbd294 to your computer and use it in GitHub Desktop.
Save kdm9/7f8b2178764483fbd294 to your computer and use it in GitHub Desktop.
#include "read_parsers.hh"
int main(int argc, char **argv)
{
khmer::read_parsers::Read read;
size_t n_reads = 0;
if (argc < 2) {
return 1;
}
khmer::read_parsers::SeqAnParser seqFileIn(argv[1]);
while (1) {
seqFileIn.imprint_next_read(read);
std::cout << n_reads++ << '\t' << read.name << '\t' << read.sequence
<< '\t' << read.quality << '\n';
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment