Skip to content

Commit 4f028a1

Browse files
authored
Merge pull request #401 from ssjunnebo/aviti_bugfix
Handle missing PercentMismatch for samples in IndexAssignment.csv
2 parents 2a21a6d + 1a90e1c commit 4f028a1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

VERSIONLOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Scilifelab_epps Version Log
22

3+
## 20250318.1
4+
5+
Handle missing PercentMismatch for samples in IndexAssignment.csv
6+
37
## 20250317.3
48

59
Hotfix of 20250317.1, invalid implementation of function.

scripts/manage_demux_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,9 +862,9 @@ def write_demuxfile_aviti(process_stats, demux_id):
862862
row.get("QualityScoreMean", "0") or 0
863863
),
864864
"% Perfectbarcode": 100
865-
- float(row.get("PercentMismatch", "0")),
865+
- float(row.get("PercentMismatch", "0") or 0),
866866
"% One mismatchbarcode": float(
867-
row.get("PercentMismatch", "0")
867+
row.get("PercentMismatch", "0") or 0
868868
),
869869
"Yield (Mbases)": str(
870870
float(row.get("Yield(Gb)", "0")) * 1000

0 commit comments

Comments
 (0)