Skip to content

Commit

Permalink
Reduce storage used by tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonJM committed Feb 16, 2024
1 parent 147b318 commit 7218318
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 63 deletions.
22 changes: 12 additions & 10 deletions tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ nextflow_pipeline {
test("Parameters: default") {
when {
params {
outdir = "$outputDir"
mash_screen_min_score = 0.5
genomad_min_score = 0.01
genomad_max_fdr = 1
genomad_disable_nn = true
genomad_sensitivity = 0.1
checkv_minimal_db = true
iphop_partial_test = true
max_cpus = 4
max_memory = '15.GB'
outdir = "$outputDir"
mash_screen_min_score = 1
mash_screen_winner_take_all = true
genomad_min_score = 0.01
genomad_max_fdr = 1
genomad_disable_nn = true
genomad_sensitivity = 0.1
checkv_minimal_db = true
checkv_min_length = 3000
iphop_partial_test = true
max_cpus = 4
max_memory = '15.GB'
}
}

Expand Down
46 changes: 23 additions & 23 deletions tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions workflows/phageannotator/tests/skip_genomad.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,26 @@ nextflow_workflow {
"""
}
params {
outdir = "$outputDir"
skip_genomad = true
mash_screen_min_score = 0.5
genomad_min_score = 0.01
genomad_max_fdr = 1
genomad_disable_nn = true
genomad_sensitivity = 0.1
checkv_minimal_db = true
iphop_partial_test = true
outdir = "$outputDir"
skip_genomad = true
mash_screen_min_score = 1
mash_screen_winner_take_all = true
genomad_min_score = 0.01
genomad_max_fdr = 1
genomad_disable_nn = true
genomad_sensitivity = 0.1
checkv_minimal_db = true
checkv_min_length = 25000
iphop_partial_test = true
}
}

then {
assertAll(
{ assert workflow.success },
{ assert snapshot(workflow.out).match() },
{ assert path("${outputDir}/VirusLifestyle/bacphlip/all_samples_anicluster_representatives.fna.bacphlip").readLines().size() == 156 },
{ assert path("${outputDir}/VirusAbundance/coverm/contig/all_samples_alignment_results.tsv").readLines().size() == 156 }
{ assert path("${outputDir}/VirusLifestyle/bacphlip/all_samples_anicluster_representatives.fna.bacphlip").readLines().size() == 9 },
{ assert path("${outputDir}/VirusAbundance/coverm/contig/all_samples_alignment_results.tsv").readLines().size() == 9 }
)
}
}
Expand Down
38 changes: 19 additions & 19 deletions workflows/phageannotator/tests/skip_genomad.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7218318

Please sign in to comment.