// Marth Lab, Department of Biology, Boston College\r
// All rights reserved.\r
// ---------------------------------------------------------------------------\r
-// Last modified: 19 November 2010 (DB)\r
+// Last modified: 11 January 2011 (DB)\r
// ---------------------------------------------------------------------------\r
// Provides the basic functionality for producing BAM files\r
// ***************************************************************************\r
\r
#include <api/api_global.h>\r
#include <api/BamAlignment.h>\r
+#include <api/SamHeader.h>\r
#include <string>\r
\r
namespace BamTools {\r
public:\r
// closes the alignment archive\r
void Close(void);\r
- // opens the alignment archive\r
+ // opens the alignment archive (using std::string SAM header)\r
bool Open(const std::string& filename, \r
const std::string& samHeader, \r
const BamTools::RefVector& referenceSequences, \r
bool writeUncompressed = false);\r
+ // opens the alignment archive (using SamHeader object)\r
+ bool Open(const std::string& filename,\r
+ const SamHeader& samHeader,\r
+ const BamTools::RefVector& referenceSequences,\r
+ bool writeUncompressed = false);\r
// saves the alignment to the alignment archive\r
void SaveAlignment(const BamTools::BamAlignment& al);\r
\r