Procházet zdrojové kódy

mostly 3 fq to 1 fq

master
songyq před 4 roky
rodič
revize
a3ed8a71bc
4 změnil soubory, kde provedl 19 přidání a 11 odebrání
  1. +5
    -3
      README.md
  2. +3
    -1
      inputs
  3. +4
    -4
      tasks/mergefq.wdl
  4. +7
    -3
      workflow.wdl

+ 5
- 3
README.md Zobrazit soubor

@@ -1,6 +1,6 @@
> Author: Yueqiang Song
> Email: songyq_hello@163.com
> Last Updates: 25/12/2020
> Author: Yueqiang Song
> Email: songyq_hello@163.com
> Last Updates: 25/12/2020

#### Requirements

@@ -18,3 +18,5 @@ $ choppy apps
```
$ choppy batch songyueqiang/mergefq-latest sample.csv --project-name Your_project_name
```



+ 3
- 1
inputs Zobrazit soubor

@@ -1,5 +1,7 @@
{
"{{ project_name }}.fq_list": "{{ fq_list }}",
"{{ project_name }}.fq1": "{{ fq1 }}",
"{{ project_name }}.fq2": "{{ fq2 }}",
"{{ project_name }}.fq3": "{{ fq3 }}",
"{{ project_name }}.fq_m": "{{ fq_m }}",
"{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.cluster_config": "OnDemand bcs.a2.large img-ubuntu-vpc"

+ 4
- 4
tasks/mergefq.wdl Zobrazit soubor

@@ -1,14 +1,14 @@
task mergefq {
file fq_list
File fq1
File fq2
File fq3
String fq_m
String disk_size
String cluster_config

command <<<
set -euo pipefail
cat ${fq_list}|IFS=";" read -a myarray
cat ${myarray[@]} >${fq_m}
cat ${fq1} ${fq2} ${fq3} > ${fq_m}
>>>

runtime {

+ 7
- 3
workflow.wdl Zobrazit soubor

@@ -1,15 +1,19 @@
import "./tasks/mergefq.wdl" as mergefq

workflow {{ project_name }} {
File fq_list
File fq1
File fq2
File fq3
String fq_m
String disk_size
String cluster_config

call mergefq.mergefq as mergefq {
input:
fq_list=fq_list,
fq_m=fq_m,
fq1=fq1,
fq2=fq2,
fq3=fq3,
fq_m=fq_m
disk_size=disk_size,
cluster_config=cluster_config
}

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