command <<< | command <<< | ||||
set -o pipefail | set -o pipefail | ||||
set -e | set -e | ||||
bismark_methylation_extractor -p --no_overlap --comprehensive --report --bedGraph --genome_folder ${ref_dir} ${Dedup_bam} | |||||
/src/Bismark-0.20.1/bismark_methylation_extractor -p --no_overlap --comprehensive --report --bedGraph --genome_folder ${ref_dir} ${Dedup_bam} | |||||
>>> | >>> | ||||
runtime { | runtime { | ||||
File CpG_context = "CpG_context_${sample}_R1_bismark_bt2_pe.txt" | File CpG_context = "CpG_context_${sample}_R1_bismark_bt2_pe.txt" | ||||
} | } | ||||
} | } | ||||
command <<< | command <<< | ||||
set -o pipefail | set -o pipefail | ||||
set -e | set -e | ||||
cp ${unsorted_bam} ./ | |||||
inputfile = basename ${unsorted_bam} | |||||
/src/Bismark-0.18.2/deduplicate_bismark -p --bam ./$inputfile | |||||
/src/Bismark-0.20.1/deduplicate_bismark -p --bam ./$inputfile --output_dir ./ | |||||
>>> | >>> | ||||
runtime { | runtime { | ||||
docker:docker | docker:docker | ||||
} | } | ||||
output { | output { | ||||
File dedup_bam = "${sample}_R1_bismark_bt2_pe.deduplicated.bam" | |||||
File dedup_repoet = "${sample}_R1_bismark_bt2_pe.deduplication_report.txt" | |||||
File Dedup_bam = "${sample}_R1_bismark_bt2_pe.deduplicated.bam" | |||||
File Dedup_repoet = "${sample}_R1_bismark_bt2_pe.deduplication_report.txt" | |||||
} | } | ||||
} | } | ||||
command <<< | command <<< | ||||
set -o pipefail | set -o pipefail | ||||
set -e | set -e | ||||
bismark --bowtie2 -p 8 --bam ${ref_dir} -1 ${trim_read1} -2 ${trim_read2} | |||||
/src/Bismark-0.20.1/bismark --bowtie2 -p 8 --bam ${ref_dir} -1 ${trim_read1} -2 ${trim_read2} | |||||
>>> | >>> | ||||
call Call_meth.Call_meth as Call_meth { | call Call_meth.Call_meth as Call_meth { | ||||
input: | input: | ||||
ref_dir=ref_dir, | ref_dir=ref_dir, | ||||
Dedup_bam=Dedup.dedup_bam, | |||||
Dedup_bam=Dedup.Dedup_bam, | |||||
sample=sample, | sample=sample, | ||||
docker=docker, | docker=docker, | ||||
disk_size=disk_size, | disk_size=disk_size, |