Skip to content

Commit

Permalink
Add check for negative controls when storing fastq files.
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizsavinhas committed Sep 3, 2024
1 parent 55ee4fc commit 3a7120e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cg/services/illumina/post_processing/housekeeper_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
get_undetermined_fastqs,
rename_fastq_file_if_needed,
)
from cg.store.models import Sample
from cg.store.store import Store
from cg.utils.files import get_files_matching_pattern

Expand All @@ -32,6 +33,11 @@ def _should_fastq_path_be_stored_in_housekeeper(
Check if a sample fastq file should be tracked in Housekeeper.
Only fastq files that pass the q30 threshold should be tracked.
"""
sample: Sample = store.get_sample_by_internal_id(internal_id=sample_id)

if sample.is_negative_control:
return True

lane = get_lane_from_sample_fastq(sample_fastq_path)
q30_threshold: int = get_q30_threshold(sequencer_type)

Expand Down

0 comments on commit 3a7120e

Please sign in to comment.