offset_in_cds

offset_in_cds#

Transcript.offset_in_cds(genome_position)[source]#

Return the offset within the set of CDS exons of genome_position.

Parameters:

genome_position (int) – A coordinate presumed to be on the same chromosome as this transcript.

Return type:

int | None

Returns:

The offset of genome_position from the start of the CDS, accounting for strand, or None, if genome_position does not overlap the CDS.