2021-10-24 18:51:56 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { JUPYTERNOTEBOOK } from '../../../modules/jupyternotebook/main.nf'
|
|
|
|
include { JUPYTERNOTEBOOK as JUPYTERNOTEBOOK_PARAMETRIZE } from '../../../modules/jupyternotebook/main.nf'
|
|
|
|
include { JUPYTERNOTEBOOK as JUPYTERNOTEBOOK_PARAMETRIZE_IPYNB } from '../../../modules/jupyternotebook/main.nf'
|
2021-10-24 18:51:56 +00:00
|
|
|
|
|
|
|
workflow test_jupyternotebook {
|
|
|
|
|
|
|
|
input = [ [ id:'test_jupyter' ], // meta map
|
|
|
|
file(params.test_data['generic']['notebooks']['ipython_md'], checkIfExists: true) ]
|
|
|
|
|
|
|
|
JUPYTERNOTEBOOK ( input, [:], [])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_jupyternotebook_parametrize {
|
|
|
|
|
|
|
|
input = [ [ id:'test_jupyter' ], // meta map
|
|
|
|
file(params.test_data['generic']['notebooks']['ipython_md'], checkIfExists: true) ]
|
|
|
|
|
|
|
|
JUPYTERNOTEBOOK_PARAMETRIZE(
|
|
|
|
input,
|
|
|
|
[input_filename: "hello.txt", n_iter: 12],
|
|
|
|
file(params.test_data['generic']['txt']['hello'], checkIfExists: true)
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_jupyternotebook_parametrize_ipynb {
|
|
|
|
|
|
|
|
input = [ [ id:'test_jupyter' ], // meta map
|
|
|
|
file(params.test_data['generic']['notebooks']['ipython_ipynb'], checkIfExists: true) ]
|
|
|
|
|
|
|
|
JUPYTERNOTEBOOK_PARAMETRIZE_IPYNB(
|
|
|
|
input,
|
|
|
|
[input_filename: "hello.txt", n_iter: 12],
|
|
|
|
file(params.test_data['generic']['txt']['hello'], checkIfExists: true)
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|