Skip to content

Commit

Permalink
fix(NFAnalysis) Prevent variable being overriden (#4049)(patch)
Browse files Browse the repository at this point in the history
### Fixed

- renamed NFAnalysisAPI.config to NFAnalysisAPI.workflow_config_path
  • Loading branch information
Vince-janv authored Jan 7, 2025
1 parent fb2569a commit 43216fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cg/meta/workflow/nf_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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] = [
Expand Down
2 changes: 1 addition & 1 deletion cg/meta/workflow/raredisease.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cg/meta/workflow/rnafusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cg/meta/workflow/tomte.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43216fe

Please sign in to comment.