Skip to content

Commit

Permalink
Removed unnecessary rule dependencies for better parallelization in a…
Browse files Browse the repository at this point in the history
…nticipation of release
  • Loading branch information
groverj3 committed Aug 6, 2019
1 parent ace7864 commit 39e705b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ REFERENCE_GENOME = config['reference_genome']
rule all:
input:
expand('6_mosdepth/{sample}.sorted.markdupes.coverage.txt',
sample=SAMPLES)
sample=SAMPLES),
expand('5_methyldackel_extract/{sample}.sorted.markdupes_{context}.{ext}',
sample=SAMPLES, context=['CpG', 'CHG', 'CHH'],
ext=['bedGraph', 'methylKit']),
expand('2_trim_galore/{sample}_R{mate}_val_{mate}_fastqc.{ext}',
sample=SAMPLES, mate=[1, 2], ext=['html', 'zip'])


# Index the reference genome
Expand Down Expand Up @@ -110,10 +115,6 @@ rule fastqc_trimmmed:
rule bwameth_align:
input:
{rules.bwameth_index.output},
'2_trim_galore/{sample}_R1_val_1_fastqc.html',
'2_trim_galore/{sample}_R1_val_1_fastqc.zip',
'2_trim_galore/{sample}_R2_val_2_fastqc.html',
'2_trim_galore/{sample}_R2_val_2_fastqc.zip',
R1 = '2_trim_galore/{sample}_R1_val_1.fq.gz',
R2 = '2_trim_galore/{sample}_R2_val_2.fq.gz'
output:
Expand Down Expand Up @@ -282,9 +283,8 @@ rule methyldackel_extract:


# Get the depth for each sample
rule get_depth:
rule mosdepth:
input:
{rules.methyldackel_extract.output},
bam = '3_aligned_sorted_markdupes/{sample}.sorted.markdupes.bam'
output:
'6_mosdepth/{sample}.sorted.markdupes.mosdepth.global.dist.txt',
Expand All @@ -311,7 +311,6 @@ rule get_depth:
# Calculate the coverage from the mosdepth output
rule calc_coverage:
input:
{rules.get_depth.output},
bed = '6_mosdepth/{sample}.sorted.markdupes.per-base.bed.gz'
output:
'6_mosdepth/{sample}.sorted.markdupes.coverage.txt'
Expand Down
Binary file modified dag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39e705b

Please sign in to comment.