Skip to content

Commit 600b6f4

Browse files
committed
adding the next layer of integration for the reporting system
1 parent 211a475 commit 600b6f4

File tree

9 files changed

+1049
-6
lines changed

9 files changed

+1049
-6
lines changed

bin/assemble_report.py

Lines changed: 518 additions & 0 deletions
Large diffs are not rendered by default.

bin/create_amplicon_tsv.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def _load_positions_from_tsv(tsv_path: str) -> pl.LazyFrame:
4343

4444

4545
def _load_positions_from_bed(
46-
bed_path: str, fwd_suffix: str, rev_suffix: str
46+
bed_path: str,
47+
fwd_suffix: str,
48+
rev_suffix: str,
4749
) -> pl.LazyFrame:
4850
"""
4951
Load amplicon positions from BED file (legacy approach).
@@ -98,9 +100,7 @@ def _parse_stats_files(stats_pattern: str) -> pl.LazyFrame:
98100
# Extract sample name: first segment before '.'
99101
pl.col("file").str.extract(r"^([^.]+)", group_index=1).alias("sample_name"),
100102
# Extract amplicon name: second segment (between first and second '.')
101-
pl.col("file")
102-
.str.extract(r"^[^.]+\.([^.]+)", group_index=1)
103-
.alias("amplicon_name"),
103+
pl.col("file").str.extract(r"^[^.]+\.([^.]+)", group_index=1).alias("amplicon_name"),
104104
)
105105
.select(
106106
"sample_name",

0 commit comments

Comments
 (0)