Skip to content

Commit

Permalink
add condition to fix handling of one file
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Jun 28, 2024
1 parent 0c0aa72 commit 8ab36dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/harpy/snakefiles/align-bwa.smk
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ rule report_bx:
message:
"Summarizing all barcode information from alignments"
script:
"report/BxAlignStats.Rmd"
"report/AlignBxStats.Rmd"

rule log_workflow:
default_target: True
input:
bams = collect(outdir + "/{sample}.{ext}", sample = samplenames, ext = ["bam", "bam.bai"]),
reports = collect(outdir + "/reports/{sample}.html", sample = samplenames) if not skipreports else [],
agg_report = outdir + "/reports/bwa.stats.html" if not skipreports else [],
bx_report = outdir + "/reports/barcodes.summary.html" if not skipreports else []
bx_report = outdir + "/reports/barcodes.summary.html" if (not skipreports or len(samplenames) == 1) else []
params:
quality = config["alignment_quality"],
extra = extra
Expand Down
4 changes: 2 additions & 2 deletions src/harpy/snakefiles/align-ema.smk
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,15 @@ rule report_bx:
message:
"Summarizing all barcode information from alignments"
script:
"report/BxAlignStats.Rmd"
"report/AlignBxStats.Rmd"

rule log_workflow:
default_target: True
input:
bams = collect(outdir + "/{sample}.{ext}", sample = samplenames, ext = [ "bam", "bam.bai"] ),
cov_report = collect(outdir + "/reports/{sample}.html", sample = samplenames) if not skipreports else [],
agg_report = f"{outdir}/reports/ema.stats.html" if not skipreports else [],
bx_report = outdir + "/reports/barcodes.summary.html" if not skipreports else []
bx_report = outdir + "/reports/barcodes.summary.html" if (not skipreports or len(samplenames) == 1) else []
params:
beadtech = "-p" if platform == "haplotag" else f"-w {whitelist}"
message:
Expand Down
4 changes: 2 additions & 2 deletions src/harpy/snakefiles/align-strobealign.smk
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@ rule report_bx:
message:
"Summarizing all barcode information from alignments"
script:
"report/BxAlignStats.Rmd"
"report/AlignBxStats.Rmd"

rule log_workflow:
default_target: True
input:
bams = collect(outdir + "/{sample}.{ext}", sample = samplenames, ext = ["bam","bam.bai"]),
samtools = outdir + "/reports/strobealign.stats.html" if not skipreports else [] ,
reports = collect(outdir + "/reports/{sample}.html", sample = samplenames) if not skipreports else [],
bx_report = outdir + "/reports/barcodes.summary.html" if not skipreports else []
bx_report = outdir + "/reports/barcodes.summary.html" if (not skipreports or len(samplenames) == 1) else []
params:
readlen = readlen,
quality = config["quality"],
Expand Down

0 comments on commit 8ab36dc

Please sign in to comment.