From 43216fe018aac686c977149ebacd45d9a03e5471 Mon Sep 17 00:00:00 2001 From: Vincent Janvid <69356202+Vince-janv@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:36:51 +0100 Subject: [PATCH] fix(NFAnalysis) Prevent variable being overriden (#4049)(patch) ### Fixed - renamed NFAnalysisAPI.config to NFAnalysisAPI.workflow_config_path --- cg/meta/workflow/nf_analysis.py | 4 ++-- cg/meta/workflow/raredisease.py | 2 +- cg/meta/workflow/rnafusion.py | 2 +- cg/meta/workflow/tomte.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cg/meta/workflow/nf_analysis.py b/cg/meta/workflow/nf_analysis.py index 7677b8397e..0b0d985444 100644 --- a/cg/meta/workflow/nf_analysis.py +++ b/cg/meta/workflow/nf_analysis.py @@ -63,7 +63,7 @@ def __init__(self, config: CGConfig, workflow: Workflow): self.conda_binary: str | None = None self.platform: str | None = None self.params: str | None = None - self.config: str | None = None + self.workflow_config_path: str | None = None self.resources: str | None = None self.tower_binary_path: str | None = None self.tower_workflow: str | None = None @@ -136,7 +136,7 @@ def get_nextflow_config_content(self, case_id: str) -> str: """Return nextflow config content.""" config_files_list: list[str] = [ self.platform, - self.config, + self.workflow_config_path, self.resources, ] extra_parameters_str: list[str] = [ diff --git a/cg/meta/workflow/raredisease.py b/cg/meta/workflow/raredisease.py index adc371616b..694c78a574 100644 --- a/cg/meta/workflow/raredisease.py +++ b/cg/meta/workflow/raredisease.py @@ -56,7 +56,7 @@ def __init__( self.conda_binary: str = config.raredisease.conda_binary self.platform: str = config.raredisease.platform self.params: str = config.raredisease.params - self.config: str = config.raredisease.config + self.workflow_config_path: str = config.raredisease.config self.resources: str = config.raredisease.resources self.tower_binary_path: str = config.tower_binary_path self.tower_workflow: str = config.raredisease.tower_workflow diff --git a/cg/meta/workflow/rnafusion.py b/cg/meta/workflow/rnafusion.py index 14c3da4afe..1df69e55ef 100644 --- a/cg/meta/workflow/rnafusion.py +++ b/cg/meta/workflow/rnafusion.py @@ -35,7 +35,7 @@ def __init__( self.conda_binary: str = config.rnafusion.conda_binary self.platform: str = config.rnafusion.platform self.params: str = config.rnafusion.params - self.config: str = config.rnafusion.config + self.workflow_config_path: str = config.rnafusion.config self.resources: str = config.rnafusion.resources self.tower_binary_path: str = config.tower_binary_path self.tower_workflow: str = config.rnafusion.tower_workflow diff --git a/cg/meta/workflow/tomte.py b/cg/meta/workflow/tomte.py index 9eb4aa7df6..2b1204c5ec 100644 --- a/cg/meta/workflow/tomte.py +++ b/cg/meta/workflow/tomte.py @@ -31,7 +31,7 @@ def __init__( self.conda_binary: str = config.tomte.conda_binary self.platform: str = config.tomte.platform self.params: str = config.tomte.params - self.config: str = config.tomte.config + self.workflow_config_path: str = config.tomte.config self.resources: str = config.tomte.resources self.tower_binary_path: str = config.tower_binary_path self.tower_workflow: str = config.tomte.tower_workflow