Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(store all fastq files for negative controls) #3681

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
beatrizsavinhas marked this conversation as resolved.
Show resolved Hide resolved
return True

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

Expand Down
Loading