Commit 3d503651 authored by Davis McCarthy's avatar Davis McCarthy
Browse files

Tweaking workflow and container

parent dc251619
......@@ -21,7 +21,7 @@ COPY environment.yml /tmp/environment.yml
RUN conda env create -f /tmp/environment.yml python=3.6 && conda clean -a
# Pull the environment name out of the environment.yml
RUN echo "source activate embo-singlecellomics" > ~/.bashrc
ENV PATH /opt/conda/envs/embo-singlecellomics/bin:$PATH
ENV PATH /miniconda/envs/embo-singlecellomics/bin:$PATH
RUN mkdir -p /usr/local/lib/R/site-library
ADD scripts/install.R /tmp/
......
......@@ -49,7 +49,7 @@ rule fastqc_reports:
params:
output_dir="reports/fastqc/"
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'fastqc -o {params.output_dir} {input}'
......@@ -75,7 +75,7 @@ rule fastqc_reports_trimmed:
params:
output_dir="reports/fastqc/"
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'/Users/davis/src/FastQC.app/Contents/MacOS/fastqc -o {params.output_dir} {input}'
......@@ -86,7 +86,7 @@ rule bismark_prepare_genome:
output:
'genome/Bisulfite_Genome'
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'bismark_genome_preparation {input}'
......@@ -98,7 +98,7 @@ rule bismark:
output:
temp('data/bismark/raw/{sample}_trimmed_bismark_bt2.bam') ## CHECK BISMARK OUTPUT
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'bismark --non_directional --genome genome -o data/bismark/raw '
'{input}'
......@@ -110,7 +110,7 @@ rule bismark_dedup:
output:
temp('data/bismark/raw/{sample}_trimmed_bismark_bt2.deduplicated.bam') ## CHECK BISMARK OUTPUT
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'deduplicate_bismark --bam {input}'
......@@ -121,7 +121,7 @@ rule bismark_methylation:
output:
'data/bismark/methyl/{sample}_trimmed_bismark_bt2.deduplicated.bismark.cov.gz'
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'bismark_methylation_extractor --gzip --bedGraph '
'-o data/bismark/methyl {input}'
......@@ -136,7 +136,7 @@ rule multiqc:
output:
'reports/multiqc/multiqc_report.html'
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'multiqc --force --filename {output} '
'reports/fastqc ./ '
......@@ -153,7 +153,7 @@ rule merge_methylation:
indir = 'data/bismark/methyl',
outdir = 'data/bismark/merged'
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'RScript scripts/merge.R -i {params.indir} -o {params.outdir}'
......@@ -168,6 +168,6 @@ rule annotate_methylation:
annodir = 'annotation',
outdir = 'results'
singularity:
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.2"
"docker://dmccarthy/embo-singlecellomics-methylation_2019-05_heidelberg:0.4"
shell:
'RScript scripts/annotate.R -i {params.indir} -a {params.annodir} -o {params.outdir}'
Supports Markdown
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