Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Dec 12, 2024
1 parent 831624f commit 156fc55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cg/meta/upload/fohm/fohm.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def link_sample_raw_data_files(
case: Case = sample.links[0].case
delivery_service = self._delivery_factory.build_delivery_service(
case=case,
delivery_type=DataDelivery.FASTQ,
delivery_type=DataDelivery.FASTQ_ANALYSIS,
delivery_destination=DeliveryDestination.FOHM,
delivery_structure=DeliveryStructure.FLAT,
)
Expand Down
7 changes: 5 additions & 2 deletions cg/services/deliver_files/tag_fetcher/fohm_upload_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def fetch_tags(self, workflow: Workflow) -> DeliveryFileTags:

@staticmethod
def _validate_workflow(workflow: Workflow):
"""Validate the workflow."""
if workflow != Workflow.MUTANT:
"""
Validate the workflow.
NOTE: workflow raw data here is required to fit the implementation of the raw data delivery file fetcher.
"""
if workflow != Workflow.MUTANT or workflow != Workflow.RAW_DATA:
raise ValueError(f"Workflow {workflow} is not supported for FOHM upload file delivery.")
return workflow

0 comments on commit 156fc55

Please sign in to comment.