Skip to content

Commit

Permalink
testing if it works with just fastq
Browse files Browse the repository at this point in the history
  • Loading branch information
afombravo committed Jan 19, 2025
1 parent 1f6b509 commit e32bbb0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
37 changes: 16 additions & 21 deletions modules/nf-core/fast2q/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ nextflow_process {

config './nextflow.config'

test("FASTQ file with optional library") {

test("Extracting all features at position=0 with default length of 20bp from a FASTQ file (without optional library.csv)") {
when {

params {
module_args = '-c'
module_args = '--mo EC'
}

process {
"""
input[0] = [
[ id:'test1', single_end:true ], // meta map
file(params.modules_testdata_base_path + '/example.fastq.gz', checkIfExists: true) // FASTQ file
file(params.modules_testdata_base_path + '/SRR8983579.small.fastq.gz', checkIfExists: true) // FASTQ file
]
input[1] = [
[ id:'test2', single_end:true ], // meta map for second input
file(params.modules_testdata_base_path + '/D39V_guides.csv', checkIfExists: true) // library file
[]
]
"""
}
Expand All @@ -42,19 +42,19 @@ nextflow_process {

}

test("Extracting all features at position=0 with default length of 20bp from a FASTQ file (without optional library.csv)") {
test("2FAST2Q self-test") {

when {

params {
module_args = '-c --mo EC'
}
module_args = '-t'
}

process {
"""
input[0] = [
[ id:'test1', single_end:true ], // meta map
file(params.modules_testdata_base_path + '/example.fastq.gz', checkIfExists: true) // FASTQ file
file(params.modules_testdata_base_path + '/SRR8983579.small.fastq.gz', checkIfExists: true) // FASTQ file
]
input[1] = [
[ id:'test2', single_end:true ], // meta map for second input
Expand All @@ -74,23 +74,19 @@ nextflow_process {

}

test("2FAST2Q self-test") {
/* test("FASTQ file with optional library") {
when {
params {
module_args = '-c -t'
}

process {
"""
input[0] = [
[ id:'test1', single_end:true ], // meta map
file(params.modules_testdata_base_path + '/example.fastq.gz', checkIfExists: true) // FASTQ file
file(params.modules_testdata_base_path + '/SRR8983579.small.fastq.gz', checkIfExists: true) // FASTQ file
]
input[1] = [
[ id:'test2', single_end:true ], // meta map for second input
[]
file(params.modules_testdata_base_path + '/D39V_guides.csv', checkIfExists: true) // library file
]
"""
}
Expand All @@ -103,7 +99,6 @@ nextflow_process {
{ assert path(process.out.versions).readLines().join("\n").contains("2FAST2Q version") } // Verify version output
)
}

}
} */

}
3 changes: 1 addition & 2 deletions modules/nf-core/fast2q/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
params {
//modules_testdata_base_path = "https://github.com/nf-core/test-datasets/tree/crisprseq/testdata"
modules_testdata_base_path = "https://github.com/afombravo/2FAST2Q/blob/main/"
modules_testdata_base_path = "https://github.com/nf-core/test-datasets/tree/crisprseq/testdata"
module_args = '' // Default to an empty string
}

Expand Down

0 comments on commit e32bbb0

Please sign in to comment.