From a7ada45ca6f4761f5c03fe6a0bf90afd142dd14b Mon Sep 17 00:00:00 2001 From: mikaels Date: Sat, 11 Apr 2009 03:45:55 +0000 Subject: [PATCH] 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 --- BamReaderMain.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; + } } } } -- 2.39.5