1 #ifndef gamgee__sam_header__guard
2 #define gamgee__sam_header__guard
19 explicit SamHeader(
const std::shared_ptr<bam_hdr_t>& header);
26 uint32_t
sequence_length(
const uint32_t sequence_index)
const {
return m_header->target_len[sequence_index]; }
27 std::string
sequence_name(
const uint32_t sequence_index)
const {
return std::string(m_header->target_name[sequence_index]); }
31 std::string header_text()
const {
return std::string(m_header->text, m_header->l_text); }
32 std::shared_ptr<bam_hdr_t> m_header;
39 #endif // gamgee__sam_header__guard
class to build Sam objects from existing data or from scratch
Definition: sam_builder.h:58
utility class to write out a SAM/BAM/CRAM file to any stream
Definition: sam_writer.h:20
Definition: exceptions.h:9