|
|
@@ -1,7 +1,7 @@ |
|
|
|
task Call_meth { |
|
|
|
|
|
|
|
File ref_dir |
|
|
|
|
|
|
|
File chrom_sizes |
|
|
|
File Dedup_bam |
|
|
|
String sample |
|
|
|
String docker |
|
|
@@ -11,7 +11,10 @@ task Call_meth { |
|
|
|
command <<< |
|
|
|
set -o pipefail |
|
|
|
set -e |
|
|
|
/src/Bismark-0.20.1/bismark_methylation_extractor --multicore 16 -p --no_overlap --comprehensive --report --bedGraph --cytosine_report --CX_context --ignore_r2 2 --merge_non_CpG --genome_folder ${ref_dir} ${Dedup_bam} |
|
|
|
/src/Bismark-0.20.1/bismark_methylation_extractor --multicore 16 -p --no_overlap --comprehensive --report --bedGraph --cytosine_report -o ./ --gzip --ignore_r2 2 --genome_folder ${ref_dir} ${Dedup_bam} |
|
|
|
gunzip "${sample}.deduplicated.bedGraph.gz" |
|
|
|
bedtools sort -i ${sample}.deduplicated.bedGraph > ${sample}.deduplicated.sorted.bedGraph |
|
|
|
/usr/local/bin/bedGraphToBigWig ${sample}.deduplicated.sorted.bedGraph ${chrom_sizes} ${sample}.deduplicated.bw |
|
|
|
>>> |
|
|
|
|
|
|
|
runtime { |
|
|
@@ -22,13 +25,14 @@ command <<< |
|
|
|
} |
|
|
|
|
|
|
|
output { |
|
|
|
File bedGraph = "${sample}.deduplicated.bedGraph.gz" |
|
|
|
File cov = "${sample}.bismark.deduplicated.cov.gz" |
|
|
|
File splitting_report = "${sample}.deduplicated_splitting_report.txt" |
|
|
|
File CHG_context = "CHG_context_${sample}.deduplicated.txt" |
|
|
|
File CHH_context = "CHH_context_${sample}.deduplicated.txt" |
|
|
|
File CpG_context = "CpG_context_${sample}.deduplicated.txt" |
|
|
|
File BedGraph = "${sample}.deduplicated.bedGraph" |
|
|
|
File Bigwig = "${sample}.deduplicated.bw" |
|
|
|
File Cov = "${sample}.deduplicated.bismark.cov.gz" |
|
|
|
File Splitting_report = "${sample}.deduplicated_splitting_report.txt" |
|
|
|
File CHG_context = "CHG_context_${sample}.deduplicated.txt.gz" |
|
|
|
File CHH_context = "CHH_context_${sample}.deduplicated.txt.gz" |
|
|
|
File CpG_context = "CpG_context_${sample}.deduplicated.txt.gz" |
|
|
|
File Mbias = "${sample}.deduplicated.M-bias.txt" |
|
|
|
File CX = "${sample}.CX_report.txt" |
|
|
|
File CX = "${sample}.CX_report.txt.gz" |
|
|
|
} |
|
|
|
} |
|
|
|
} |