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

Correct hangover from before we added all the script: #467

Merged
merged 1 commit into from
Nov 19, 2024
Merged
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
5 changes: 3 additions & 2 deletions docs/hello_nextflow/05_hello_operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,14 +582,15 @@ That is because Nextflow must see them as file paths in order to stage the files

But _where_ in the process can we add this?

Fun fact, if you add the optional reserved keyword `script:` before the `"""` that starts the bash scripting block, you can add arbitrary code in there!
Fun fact: you can add arbitrary code after `script:` and before the `"""` !

Great, let's add the `script:` keyword and string manipulation line there then, and update the `gatk GenomicsDBImport` command to use the concatenated string it produces.
Great, let's add our string manipulation line there then, and update the `gatk GenomicsDBImport` command to use the concatenated string it produces.

_Before:_

```groovy title="hello-operators.nf" linenums="87"
"""
script:
Comment on lines 592 to +593
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be above the triple quotes?

gatk GenomicsDBImport \
-V ${all_gvcfs} \
-L ${interval_list} \
Expand Down
Loading