From bd25d0dafdd9d2eff0ec6ceb70b3d745c355e3e9 Mon Sep 17 00:00:00 2001 From: Kieron Taylor Date: Tue, 30 Jul 2024 08:47:32 +0000 Subject: [PATCH] Rationalise pac_bio_run use in QCPoolMetrics --- lang_qc/models/pacbio/qc_data.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lang_qc/models/pacbio/qc_data.py b/lang_qc/models/pacbio/qc_data.py index ba3a938..f6b083e 100644 --- a/lang_qc/models/pacbio/qc_data.py +++ b/lang_qc/models/pacbio/qc_data.py @@ -236,9 +236,7 @@ def pre_root(cls, values: dict[str, Any]) -> dict[str, Any]: sample_stats.append( SampleDeplexingStats( id_product=prod.id_pac_bio_product, - sample_name=( - prod.pac_bio_run.sample.name if prod.pac_bio_run else None - ), + sample_name=lib_lims_data[i].sample.name, tag1_name=lib_lims_data[i].tag_identifier, tag2_name=lib_lims_data[i].tag2_identifier, deplexing_barcode=prod.barcode4deplexing,