Skip to content

Commit

Permalink
Use FileExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
sofstam committed Dec 8, 2023
1 parent 9ae482c commit 086df53
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cg/meta/workflow/nf_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from cg.store.models import Sample

from cg.constants import Pipeline
from cg.constants.constants import FileExtensions, FileFormat, WorkflowManager
from cg.constants.constants import FileExtensions, FileFormat, WorkflowManager, MultiQC
from cg.constants.nextflow import NFX_WORK_DIR
from cg.io.yaml import write_yaml_nextflow_style
from cg.meta.workflow.analysis import AnalysisAPI
Expand Down Expand Up @@ -297,7 +297,13 @@ def get_deliverables_for_case(self, case_id: str) -> PipelineDeliverables:

def get_multiqc_json_path(self, case_id: str) -> Path:
"""Return the path of the multiqc_data.json file."""
return Path(self.root_dir, case_id, "multiqc", "multiqc_data", "multiqc_data.json")
return Path(
self.root_dir,
case_id,
MultiQC.MULTIQC,
MultiQC.MULTIQC_DATA,
MultiQC.MULTIQC_DATA + FileExtensions.JSON,
)

def get_multiqc_json_metrics(
self, case_id: str, pipeline_metrics: Union[dict, None] = None
Expand Down

0 comments on commit 086df53

Please sign in to comment.