Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jan 2, 2024
1 parent ac910ee commit 7f102a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
4 changes: 1 addition & 3 deletions src/gene/etl/ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,7 @@ def _get_vrs_chr_location(self, row: List[str], params: Dict) -> List:
if chromosome == "MT":
params["location_annotations"].append(Chromosome.MITOCHONDRIA.value)
else:
params["location_annotations"].append(
Chromosome(chromosome.strip())
)
params["location_annotations"].append(chromosome.strip())
elif locations:
self._add_chromosome_location(locations, location_list, params)
if not params["location_annotations"]:
Expand Down
24 changes: 0 additions & 24 deletions src/gene/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,30 +47,6 @@ class Annotation(str, Enum):
class Chromosome(str, Enum):
"""Define string constraints for chromosomes."""

CHR1 = "1"
CHR2 = "2"
CHR3 = "3"
CHR4 = "4"
CHR5 = "5"
CHR6 = "6"
CHR7 = "7"
CHR8 = "8"
CHR9 = "9"
CHR10 = "10"
CHR11 = "11"
CHR12 = "12"
CHR13 = "13"
CHR14 = "14"
CHR15 = "15"
CHR16 = "16"
CHR17 = "17"
CHR18 = "18"
CHR19 = "19"
CHR20 = "20"
CHR21 = "21"
CHR22 = "22"
CHRX = "X"
CHRY = "Y"
MITOCHONDRIA = "MT"


Expand Down

0 comments on commit 7f102a5

Please sign in to comment.