Verified Commit 81909f3f authored by Aurélien Ginolhac's avatar Aurélien Ginolhac 🚴
Browse files

for test data, disable macs2 model

parent 17e92926
...@@ -246,11 +246,11 @@ def get_multiqc_input(wildcards): ...@@ -246,11 +246,11 @@ def get_multiqc_input(wildcards):
"results/picard_dedup/{sample}.picard_dedup.stats.txt", "results/picard_dedup/{sample}.picard_dedup.stats.txt",
"results/bamtools_filtered/{sample}.sorted.bamtools_filtered.flagstat", "results/bamtools_filtered/{sample}.sorted.bamtools_filtered.flagstat",
"results/bamtools_filtered/{sample}.sorted.bamtools_filtered.idxstats", "results/bamtools_filtered/{sample}.sorted.bamtools_filtered.idxstats",
"results/bamtools_filtered/{sample}.sorted.bamtools_filtered.stats.txt", "results/bamtools_filtered/{sample}.sorted.bamtools_filtered.stats.txt"
"results/phantompeakqualtools/{sample}.phantompeak.spp.out", #"results/phantompeakqualtools/{sample}.phantompeak.spp.out",
"results/phantompeakqualtools/{sample}.spp_correlation_mqc.tsv", #"results/phantompeakqualtools/{sample}.spp_correlation_mqc.tsv",
"results/phantompeakqualtools/{sample}.spp_nsc_mqc.tsv", #"results/phantompeakqualtools/{sample}.spp_nsc_mqc.tsv",
"results/phantompeakqualtools/{sample}.spp_rsc_mqc.tsv" #"results/phantompeakqualtools/{sample}.spp_rsc_mqc.tsv"
], ],
sample = sample sample = sample
) )
...@@ -338,8 +338,8 @@ def all_input(wildcards): ...@@ -338,8 +338,8 @@ def all_input(wildcards):
if is_single_end(sample, unit): if is_single_end(sample, unit):
wanted_input.extend(expand( wanted_input.extend(expand(
[ [
"results/trimmed_se/{sample}-{unit}.fastq.gz"#, "results/trimmed_se/{sample}-{unit}.fastq.gz",
#"results/trimmed_se/{sample}-{unit}.settings" "results/trimmed_se/{sample}-{unit}.settings"
], ],
sample = sample, sample = sample,
unit = unit unit = unit
...@@ -349,8 +349,8 @@ def all_input(wildcards): ...@@ -349,8 +349,8 @@ def all_input(wildcards):
wanted_input.extend( wanted_input.extend(
expand ( expand (
[ [
"results/trimmed_pe/{sample}-{unit}.R1.fastq.gz", "results/trimmed_pe/{sample}-{unit}.1.fastq.gz",
"results/trimmed_pe/{sample}-{unit}.R2.fastq.gz", "results/trimmed_pe/{sample}-{unit}.2.fastq.gz",
"results/trimmed_pe/{sample}-{unit}.settings" "results/trimmed_pe/{sample}-{unit}.settings"
], ],
sample = sample, sample = sample,
...@@ -360,14 +360,14 @@ def all_input(wildcards): ...@@ -360,14 +360,14 @@ def all_input(wildcards):
# mapping, merging and filtering bam-files # mapping, merging and filtering bam-files
for sample in samples.index: for sample in samples.index:
wanted_input.extend( #wanted_input.extend(
expand ( # expand (
[ # [
"results/phantompeakqualtools/{sample}.phantompeak.pdf" # "results/phantompeakqualtools/{sample}.phantompeak.pdf"
], # ],
sample = sample # sample = sample
) # )
) #)
if config["params"]["deeptools-plots"]["activate"]: if config["params"]["deeptools-plots"]["activate"]:
wanted_input.extend( wanted_input.extend(
......
...@@ -57,8 +57,8 @@ rule macs2_callpeak_broad: ...@@ -57,8 +57,8 @@ rule macs2_callpeak_broad:
) )
log: log:
"logs/macs2/callpeak.{sample}-{control}.broad.log" "logs/macs2/callpeak.{sample}-{control}.broad.log"
params: params: # --nomodel --extsize 147 added for fake data
lambda w, input:"--broad-cutoff 0.1 -f {bam_format} {gsize} -B --SPMR --keep-dup all {pvalue} {qvalue}".format( lambda w, input:"--broad-cutoff 0.1 -f {bam_format} {gsize} --nomodel --extsize 147 -B --SPMR --keep-dup all {pvalue} {qvalue}".format(
gsize="{}".format(open(input.gsizepath).read().strip()), gsize="{}".format(open(input.gsizepath).read().strip()),
pvalue="-p {}".format(config["params"]["callpeak"]["p-value"]) if config["params"]["callpeak"]["p-value"] else "", pvalue="-p {}".format(config["params"]["callpeak"]["p-value"]) if config["params"]["callpeak"]["p-value"] else "",
qvalue="-q {}".format(config["params"]["callpeak"]["q-value"]) if config["params"]["callpeak"]["q-value"] else "", qvalue="-q {}".format(config["params"]["callpeak"]["q-value"]) if config["params"]["callpeak"]["q-value"] else "",
...@@ -217,7 +217,7 @@ rule plot_macs_qc: ...@@ -217,7 +217,7 @@ rule plot_macs_qc:
conda: conda:
"../envs/plot_macs_annot.yaml" "../envs/plot_macs_annot.yaml"
shell: shell:
"Rscript ../workflow/scripts/plot_macs_qc.R -i {params.input} -s {params.sample_control_combinations} " "Rscript workflow/scripts/plot_macs_qc.R -i {params.input} -s {params.sample_control_combinations} "
"-o {output.plot} -p {output.summmary} 2> {log}" "-o {output.plot} -p {output.summmary} 2> {log}"
rule plot_homer_annotatepeaks: rule plot_homer_annotatepeaks:
...@@ -237,7 +237,7 @@ rule plot_homer_annotatepeaks: ...@@ -237,7 +237,7 @@ rule plot_homer_annotatepeaks:
conda: conda:
"../envs/plot_macs_annot.yaml" "../envs/plot_macs_annot.yaml"
shell: shell:
"Rscript ../workflow/scripts/plot_homer_annotatepeaks.R -i {params.input} " "Rscript workflow/scripts/plot_homer_annotatepeaks.R -i {params.input} "
"-s {params.sample_control_combinations} -o {output.plot} -p {output.summmary} 2> {log}" "-s {params.sample_control_combinations} -o {output.plot} -p {output.summmary} 2> {log}"
rule plot_sum_annotatepeaks: rule plot_sum_annotatepeaks:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment