Skip to content

Commit

Permalink
Updated test data paths for busco/busco (#6042)
Browse files Browse the repository at this point in the history
* Updated test data paths for busco/busco

* Removed comma
  • Loading branch information
GallVp authored Jul 27, 2024
1 parent 0cb4fd4 commit 6258d8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
20 changes: 8 additions & 12 deletions modules/nf-core/busco/busco/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file( params.test_data['bacteroides_fragilis']['genome']['genome_fna_gz'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz', checkIfExists: true)
]
input[1] = 'genome'
input[2] = 'bacteria_odb10' // Launch with 'auto' to use --auto-lineage, and specified lineages // 'auto' removed from test due to memory issues
Expand Down Expand Up @@ -80,8 +80,8 @@ nextflow_process {
input[0] = [
[ id:'test' ], // meta map
[
file( params.test_data['bacteroides_fragilis']['genome']['genome_fna_gz'], checkIfExists: true),
file( params.test_data['candidatus_portiera_aleyrodidarum']['genome']['genome_fasta'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/prokaryotes/candidatus_portiera_aleyrodidarum/genome/genome.fasta', checkIfExists: true)
]
]
input[1] = 'genome'
Expand Down Expand Up @@ -165,7 +165,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file( params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true)
]
input[1] = 'genome'
input[2] = 'eukaryota_odb10'
Expand Down Expand Up @@ -208,8 +208,6 @@ nextflow_process {

with(path("${process.out.busco_dir[0][1]}/logs/busco.log").text) {
assert contains('DEBUG:busco.run_BUSCO')
assert contains("'use_augustus', 'False'")
assert contains("'use_metaeuk', 'True'") // METAEUK
assert contains('Results from dataset')
assert contains('how to cite BUSCO')

Expand All @@ -230,7 +228,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file( params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true)
]
input[1] = 'genome'
input[2] = 'eukaryota_odb10'
Expand All @@ -250,8 +248,6 @@ nextflow_process {

with(path("${process.out.busco_dir[0][1]}/logs/busco.log").text) {
assert contains('DEBUG:busco.run_BUSCO')
assert contains("'use_augustus', 'True'")
assert contains("'use_metaeuk', 'False'") // AUGUSTUS
assert contains('Augustus did not recognize any genes')

}
Expand All @@ -275,7 +271,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file( params.test_data['candidatus_portiera_aleyrodidarum']['genome']['proteome_fasta'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/prokaryotes/candidatus_portiera_aleyrodidarum/genome/proteome.fasta', checkIfExists: true)
]
input[1] = 'proteins'
input[2] = 'bacteria_odb10'
Expand Down Expand Up @@ -337,7 +333,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file( params.test_data['bacteroides_fragilis']['illumina']['test1_contigs_fa_gz'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/illumina/fasta/test1.contigs.fa.gz', checkIfExists: true)
]
input[1] = 'transcriptome'
input[2] = 'bacteria_odb10'
Expand Down Expand Up @@ -398,7 +394,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file( params.test_data['bacteroides_fragilis']['genome']['genome_fna_gz'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz', checkIfExists: true)
]
input[1] = 'genome'
input[2] = 'bacteria_odb10'
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/busco/generateplot/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file(params.test_data['bacteroides_fragilis']['genome']['genome_fna_gz'], checkIfExists: true)
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz', checkIfExists: true)
]
input[1] = 'genome'
input[2] = 'bacteria_odb10'
Expand Down Expand Up @@ -55,7 +55,7 @@ nextflow_process {
when {
process {
"""
input[0] = file(params.test_data['bacteroides_fragilis']['genome']['genome_fna_gz'], checkIfExists: true)
input[0] = file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz', checkIfExists: true)
"""
}
}
Expand Down

0 comments on commit 6258d8b

Please sign in to comment.