Skip to content

Commit

Permalink
Merge pull request #440 from chuan-wang/master
Browse files Browse the repository at this point in the history
Fix extra postfix in sample names for BCL Convert
  • Loading branch information
chuan-wang authored Nov 6, 2024
2 parents 3b312b0 + b3d8446 commit 4bd531a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TACA Version Log

## 20241031.1

Fix extra postfix in sample names for BCL Convert

## 20241029.3

Fix missing settings for BCL Convert
Expand Down
16 changes: 16 additions & 0 deletions taca/illumina/Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,22 @@ def _process_simple_lane_with_single_demux(
os.unlink(dest)
os.symlink(source, dest)

# Replace the file laneBarcode.html
html_report_laneBarcode = os.path.join(
source, "html", self.flowcell_id, "all", "all", "all", "laneBarcode.html"
)
if os.path.exists(html_report_laneBarcode):
html_report_laneBarcode_parser = LaneBarcodeParser(html_report_laneBarcode)
# Remove the trailing "_SX" postfix from samples names for BCL Convert when it handles SmartSeq3 libraries
for entry in html_report_laneBarcode_parser.sample_data:
if "_S" in entry["Sample"]:
entry["Sample"] = "_".join(entry["Sample"].split("_")[:-1])
html_report_laneBarcode_parser.sample_data = sorted(
html_report_laneBarcode_parser.sample_data,
key=lambda k: (k["Lane"].lower(), k["Sample"]),
)
_generate_lane_html(html_report_laneBarcode, html_report_laneBarcode_parser)

def _fix_html_reports_for_complex_lanes(
self,
demux_folder,
Expand Down

0 comments on commit 4bd531a

Please sign in to comment.