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

New Elution Buffer fields in Arnold twist #570

Merged
merged 2 commits into from
Dec 18, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions cg_lims/models/arnold/prep/twist/buffer_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ 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
Expand All @@ -31,6 +36,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",
Expand Down
Loading