2021-10-11 21:30:41 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { SRATOOLS_PREFETCH } from '../../../../modules/sratools/prefetch/main.nf'
|
2021-10-11 21:30:41 +00:00
|
|
|
|
2022-05-08 14:34:18 +00:00
|
|
|
workflow test_sratools_prefetch_with_settings_input {
|
|
|
|
|
|
|
|
file(params.settings_path).mkdirs()
|
|
|
|
def settings = file(params.settings_file)
|
|
|
|
settings.text = "/LIBS/GUID = \"5b0d4b7d-88c7-4802-98fd-e3afd06feb32\"\n/libs/cloud/report_instance_identity = \"true\"\n"
|
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test', single_end:false ], // meta map
|
|
|
|
'DRR000774'
|
|
|
|
]
|
|
|
|
|
|
|
|
SRATOOLS_PREFETCH(input, settings)
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_sratools_prefetch_without_settings_input {
|
|
|
|
|
|
|
|
file(params.settings_path).mkdirs()
|
|
|
|
def settings = file(params.settings_file)
|
|
|
|
settings.text = "/LIBS/GUID = \"5b0d4b7d-88c7-4802-98fd-e3afd06feb32\"\n/libs/cloud/report_instance_identity = \"true\"\n"
|
2021-10-11 21:30:41 +00:00
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test', single_end:false ], // meta map
|
2022-05-08 14:34:18 +00:00
|
|
|
'DRR000774'
|
2021-10-11 21:30:41 +00:00
|
|
|
]
|
|
|
|
|
2022-05-08 14:34:18 +00:00
|
|
|
SRATOOLS_PREFETCH(input, file('EXISTS'))
|
2021-10-11 21:30:41 +00:00
|
|
|
}
|
2022-05-08 14:34:18 +00:00
|
|
|
|