Create a representation of SAM/BAM/CRAM file from given filename or File
Undocumented in source.
disallow copying
Undocumented in source.
Return an InputRange representing all recods in the SAM/BAM/CRAM
number of reference sequences; from bam_hdr_t
bam["chr1:1-2"]
bam["chr1", 1..2]
bam["chr1", 1]
Integer-based chr below bam[0, 1..2]
bam[0, 1]
bam[0, 1, 2]
support bam["chr1", 1..2 ]
Query a region and return matching alignments as an InputRange Query by chr, start, end
Query by string chr:start-end
Query by contig id, start, end
Query by ["chr1:1-2","chr1:1000-1001"]
reference contig name to integer id Calls int bam_name2id(bam_hdr_t *h, const char *_ref);
length of specific reference sequence (by number)
lengths of the reference sequences
names of the reference sequences
Iterate through all records in the SAM/BAM/CRAM
Iterate over records falling within a queried region (TODO: itr_multi_query)
Iterate over records falling within queried regions using a RegionList
List of regions based on sam/bam
Encapsulates a SAM/BAM file.
Implements InputRange interface using htslib calls. If indexed, Random-access query via multidimensional slicing.