Skip to content

Commit

Permalink
add rounding and remove unsupported characters from run design csv
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Dec 4, 2024
1 parent 44088c3 commit 2192eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cg_lims/EPPs/files/smrt_link/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def __init__(self, process: Process):
self.instrument_type = process.udf.get("Instrument Type")
self.plate_1_type = process.udf.get("Plate 1 Type")
self.plate_2_type = process.udf.get("Plate 2 Type")
self.run_comments = f"Generated by automation in https://cg-lims-stage.sys.scilifelab.se/clarity/work-details/{process.id.split('-')[1]}"
self.run_comments = f"Generated by automation in Clarity LIMS step {process.id}"
self.movie_acquisition_time = process.udf.get("Movie Acquisition Time (hours)")
self.adaptive_loading = process.udf.get("Adaptive Loading")
self.base_kinetics = process.udf.get("Include Base Kinetics")
Expand Down
2 changes: 1 addition & 1 deletion cg_lims/EPPs/udf/set/set_revio_sequencing_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def calculate_weighted_average_size(artifact: Artifact) -> float:
for input_artifact in input_artifacts:
sizes.append(input_artifact.udf.get("Size (bp)"))
volumes.append(input_artifact.udf.get("Volume of sample (ul)"))
return np.average(sizes, weights=volumes)
return round(np.average(sizes, weights=volumes), 0)


def get_library_concentration(artifact: Artifact) -> float:
Expand Down

0 comments on commit 2192eb3

Please sign in to comment.