Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Klinische Genetica
capture-lumc
hutspot
Commits
9c950ec1
Commit
9c950ec1
authored
Feb 27, 2018
by
Sander Bollen
Browse files
add vtoolscoverage metrics
parent
a191f581
Changes
1
Hide whitespace changes
Inline
Side-by-side
Snakefile
View file @
9c950ec1
...
...
@@ -113,8 +113,10 @@ def metrics(do_metrics=True):
sample=SAMPLES)
fqcp = expand(out_path("{sample}/pre_process/postqc_fastqc/{sample}.cutadapt_R1_fastqc.zip"),
sample=SAMPLES)
coverage_stats = expand(out_path("{sample}/coverage/{ref}.coverages.tsv"),
sample=SAMPLES, ref=BASE_REFFLATS)
stats = out_path("stats.json")
return fqcr + fqcm + fqcp + [stats]
return fqcr + fqcm + fqcp +
coverage_stats +
[stats]
rule all:
...
...
@@ -450,6 +452,17 @@ rule covstats:
"--title 'Targets coverage' --subtitle '{params.subt}' > {output.covj}"
rule vtools_coverage:
"""Calculate coverage statistics per transcript"""
input:
gvcf=out_path("{sample}/vcf/{sample}.g.vcf.gz")
ref=get_refflatpath
output:
tsv=out_path("{sample}/coverage/{ref}.coverages.tsv")
conda: "envs/vcfstats.yml"
shell: "vtools-gcoverage -I {input.gvcf} -R {input.ref} > {output.tsv}"
## vcfstats
rule vcfstats:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment