]> git.donarmstrong.com Git - bamtools.git/commitdiff
Changed GetNextAlignmentCore() calls to GetNextAlignment() in FilterTool
authorderek <derekwbarnett@gmail.com>
Thu, 18 Nov 2010 00:41:29 +0000 (19:41 -0500)
committerderek <derekwbarnett@gmail.com>
Thu, 18 Nov 2010 00:41:29 +0000 (19:41 -0500)
src/toolkit/bamtools_filter.cpp

index 83f67ace059e1cdcb995e1a66d4cdea833963bf5..d2de3b495aac1d588a29fad914b7e7ecdb30d9dc 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College
 // All rights reserved.
 // ---------------------------------------------------------------------------
-// Last modified: 4 October 2010
+// Last modified: 17 November 2010
 // ---------------------------------------------------------------------------
 // Filters BAM file(s) according to some user-specified criteria.
 // ***************************************************************************
@@ -793,7 +793,7 @@ bool FilterTool::FilterToolPrivate::Run(void) {
                 } 
               
                 // everything checks out, just iterate through specified region, filtering alignments
-                while ( reader.GetNextAlignmentCore(al) )
+               while ( reader.GetNextAlignment(al) )
                     if ( CheckAlignment(al) ) 
                         writer.SaveAlignment(al);
             } 
@@ -801,7 +801,7 @@ bool FilterTool::FilterToolPrivate::Run(void) {
             // no index data available, we have to iterate through until we
             // find overlapping alignments
             else {
-                while ( reader.GetNextAlignmentCore(al) ) {
+               while ( reader.GetNextAlignment(al) ) {
                     if ( (al.RefID >= region.LeftRefID)  && ((al.Position + al.Length) >= region.LeftPosition) &&
                          (al.RefID <= region.RightRefID) && ( al.Position <= region.RightPosition) ) 
                     {