]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamConstants.h
Major performance boost to startup & random-access - especially for the
[bamtools.git] / src / api / BamConstants.h
index 6a97980b400298593733a370cb91239de8d2c4a6..6a1695a65be26005a89d49a814c4237e11e13f66 100644 (file)
@@ -1,10 +1,20 @@
+// ***************************************************************************
+// BamConstants.h (c) 2011 Derek Barnett
+// Marth Lab, Department of Biology, Boston College
+// All rights reserved.
+// ---------------------------------------------------------------------------
+// Last modified: 5 April 2011 (DB)
+// ---------------------------------------------------------------------------
+// Provides basic constants for handling BAM files.
+// ***************************************************************************
+
 #ifndef BAM_CONSTANTS_H
 #define BAM_CONSTANTS_H
 
 #include <string>
 
 /*! \namespace BamTools::Constants
-    \brief Contains most of the constants used throughout BamTools.
+    \brief Provides basic constants for handling BAM files.
 */
 
 namespace BamTools {
@@ -43,6 +53,8 @@ const int BAM_CIGAR_SOFTCLIP = 4;
 const int BAM_CIGAR_HARDCLIP = 5;
 const int BAM_CIGAR_PAD      = 6;
 
+// TODO: Add support for 'X' and '=' ops
+
 const char BAM_CIGAR_MATCH_CHAR    = 'M';
 const char BAM_CIGAR_INS_CHAR      = 'I';
 const char BAM_CIGAR_DEL_CHAR      = 'D';
@@ -103,8 +115,8 @@ const int Z_DEFAULT_MEM_LEVEL = 8;
 // BZGF constants
 const int BGZF_BLOCK_HEADER_LENGTH = 18;
 const int BGZF_BLOCK_FOOTER_LENGTH = 8;
-const int BGZF_MAX_BLOCK_SIZE      = 65536;
-const int BGZF_DEFAULT_BLOCK_SIZE  = 65536;
+const int BGZF_MAX_BLOCK_SIZE      = 262144;
+const int BGZF_DEFAULT_BLOCK_SIZE  = 262144;
 
 } // namespace Constants
 } // namespace BamTools