Procházet zdrojové kódy

first commit

master
lizhihui před 6 roky
revize
493544b87e
4 změnil soubory, kde provedl 64 přidání a 0 odebrání
  1. +9
    -0
      inputs
  2. binární
      tasks/.DS_Store
  3. +27
    -0
      tasks/trimmomatic.wdl
  4. +28
    -0
      workflow.wdl

+ 9
- 0
inputs Zobrazit soubor

@@ -0,0 +1,9 @@
{
"{{ project_name }}.read1": "{{ read1 }}",
"{{ project_name }}.read2": "{{ read2 }}",
"{{ project_name }}.baseout": "{{ baseout }}",
"{{ project_name }}.adapter": "oss://pgx-reference-data/reference/illumina_adapter/",
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/trimmomatic:v0.38",
"{{ project_name }}.cluster": "OnDemand bcs.a2.xlarge img-ubuntu-vpc",
"{{ project_name }}.disk_size": "{{ disk_size }}"
}

binární
tasks/.DS_Store Zobrazit soubor


+ 27
- 0
tasks/trimmomatic.wdl Zobrazit soubor

@@ -0,0 +1,27 @@
task trimmomatic {
File read1
File read2
File adapter
String baseout
String baseout_gz = baseout + ".fq.gz"
String docker
String cluster
String disk_size

command <<<
nt=$(nproc)
/opt/conda/bin/trimmomatic PE -threads $nt -phred33 ${read1} ${read2} -baseout ${baseout_gz} ILLUMINACLIP:${adapter}:2:30:10:1:true HEADCROP:10 LEADING:10 TRAILING:10 SLIDINGWINDOW:4:15 MINLEN:36
>>>

runtime {
docker: docker
cluster: cluster
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}

output {
File read_1p = baseout + "_1P.fq.gz"
File read_2p = baseout + "_2P.fq.gz"
}
}

+ 28
- 0
workflow.wdl Zobrazit soubor

@@ -0,0 +1,28 @@
import "./tasks/trimmomatic.wdl" as trimmomatic

workflow {{ project_name }} {

File read1
File read2
File adapter
String baseout
String docker
String cluster
String disk_size
call trimmomatic.trimmomatic as trimmomatic {
input:
read1=read1,
read2=read2,
adapter= adapter,
baseout=baseout,
docker=docker,
cluster=cluster,
disk_size=disk_size
}
}




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