Browse Source

fixup

tags/v1.0
lzpmonster 6 years ago
parent
commit
f324f6a725
3 changed files with 18 additions and 11 deletions
  1. +2
    -1
      inputs
  2. +14
    -10
      tasks/Call_meth.wdl
  3. +2
    -0
      workflow.wdl

+ 2
- 1
inputs View File

"{{ project_name }}.docker": "registry-vpc.cn-shanghai.aliyuncs.com/pgx-docker-registry/bismark:1.1.0_20190225", "{{ project_name }}.docker": "registry-vpc.cn-shanghai.aliyuncs.com/pgx-docker-registry/bismark:1.1.0_20190225",
"{{ project_name }}.sample": "{{ sample_name }}", "{{ project_name }}.sample": "{{ sample_name }}",
"{{ project_name }}.disk_size": "{{ disk_size }}", "{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.fastq_2": "{{ read2 }}"
"{{ project_name }}.fastq_2": "{{ read2 }}",
"{{ project_name }}.chrom_sizes": "oss://choppy-app-example-data/WGBS/hg38.chrom.sizes"
} }



+ 14
- 10
tasks/Call_meth.wdl View File

task Call_meth { task Call_meth {
File ref_dir File ref_dir
File chrom_sizes
File Dedup_bam File Dedup_bam
String sample String sample
String docker String docker
command <<< command <<<
set -o pipefail set -o pipefail
set -e 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 { runtime {
} }


output { 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 Mbias = "${sample}.deduplicated.M-bias.txt"
File CX = "${sample}.CX_report.txt"
File CX = "${sample}.CX_report.txt.gz"
} }
}
}

+ 2
- 0
workflow.wdl View File

File fastq_1 File fastq_1
File fastq_2 File fastq_2


File chrom_sizes
String sample String sample
String docker String docker
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,
chrom_sizes=chrom_sizes,
Dedup_bam=Dedup.Dedup_bam, Dedup_bam=Dedup.Dedup_bam,
sample=sample, sample=sample,
docker=docker, docker=docker,

Loading…
Cancel
Save