From d7b93f93f201a5e56cc0ec272570af340e84d0d2 Mon Sep 17 00:00:00 2001 From: Kieron Taylor Date: Mon, 26 Feb 2024 15:53:19 +0000 Subject: [PATCH] Update PacBioProductMetrics definition to include new per-product metrics --- lang_qc/db/mlwh_schema.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lang_qc/db/mlwh_schema.py b/lang_qc/db/mlwh_schema.py index 9b7ededb..5684d196 100644 --- a/lang_qc/db/mlwh_schema.py +++ b/lang_qc/db/mlwh_schema.py @@ -579,6 +579,36 @@ class PacBioProductMetrics(Base): index=True, comment="The final QC outcome of the product as 0(failed), 1(passed) or NULL", ) + hifi_read_bases = Column( + mysqlBIGINT(unsigned=True), + nullable=True, + comment="The number of HiFi bases" + ) + hifi_num_reads = Column( + mysqlINTEGER(unsigned=True), + nullable=True, + comment="The number of HiFi reads" + ) + hifi_read_length_mean = Column( + mysqlSMALLINT(unsigned=True), + nullable=True, + comment="The mean HiFi read length" + ) + barcode_quality_score = Column( + mysqlSMALLINT(unsigned=True), + nullable=True, + comment="The mean barcode HiFi quality score" + ) + hifi_read_quality_mean = Column( + mysqlSMALLINT(unsigned=True), + nullable=True, + comment="The mean HiFi base quality" + ) + hifi_bases_percent = Column( + mysqlFLOAT(), + nullable=True, + comment="The HiFi bases expressed as a percentage of the total HiFi bases" + ) pac_bio_run_well_metrics = relationship( "PacBioRunWellMetrics", back_populates="pac_bio_product_metrics"