Skip to content

Commit

Permalink
Merge pull request #99 from sanjaynagi/add-logs-coverage
Browse files Browse the repository at this point in the history
coverage was not saving logs to file
  • Loading branch information
sanjaynagi authored Jun 18, 2024
2 parents 4de4ffb + 68c5ff1 commit d94e12f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions workflow/rules/alignment.smk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ rule KallistoQuant:
wrapper:
"v1.15.0/bio/kallisto/quant"


rule GenomeUnzip:
"""
Index the reference genome with samtools
Expand All @@ -48,6 +49,7 @@ rule GenomeUnzip:
shell:
"gzip -d -c {input} > {output} 2> {log}"


rule GenomeIndex:
"""
Index the reference genome with samtools
Expand Down
4 changes: 2 additions & 2 deletions workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rule BamStats:
log:
"logs/BamStats/{sample}.log",
wrapper:
"v1.15.0/bio/samtools/flagstat"
"v3.12.1/bio/samtools/flagstat"


rule Coverage:
Expand All @@ -71,7 +71,7 @@ rule Coverage:
prefix=lambda w, output: output[0].split(os.extsep)[0],
threads: 8
shell:
"mosdepth --threads {threads} --fast-mode {params.prefix} {input.bam}"
"mosdepth --threads {threads} --fast-mode {params.prefix} {input.bam} 2> {log}"


rule vcfStats:
Expand Down

0 comments on commit d94e12f

Please sign in to comment.