get_chromosome_number
- pylluminator.utils.get_chromosome_number(chromosome_id: str | list[str] | Series, convert_string=False) list[int] | int | None
From a string representing the chromosome ID, get the chromosome number. E.g. ‘chr22’ -> 22. If the input is not a numbered chromosome, return np.nan. The string part has to be only ‘chr’, not case-sensitive
- Parameters:
- Returns:
the chromosome(s) number(s) as an integer, or None if not applicable
- Return type: