]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamAlignment.h
Added GetSoftClips() method to BamAlignment
[bamtools.git] / src / api / BamAlignment.h
index 9a8e7be0a7351a405317d6c0c281ad01c384a3c0..22535c981a648a0b7f81b7cfc8b19b7b84effbe2 100644 (file)
@@ -2,7 +2,7 @@
 // BamAlignment.h (c) 2009 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 10 October 2011 (DB)
+// Last modified: 12 October 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides the BamAlignment data structure
 // ***************************************************************************
@@ -100,6 +100,12 @@ struct API_EXPORT BamAlignment {
         // returns a description of the last error that occurred
         std::string GetErrorString(void) const;
 
+        // retrieves the size, read locations and reference locations of soft-clip operations
+        bool GetSoftClips(std::vector<int>& clipSizes,
+                          std::vector<int>& readPositions,
+                          std::vector<int>& genomePositions,
+                          bool usePadded = false) const;
+
     // public data fields
     public:
         std::string Name;               // read name