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

Feature/nucleo snv #1412

Merged
merged 10 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion beagle/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.91.3"
__version__ = "1.91.4"
1 change: 1 addition & 0 deletions runner/operator/access/v2_1_0/qc/access_nucleo_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def get_nucleo_outputs(self):
.order_by("-created_date")
.first()
.operator_run.runs.all()
.filter(status=RunStatus.COMPLETED)
)
if not len(most_recent_runs_for_request):
raise Exception("No matching Access V2 Nucleo runs found for request {}".format(self.request_id))
Expand Down
27 changes: 13 additions & 14 deletions runner/operator/access/v2_1_0/snps_and_indels/snps_and_indels.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,6 @@ def get_request_id_runs(self, app):
:param request_id: str - IGO request ID
:return: List[str] - List of most recent runs from given request ID
"""
# if not request_id:
# request_id_runs = Run.objects.filter(pk__in=self.run_ids)
# self.request_id = most_recent_runs_for_request[0].tags["igoRequestId"]
# else:
most_recent_runs_for_request = (
Run.objects.filter(
tags__igoRequestId=self.request_id,
Expand All @@ -665,6 +661,7 @@ def get_request_id_runs(self, app):
.order_by("-created_date")
.first()
.operator_run.runs.all()
.filter(status=RunStatus.COMPLETED)
)
if not len(most_recent_runs_for_request):
raise Exception("No matching Nucleo runs found for request {}".format(self.request_id))
Expand Down Expand Up @@ -706,17 +703,19 @@ def construct_sample_inputs(self, sample_info):
.replace("-simplex.bam", "-CURATED-SIMPLEX")
]

matched_normal = [_create_cwl_bam_object(sample_info["matched_normal_unfiltered"][0].path)]
matched_normal_id = [
sample_info["matched_normal_unfiltered"][0].file_name.replace(UNCOLLAPSED_BAM_STEM, "")
]
genotyping_bams_ids = tumor_duplex_id + tumor_simplex_id + normal_duplex_id + normal_simplex_id

genotyping_bams = (
normal_bam_duplex + normal_bam_simplex + tumor_bam_duplex + tumor_bam_simplex + matched_normal
)
genotyping_bams_ids = (
tumor_duplex_id + tumor_simplex_id + normal_duplex_id + normal_simplex_id + matched_normal_id
)
genotyping_bams = normal_bam_duplex + normal_bam_simplex + tumor_bam_duplex + tumor_bam_simplex

if sample_info["matched_normal_unfiltered"][0] == None:
matched_normal_id = [""]
else:
matched_normal = [_create_cwl_bam_object(sample_info["matched_normal_unfiltered"][0].path)]
matched_normal_id = [
sample_info["matched_normal_unfiltered"][0].file_name.replace(UNCOLLAPSED_BAM_STEM, "")
]
genotyping_bams_ids += matched_normal_id
genotyping_bams += matched_normal

for key, files in sample_info.items():
for f in files:
Expand Down