Skip to content

Commit

Permalink
Merge pull request #323 from chuan-wang/master
Browse files Browse the repository at this point in the history
Fix bug that seq_platform cannot be fetched when sample ID is in a wr…
  • Loading branch information
chuan-wang authored Apr 22, 2024
2 parents d07e90b + 9de79ac commit 16cda19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Scilifelab_epps Version Log

## 20240422.1

Fix bug that seq_platform cannot be fetched when sample ID is in a wrong format

## 20240417.1

Update lane yield thresholds for NovaSeqXPlus 1.5B and 25B FC
Expand Down
10 changes: 7 additions & 3 deletions scripts/index_distance_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ def verify_orientation(data):
for p in sorted(pools):
subset = [i for i in data if i["pool"] == p]
subset = sorted(subset, key=lambda d: d["sn"])
project_id = subset[0]["sn"].split("_")[0]
project_info = Project(lims, id=project_id)
seq_platform = project_info.udf.get("Sequencing platform")
if NGISAMPLE_PAT.findall(subset[0].get("sn", "")):
project_id = subset[0]["sn"].split("_")[0]
project_info = Project(lims, id=project_id)
seq_platform = project_info.udf.get("Sequencing platform")
else:
# The error message is skipped here since the verify_samplename function will check the names of all samples
seq_platform = ""
idx1_len = list(set([len(i["idx1"]) for i in subset if i["idx1"]]))
idx2_len = list(set([len(i["idx2"]) for i in subset if i["idx2"]]))
if len(idx1_len) == len(idx2_len) == 1 and idx1_len[0] == idx2_len[0] == 8:
Expand Down

0 comments on commit 16cda19

Please sign in to comment.