Steven Sutcliffe
11/07/2024, 8:49 PMCommand error:
This sra toolkit installation has not been configured.
Before continuing, please run: vdb-config --interactive
For more information, see <https://www.ncbi.nlm.nih.gov/sra/docs/sra-cloud/>
With a nf-test module test
nextflow_process {
name "Test Process SRATOOLS_FASTERQDUMP"
script "modules/local/sratools/fasterqdump/main.nf"
process "SRATOOLS_FASTERQDUMP"
tag "modules"
tag "modules_nfcore"
tag "sratools/fasterqdump"
test("Test fasterqdump ERR1109373") {
when {
process {
"""
input[0] = Channel.of([ [irida_id: "SAMPLE1"], file("$baseDir/tests/data/ERR1109373.sra", checkIfExists: true) ])
input[1] = []
input[2] = []
"""
}
params {
outdir = "fasterqdump_test1_out"
}
}
then {
assert process.success
assert snapshot(process.out).match()
}
}
}Maxime Garcia
11/11/2024, 5:34 PMMaxime Garcia
11/11/2024, 5:34 PMMaxime Garcia
11/11/2024, 5:35 PMSteven Sutcliffe
11/11/2024, 6:23 PMMaxime Garcia
11/12/2024, 8:45 AMSteven Sutcliffe
11/12/2024, 4:58 PMSteven Sutcliffe
11/12/2024, 5:00 PMncbi_user_settings.mkfg file like you suggested and added it into the test via the input[1].
nextflow_process {
name "Test Process SRATOOLS_FASTERQDUMP"
script "modules/local/sratools/fasterqdump/main.nf"
process "SRATOOLS_FASTERQDUMP"
tag "modules"
tag "modules_nfcore"
tag "sratools/fasterqdump"
test("Test fasterqdump ERR1109373") {
when {
process {
"""
input[0] = Channel.of([ [irida_id: "SAMPLE1"], file("$baseDir/tests/data/ERR1109373.sra", checkIfExists: true) ])
input[1] = file('$baseDir/tests/data/ncbi_user_settings.mkfg', checkIfExists: true)
input[2] = []
"""
}
params {
outdir = "fasterqdump_test1_out"
}
}
then {
assert process.success
assert snapshot(process.out).match()
}
}
}Maxime Garcia
11/13/2024, 9:01 AM