-
Notifications
You must be signed in to change notification settings - Fork 2
/
BamWriter.h
49 lines (40 loc) · 1.59 KB
/
BamWriter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ***************************************************************************
// BamWriter.h (c) 2009 Michael Str�mberg, Derek Barnett
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
// Last modified: 18 September 2010 (DB)
// ---------------------------------------------------------------------------
// Uses BGZF routines were adapted from the bgzf.c code developed at the Broad
// Institute.
// ---------------------------------------------------------------------------
// Provides the basic functionality for producing BAM files
// ***************************************************************************
#ifndef BAMWRITER_H
#define BAMWRITER_H
#include <string>
#include "BamAlignment.h"
namespace BamTools {
class BamWriter {
// constructor/destructor
public:
BamWriter(void);
~BamWriter(void);
// public interface
public:
// closes the alignment archive
void Close(void);
// opens the alignment archive
bool Open(const std::string& filename,
const std::string& samHeader,
const BamTools::RefVector& referenceSequences,
bool writeUncompressed = false);
// saves the alignment to the alignment archive
void SaveAlignment(const BamTools::BamAlignment& al);
// private implementation
private:
struct BamWriterPrivate;
BamWriterPrivate* d;
};
} // namespace BamTools
#endif // BAMWRITER_H