papermill icon indicating copy to clipboard operation
papermill copied to clipboard

nextflow passing variables

Open hmassalha opened this issue 2 years ago • 0 comments

Hi all,

I just started to use nextflow and I would like to pass variables from the terminal to my notebook. I used the following command:

papermill input.ipynb output.ipynb \
            -p string_1 !{s1} \
            -p string_2 !{s2}"

and I get the following in the output file (the !{var} is equal to ${var} [this is how nextflow bind variables]):

print(string_1)
!{s1}
print(string_2)
!{s2}

any idea how I can get the content of the variables passed to my notebook? Thanks

hmassalha avatar Mar 21 '22 10:03 hmassalha