Skip to content

Commit

Permalink
feat(analysisType): Refactor 2 (#3977)
Browse files Browse the repository at this point in the history
### Change

- Refactor AnalysisType to use SeqLibraryPrepCategory to keep it DRY
  • Loading branch information
henrikstranneheim authored Nov 28, 2024
1 parent c1213cd commit 077cf68
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cg/constants/tb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from enum import StrEnum

from cg.constants.sequencing import SeqLibraryPrepCategory


class AnalysisStatus:
CANCELLED: str = "cancelled"
Expand All @@ -13,8 +15,8 @@ class AnalysisStatus:


class AnalysisTypes(StrEnum):
WGS: str = "wgs"
WES: str = "wes"
TGS: str = "tgs"
WTS: str = "wts"
OTHER: str = "other"
TGS: str = SeqLibraryPrepCategory.TARGETED_GENOME_SEQUENCING
WES: str = SeqLibraryPrepCategory.WHOLE_EXOME_SEQUENCING
WGS: str = SeqLibraryPrepCategory.WHOLE_GENOME_SEQUENCING
WTS: str = SeqLibraryPrepCategory.WHOLE_TRANSCRIPTOME_SEQUENCING

0 comments on commit 077cf68

Please sign in to comment.