Procházet zdrojové kódy

first commit

master
lizhihui před 6 roky
revize
ab8e950828
3 změnil soubory, kde provedl 50 přidání a 0 odebrání
  1. +7
    -0
      inputs
  2. +24
    -0
      tasks/fastqc.wdl
  3. +19
    -0
      workflow.wdl

+ 7
- 0
inputs Zobrazit soubor

@@ -0,0 +1,7 @@
{
"{{ project_name }}.cluster_config": "OnDemand bcs.a2.large img-ubuntu-vpc",
"{{ project_name }}.read1": "{{ read1 }}",
"{{ project_name }}.disk_size": "150",
"{{ project_name }}.read2": "{{ read2 }}",
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/fastqc:v0.11.5"
}

+ 24
- 0
tasks/fastqc.wdl Zobrazit soubor

@@ -0,0 +1,24 @@
task fastqc {
File read
String docker
String cluster_config
String disk_size

command <<<
set -o pipefail
set -e
nt=$(nproc)
fastqc -t $nt -o ./ ${read}
>>>

runtime {
docker:docker
cluster: cluster_config
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}
output {
File fastqc_html = sub(basename(read), "\\.(fastq|fq)\\.gz$", "_fastqc.html")
File fastqc_zip = sub(basename(read), "\\.(fastq|fq)\\.gz$", "_fastqc.zip")
}
}

+ 19
- 0
workflow.wdl Zobrazit soubor

@@ -0,0 +1,19 @@
import "./tasks/fastqc.wdl" as fastqc

workflow {{ project_name }}{
File read1
File read2
String docker
String cluster_config
String disk_size

scatter ( read in [read1, read2]) {
call fastqc.fastqc as fastqc {
input:
read=read,
docker=docker,
disk_size=disk_size,
cluster_config=cluster_config
}
}
}

Načítá se…
Zrušit
Uložit