Skip to content

Instantly share code, notes, and snippets.

@kdm9
Created March 31, 2015 02:25
Show Gist options
  • Save kdm9/361142983a5bc66f55ec to your computer and use it in GitHub Desktop.
Save kdm9/361142983a5bc66f55ec to your computer and use it in GitHub Desktop.
#include <seqan/seq_io.h>
int main(int argc, char **argv)
{
std::string id, seq, qual;
if (argc < 2) {
return 1;
}
seqan::SequenceStream seqFileIn;
seqan::open(seqFileIn, argv[1]);
size_t seqs = 0;
while (!seqan::atEnd(seqFileIn)) {
seqan::readRecord(id, seq, qual, seqFileIn);
std::cout << seqs++ << ' ' << id << '\t' << seq << '\t' << qual << '\n';
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment