Browse Source

revised input

master
junshang 3 years ago
parent
commit
b36a9bb66c
5 changed files with 20 additions and 7 deletions
  1. +7
    -2
      README.md
  2. +1
    -1
      inputs
  3. +8
    -0
      samples.json
  4. +2
    -2
      tasks/catreads.wdl
  5. +2
    -2
      workflow.wdl

+ 7
- 2
README.md View File

@@ -8,9 +8,14 @@
- Ali-Cloud

```
$ source activate choppy
# Activate choppy environment
$ open-choppy-env

# Install app
$ choppy install junshang/catreads
$ choppy apps

# Create input file `samples.json`
touch samples.json
```

#### quick start

+ 1
- 1
inputs View File

@@ -1,5 +1,5 @@
{
"{{ project_name }}.fq": "{{ fq | tojson }}",
"{{ project_name }}.fqs": "{{ fqs | tojson }}",
"{{ project_name }}.sample_name": "{{ sample_name }}",
"{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.cluster_config": "OnDemand bcs.a2.large img-ubuntu-vpc"

+ 8
- 0
samples.json View File

@@ -0,0 +1,8 @@
{
"fqs":[
"oss://choppy-app-example-data/RNAseq/fastq_1m_reads/tumor_1M_1_R1.fq.gz",
"oss://choppy-app-example-data/RNAseq/test_fq/test_R1.fq.gz"
],
"sample_name": "test_1.fq.gz",
"sample_id": "test_1"
}

+ 2
- 2
tasks/catreads.wdl View File

@@ -1,5 +1,5 @@
task catreads {
Array[File] fq
Array[File] fqs
String sample_name
String disk_size
String cluster_config
@@ -8,7 +8,7 @@ task catreads {
set -o pipefail
set -e

cat ${sep=" " fq} > ${sample_name}
cat ${sep=" " fqs} > ${sample_name}
>>>

runtime {

+ 2
- 2
workflow.wdl View File

@@ -3,12 +3,12 @@ import "./tasks/catreads.wdl" as catreads
workflow {{ project_name }} {
String disk_size
String cluster_config
Array[File] fq
Array[File] fqs
String sample_name

call catreads.catreads as catreads {
input:
fq=fq,
fqs=fqs,
sample_name=sample_name,
disk_size=disk_size,
cluster_config=cluster_config

Loading…
Cancel
Save