Skip to content

Commit

Permalink
Merge branch 'master' into aviti_bioinfo_tab
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil authored Nov 8, 2024
2 parents 73f3c90 + 4bd531a commit 0c6a06c
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
Expand Up @@ -4,6 +4,10 @@

Add element instruments to bioinfo_tab

## 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 0c6a06c

Please sign in to comment.