// Marth Lab, Department of Biology, Boston College\r
// All rights reserved.\r
// ---------------------------------------------------------------------------\r
-// Last modified: 22 November 2010 (DB)\r
+// Last modified: 11 January 2011 (DB)\r
// ---------------------------------------------------------------------------\r
// Provides the basic functionality for producing BAM files\r
// ***************************************************************************\r
d->Close();\r
}\r
\r
-// opens the alignment archive\r
+// opens the alignment archive (using std::string SAM header)\r
bool BamWriter::Open(const string& filename,\r
const string& samHeader,\r
const RefVector& referenceSequences,\r
return d->Open(filename, samHeader, referenceSequences, isWriteUncompressed);\r
}\r
\r
+// opens the alignment archive (using SamHeader object)\r
+bool BamWriter::Open(const string& filename,\r
+ const SamHeader& samHeader,\r
+ const RefVector& referenceSequences,\r
+ bool isWriteUncompressed)\r
+{\r
+ return d->Open(filename, samHeader.ToString(), referenceSequences, isWriteUncompressed);\r
+}\r
+\r
// saves the alignment to the alignment archive\r
void BamWriter::SaveAlignment(const BamAlignment& al) {\r
d->SaveAlignment(al);\r