mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 04:33:10 +00:00
34 lines
910 B
Text
34 lines
910 B
Text
|
#!/usr/bin/env nextflow
|
||
|
|
||
|
nextflow.enable.dsl = 2
|
||
|
|
||
|
include { RMARKDOWNNOTEBOOK } from '../../../modules/rmarkdownnotebook/main.nf' addParams(
|
||
|
parametrize: false, options: [:]
|
||
|
)
|
||
|
include { RMARKDOWNNOTEBOOK as RMARKDOWNNOTEBOOK_PARAMETRIZE } from '../../../modules/rmarkdownnotebook/main.nf' addParams(
|
||
|
options: [:]
|
||
|
)
|
||
|
|
||
|
workflow test_rmarkdown {
|
||
|
|
||
|
input = [ [ id:'test_rmd' ], // meta map
|
||
|
file(params.test_data['generic']['notebooks']['rmarkdown'], checkIfExists: true) ]
|
||
|
|
||
|
RMARKDOWNNOTEBOOK ( input, [:], [])
|
||
|
|
||
|
}
|
||
|
|
||
|
workflow test_rmarkdown_parametrize {
|
||
|
|
||
|
input = [ [ id:'test_rmd' ], // meta map
|
||
|
file(params.test_data['generic']['notebooks']['rmarkdown'], checkIfExists: true) ]
|
||
|
|
||
|
RMARKDOWNNOTEBOOK_PARAMETRIZE(
|
||
|
input,
|
||
|
[input_filename: "hello.txt", n_iter: 12],
|
||
|
file(params.test_data['generic']['txt']['hello'], checkIfExists: true)
|
||
|
)
|
||
|
|
||
|
}
|
||
|
|