Skip to content

Commit

Permalink
add polymerase kit dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Dec 9, 2024
1 parent 4ace972 commit a023a73
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cg_lims/EPPs/files/smrt_link/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
}


POLYMERASE_KITS: Dict[str, str] = {
"Revio polymerase kit": "Lxxxxx102739100123199",
"Revio SPRQ polymerase kit": "Lxxxxx103496900123199",
}


class RevioIndexSets(StrEnum):
SMRTBELL_INDEX_SET: str = "43f950a9-8bde-3855-6b25-c13368069745"

Expand Down Expand Up @@ -87,7 +93,7 @@ def __init__(self, artifact: Artifact):
process = artifact.parent_process
self.sample_name = artifact.samples[0].id
self.system_name = process.udf.get("Sequencing Instrument")
self.binding_kit = process.udf.get("Binding Kit")
self.binding_kit = POLYMERASE_KITS[process.udf.get("Binding Kit")]
self.number_of_samples = len(artifact.samples)
self.application = process.udf.get("Revio Application")
self.available_volume = artifact.udf.get("Volume (ul)")
Expand Down Expand Up @@ -255,7 +261,7 @@ def _create_smrt_cell_settings(self) -> str:
pool.name,
pool.udf.get("Library Type"),
pool.udf.get("Revio Application"),
pool.udf.get("Polymerase Kit"),
POLYMERASE_KITS[pool.udf.get("Polymerase Kit")],
self.movie_acquisition_time,
pool.udf.get("Mean Size (bp)"),
pool.udf.get("Library Concentration (pM)"),
Expand Down

0 comments on commit a023a73

Please sign in to comment.