Skip to content

Commit

Permalink
Add workflow examples
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
espenhgn committed Oct 7, 2024
1 parent 2980229 commit c36cc86
Show file tree
Hide file tree
Showing 8 changed files with 618 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,23 @@ _build

# VSCode
.vscode

# Cromwell
cromwell-executions
cromwell-workflow-logs

# miniwdl
*_*_hello_world
_LAST

# nextflow
work
.nextflow
.nextflow.log*

# Snakemake
.snakemake
*.snakemake.log

# workflows
hello_world.txt
25 changes: 25 additions & 0 deletions nextflow/main.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env nextflow
params.input_file = '../scripts/hello_world.py'
params.outdir = '.'

process HelloWorld {
publishDir "$params.outdir"

container 'ghcr.io/precimed/container_template'

input:
path input_file

output:
path "hello_world.txt"

script:
"""
python3 ${input_file} > hello_world.txt
"""
}

// Define workflow
workflow {
HelloWorld(file(params.input_file))
}
Loading

0 comments on commit c36cc86

Please sign in to comment.