mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-25 12:08:16 +00:00
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
|
#!/usr/bin/env nextflow
|
||
|
|
||
|
nextflow.enable.dsl = 2
|
||
|
|
||
|
include { JUPYTERNOTEBOOK } from '../../../modules/jupyternotebook/main.nf' addParams(
|
||
|
parametrize: false, options: [:]
|
||
|
)
|
||
|
include { JUPYTERNOTEBOOK as JUPYTERNOTEBOOK_PARAMETRIZE } from '../../../modules/jupyternotebook/main.nf' addParams(
|
||
|
options: [:]
|
||
|
)
|
||
|
include { JUPYTERNOTEBOOK as JUPYTERNOTEBOOK_PARAMETRIZE_IPYNB } from '../../../modules/jupyternotebook/main.nf' addParams(
|
||
|
options: [:]
|
||
|
)
|
||
|
|
||
|
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)
|
||
|
)
|
||
|
|
||
|
}
|
||
|
|