From 6e6b00e511f328dc7021c0ece475239e51cd445f Mon Sep 17 00:00:00 2001 From: idalindegaard Date: Tue, 17 Dec 2024 10:20:44 +0100 Subject: [PATCH 1/2] new elution buffer udfs in arnold twist --- .../aliquot_samples_for_enzymatic_fragmentation_twist.py | 1 + .../models/arnold/prep/twist/bead_purification_twist.py | 1 + cg_lims/models/arnold/prep/twist/buffer_exchange.py | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/cg_lims/models/arnold/prep/twist/aliquot_samples_for_enzymatic_fragmentation_twist.py b/cg_lims/models/arnold/prep/twist/aliquot_samples_for_enzymatic_fragmentation_twist.py index d9f7d208..c6168eef 100644 --- a/cg_lims/models/arnold/prep/twist/aliquot_samples_for_enzymatic_fragmentation_twist.py +++ b/cg_lims/models/arnold/prep/twist/aliquot_samples_for_enzymatic_fragmentation_twist.py @@ -23,6 +23,7 @@ class ProcessUDFs(BaseModel): lot_nr_h2o_aliquot_samples_fragmentation: Optional[str] = Field( None, alias="Nuclease free water" ) + lot_nr_elution_buffer_aliquot_samples_fragmentation: Optional[str] = Field(None, alias="Lot no: Elution Buffer") class ArtifactUDFs(BaseModel): diff --git a/cg_lims/models/arnold/prep/twist/bead_purification_twist.py b/cg_lims/models/arnold/prep/twist/bead_purification_twist.py index 04318973..a9526185 100644 --- a/cg_lims/models/arnold/prep/twist/bead_purification_twist.py +++ b/cg_lims/models/arnold/prep/twist/bead_purification_twist.py @@ -14,6 +14,7 @@ class ArtifactUDFs(BaseModel): class ProcessUDFs(BaseModel): lot_nr_etoh_bead_purification_post_hyb: Optional[str] = Field(None, alias="Ethanol") lot_nr_h2o_bead_purification_post_hyb: Optional[str] = Field(None, alias="Nuclease free water") + lot_nr_elution_buffer_bead_purification_post_hyb: Optional[str] = Field(None, alias="Lot no: Elution Buffer") bead_purification_post_hyb_method: Optional[str] = Field(None, alias="Method document") binding_and_purification_beads: Optional[str] = Field( None, alias="Twist Binding and Purification beads" diff --git a/cg_lims/models/arnold/prep/twist/buffer_exchange.py b/cg_lims/models/arnold/prep/twist/buffer_exchange.py index 0150e952..9860d3dc 100644 --- a/cg_lims/models/arnold/prep/twist/buffer_exchange.py +++ b/cg_lims/models/arnold/prep/twist/buffer_exchange.py @@ -10,8 +10,14 @@ class ArtifactUDFs(BaseModel): concentration: Optional[float] = Field(None, alias="Concentration") +class ProcessUDFs(BaseModel): + lot_nr_elution_buffer_bex: Optional[str] = Field(None, alias="Lot no: Elution Buffer") + ) + + class ArnoldStep(BaseStep): artifact_udfs: ArtifactUDFs + process_udfs: ProcessUDFs class Config: allow_population_by_field_name = True @@ -31,6 +37,7 @@ def get_buffer_exchange_twist(lims: Lims, sample_id: str, prep_id: str) -> Optio return ArnoldStep( **analyte.base_fields(), artifact_udfs=ArtifactUDFs(**analyte.artifact_udfs()), + process_udfs=ProcessUDFs(**analyte.process_udfs()), sample_id=sample_id, prep_id=prep_id, step_type="buffer_exchange", From 7c220d40db2dca693be22deedf37e65638128477 Mon Sep 17 00:00:00 2001 From: idalindegaard Date: Tue, 17 Dec 2024 10:34:10 +0100 Subject: [PATCH 2/2] minimal fix --- cg_lims/models/arnold/prep/twist/buffer_exchange.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cg_lims/models/arnold/prep/twist/buffer_exchange.py b/cg_lims/models/arnold/prep/twist/buffer_exchange.py index 9860d3dc..febe27f6 100644 --- a/cg_lims/models/arnold/prep/twist/buffer_exchange.py +++ b/cg_lims/models/arnold/prep/twist/buffer_exchange.py @@ -12,7 +12,6 @@ class ArtifactUDFs(BaseModel): class ProcessUDFs(BaseModel): lot_nr_elution_buffer_bex: Optional[str] = Field(None, alias="Lot no: Elution Buffer") - ) class ArnoldStep(BaseStep):