Skip to content

Commit

Permalink
add germlinecnvcallerflag
Browse files Browse the repository at this point in the history
  • Loading branch information
rannick committed Sep 6, 2024
1 parent f429b92 commit 359f1ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cg/meta/workflow/raredisease.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ def get_target_bed(self, case_id: str, analysis_type: str) -> str:
raise ValueError("No capture kit was found in LIMS")
return target_bed

def get_germlinecnvcaller_flag(self, analysis_type: str)-> bool:
if analysis_type == AnalysisType.WHOLE_GENOME_SEQUENCING:
return True
else:
return False

def get_workflow_parameters(self, case_id: str) -> RarediseaseParameters:
"""Return parameters."""
analysis_type: AnalysisType = self.get_data_analysis_type(case_id=case_id)
Expand All @@ -110,6 +116,7 @@ def get_workflow_parameters(self, case_id: str) -> RarediseaseParameters:
analysis_type=analysis_type,
target_bed=Path(self.references, target_bed).as_posix(),
save_mapped_as_cram=True,
skip_germlinecnvcaller=self.get_germlinecnvcaller_flag(case_id=case_id, analysis_type=analysis_type)
)

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions cg/models/raredisease/raredisease.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ class RarediseaseParameters(WorkflowParameters):
target_bed: str
analysis_type: str
save_mapped_as_cram: bool
skip_germlinecnvcaller: bool

0 comments on commit 359f1ee

Please sign in to comment.