Struct bam::header::Header [−][src]
pub struct Header { /* fields omitted */ }Expand description
BAM/SAM Header.
You can modify it by pushing new lines using push_entry, push_comment and push_line.
You cannot remove lines, but you can create a new header and push there only a subset of lines.
Implementations
Iterator over lines.
Pushes a new header entry.
Returns an error if the same reference appears twice or @SQ line has an incorrect format.
Pushes a new comment.
Writes header in an uncompressed BAM format.
Parse uncompressed BAM header, starting with magic b"BAM\1".
Returns the number of reference sequences in the BAM file.
Returns the name of the reference with ref_id (0-based).
Returns None if there is no such reference
Returns the length of the reference with ref_id (0-based).
Returns None if there is no such reference
Returns reference id from its name, if possible.
Returns reference names.
Returns reference names.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header
Blanket Implementations
Mutably borrows from an owned value. Read more
