Skip to content

Commit

Permalink
cloudgene yalm and workflow file, no nf settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tuzov committed Nov 2, 2022
1 parent d5cc0c9 commit 0325341
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cloudgene.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id: nf-helloworld
name: nf-helloworld
version: 0.1
description: A nextflow test hello world workflow
author: Vlad Tuzov
website: https://github.com/tuzov/nf-cg-helloworld

workflow:

steps:
- name: Running nf-helloworld
type: nextflow
script: main.nf
params.project: ${job_id}

inputs:

- id: inputstring
description: Input String
details: Enter at least two words
type: text
required: true

outputs:

- id: outdir
description: Hello-nf results
type: local_folder
25 changes: 25 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
params.str = 'Hello world!'

process splitLetters {
output:
path 'chunk_*'

"""
printf '${params.str}' | split -b 6 - chunk_
"""
}

process convertToUpper {
input:
path x
output:
stdout

"""
cat $x | tr '[a-z]' '[A-Z]'
"""
}

workflow {
splitLetters | flatten | convertToUpper | view { it.trim() }
}
Empty file added nextflow.config
Empty file.

0 comments on commit 0325341

Please sign in to comment.