We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc70ad commit c5ed5c4Copy full SHA for c5ed5c4
src/anyvlm/utils/types.py
@@ -58,12 +58,7 @@ def _normalize_chromosome_name(chromosome_name: str) -> str:
58
:param chromosome_name: The name of the chromosome to normalize, following the rules stated above.
59
:return: The chromosome name, stripped of it's 'chr' prefix if it was added
60
"""
61
- # strip the 'chr' prefix if it was included
62
- chromosome_name = (
63
- chromosome_name[3:]
64
- if chromosome_name.lower().startswith("chr")
65
- else chromosome_name
66
- ).upper()
+ chromosome_name = chromosome_name.upper().removeprefix("CHR")
67
68
if is_valid_chromosome_name(chromosome_name):
69
return chromosome_name
0 commit comments