From: mikaels Date: Sat, 11 Apr 2009 03:45:55 +0000 (+0000) Subject: Fixed some of the output for tag data. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a7ada45ca6f4761f5c03fe6a0bf90afd142dd14b;p=bamtools.git Fixed some of the output for tag data. git-svn-id: svn+ssh://gene.bc.edu/home/subversion/Derek/BamTools/trunk@13 9efb377e-2e27-44b9-b91a-ec4abb80ed8b --- diff --git a/BamReaderMain.cpp b/BamReaderMain.cpp index c3510e0..5426763 100644 --- a/BamReaderMain.cpp +++ b/BamReaderMain.cpp @@ -149,11 +149,12 @@ int main(int argc, char* argv[]) { cout << "Type: " << (*cigarIter).Type << "\tLength: " << (*cigarIter).Length << endl; } - cout << "Tags: " << endl; - vector::const_iterator tagIter = bAlignment.Tags.begin(); - vector::const_iterator tagEnd = bAlignment.Tags.end(); - for ( ; tagIter != tagEnd; ++tagIter ) { - cout << (*tagIter) << endl; + if(!bAlignment.TagData.empty()) { + cout << "Tag data is present." << endl; + string readGroup; + if(bAlignment.GetReadGroup(readGroup)) { + cout << "- read group: " << readGroup << endl; + } } } }