Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow examples #55

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading