actio_python_utils.utils.cast_chromosome_to_int

actio_python_utils.utils.cast_chromosome_to_int(chromosome)[source]

Cast a chromosome string, optionally prefixed with chr, to an integer. X -> 23, Y -> 24, M/MT -> 25. Failures will be returned as None

Parameters:

chromosome (str) – The chromosome to cast

Return type:

int

Returns:

The integer version of the chromosome