|
Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to hold the header of a sam file. More...
#include <sam_header.h>
Public Member Functions | |
| SamHeader ()=default | |
| initializes a null SamHeader More... | |
| SamHeader (const std::shared_ptr< bam_hdr_t > &header) | |
| creates a SamHeader given htslib object. More... | |
| SamHeader (const SamHeader &other) | |
| makes a deep copy of a SamHeader. Shared pointers maintain state to all other associated objects correctly. More... | |
| SamHeader & | operator= (const SamHeader &other) |
| deep copy assignment of a SamHeader. Shared pointers maintain state to all other associated objects correctly. More... | |
| SamHeader (SamHeader &&other)=default | |
| moves SamHeader accordingly. Shared pointers maintain state to all other associated objects correctly. More... | |
| SamHeader & | operator= (SamHeader &&other)=default |
| move assignment of a SamHeader. Shared pointers maintain state to all other associated objects correctly. More... | |
| uint32_t | n_sequences () const |
| Returns the number of reference sequences in the header. More... | |
| uint32_t | sequence_length (const std::string &sequence_name) const |
| Returns the length of the given reference sequence as stored in the @SQ tag in the BAM header. More... | |
| uint32_t | sequence_length (const uint32_t sequence_index) const |
| Returns the length of the given reference sequence as stored in the @SQ tag in the BAM header. More... | |
| std::string | sequence_name (const uint32_t sequence_index) const |
| Returns the sequence name for the sequence with the given zero-based index. More... | |
| std::vector< ReadGroup > | read_groups () const |
| extracts read group objects from a SAM header More... | |
Friends | |
| class | SamWriter |
| class | SamBuilder |
Utility class to hold the header of a sam file.
|
explicitdefault |
|
explicit |
| gamgee::SamHeader::SamHeader | ( | const SamHeader & | other | ) |
|
default |
moves SamHeader accordingly. Shared pointers maintain state to all other associated objects correctly.
|
inline |
Returns the number of reference sequences in the header.
deep copy assignment of a SamHeader. Shared pointers maintain state to all other associated objects correctly.
creates a deep copy of a SamHeader object
< shared_ptr assignment will take care of deallocating old sam record if necessary
move assignment of a SamHeader. Shared pointers maintain state to all other associated objects correctly.
| vector< ReadGroup > gamgee::SamHeader::read_groups | ( | ) | const |
extracts read group objects from a SAM header
| uint32_t gamgee::SamHeader::sequence_length | ( | const std::string & | sequence_name | ) | const |
Returns the length of the given reference sequence as stored in the @SQ tag in the BAM header.
Returns the length of the given sequence as stored in the @SQ tag in the BAM header, or 0 if the sequence name is not found.
|
inline |
Returns the length of the given reference sequence as stored in the @SQ tag in the BAM header.
|
inline |
Returns the sequence name for the sequence with the given zero-based index.
|
friend |
|
friend |
1.8.8