yat
0.14.5pre
|
#include <yat/omic/BamFile.h>
Classes | |
class | error |
Error thrown from OutBamFile::write(const BamRead&) at failure. More... | |
Public Member Functions | |
OutBamFile (void) | |
OutBamFile (const std::string &, const BamHeader &header) | |
Create an output bam file. More... | |
OutBamFile (const std::string &, const BamHeader &header, unsigned int compression) | |
Create an output bam file. More... | |
void | open (const std::string &fn, const BamHeader &hdr) |
Open an output bam file. More... | |
void | open (const std::string &fn, const BamHeader &hdr, unsigned int compression) |
Open an output bam file. More... | |
void | write (const BamRead &read) |
write a read to output file More... | |
void | close (void) |
close file | |
bool | is_open (void) const |
Protected Member Functions | |
void | open_base (const std::string &fn, const std::string &mode, const void *aux) |
const std::string & | filename (void) const |
filename of bam file More... | |
Protected Attributes | |
samFile * | sf_ |
This class supports writing to a bam file.
theplu::yat::omic::OutBamFile::OutBamFile | ( | void | ) |
Create an output bam file
theplu::yat::omic::OutBamFile::OutBamFile | ( | const std::string & | , |
const BamHeader & | header | ||
) |
Create an output bam file.
Equivalent to default constructor followed by a call to open(2).
theplu::yat::omic::OutBamFile::OutBamFile | ( | const std::string & | , |
const BamHeader & | header, | ||
unsigned int | compression | ||
) |
Create an output bam file.
Equivalent to default constructor followed by a call to open(3).
|
inlineprotectedinherited |
filename of bam file
The filename is set in open_base().
|
inherited |
true
iff open void theplu::yat::omic::OutBamFile::open | ( | const std::string & | fn, |
const BamHeader & | hdr | ||
) |
Open an output bam file.
Opens an output bam file and writes the header contained in hdr. If fn is "-", stdout
is used.
fn | string specifying the filename |
hdr | header |
void theplu::yat::omic::OutBamFile::open | ( | const std::string & | fn, |
const BamHeader & | hdr, | ||
unsigned int | compression | ||
) |
Open an output bam file.
Opens an output bam file and writes the header contained in hdr. If fn is "-", stdout
is used.
fn | string specifying the filename |
hdr | header |
compression | a number [0,9] indicating level of compression. 9 gives highest compression and 0 indicates no compression (suitable for piping between applications). |
|
protectedinherited |
open a bam file named fn with mode mode
void theplu::yat::omic::OutBamFile::write | ( | const BamRead & | read | ) |
|
protectedinherited |
bam file handler