Generates a reference region from assembly data.
Generates a reference region from assembly data. Returns None if the assembly does not have an ID or a start position.
Assembly fragment from which to generate data.
Region corresponding to inclusive region of contig fragment.
Generates a region from a given position -- the region will have a length of 1.
Generates a region from a given position -- the region will have a length of 1.
The position to convert
A 1-wide region at the same location as pos
Generates a reference region from read data.
Generates a reference region from read data. Returns None if the read is not mapped; else, returns the inclusive region from the start to the end of the read alignment.
Read to create region from.
Region corresponding to inclusive region of read alignment, if read is mapped.