Skip to content

Commit

Permalink
Now using a minimal bioconda recipe for ltr_finder_parallel (nf-core#…
Browse files Browse the repository at this point in the history
…4931)

* Now using a minimal bioconda recipe for ltr_finder_parallel

* Added missing tag
  • Loading branch information
GallVp authored Feb 16, 2024
1 parent 9ac53f7 commit 85b12bc
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 39 deletions.
2 changes: 1 addition & 1 deletion modules/nf-core/ltrfinder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ channels:
- bioconda
- defaults
dependencies:
- "bioconda::edta=2.2.0"
- "bioconda::ltr_finder_parallel=1.1"
4 changes: 2 additions & 2 deletions modules/nf-core/ltrfinder/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process LTRFINDER {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/edta:2.2.0--hdfd78af_1':
'biocontainers/edta:2.2.0--hdfd78af_1' }"
'https://depot.galaxyproject.org/singularity/ltr_finder_parallel:1.1--hdfd78af_0':
'biocontainers/ltr_finder_parallel:1.1--hdfd78af_0' }"

input:
tuple val(meta), path(fasta)
Expand Down
29 changes: 21 additions & 8 deletions modules/nf-core/ltrfinder/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,29 @@ nextflow_process {
tag "modules"
tag "modules_nfcore"
tag "ltrfinder"
tag "gunzip/main"

test("homo_sapiens-genome_fasta-success") {
test("actinidia_chinensis-genome_21_fasta_gz-success") {

setup {
run('GUNZIP') {
script "../../gunzip/main"

process {
"""
input[0] = [
[ id:'test' ], // meta map
file(params.test_data['actinidia_chinensis']['genome']['genome_21_fasta_gz'], checkIfExists: true)
]
"""
}
}
}

when {
process {
"""
input[0] = [
[ id:'test' ], // meta map
file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
]
input[0] = GUNZIP.out.gunzip
"""
}
}
Expand All @@ -25,7 +38,7 @@ nextflow_process {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() },
{ assert snapshot(process.out.versions).match("versions") }
{ assert snapshot(path(process.out.versions[0]).text).match("versions") }
)
}

Expand All @@ -40,7 +53,7 @@ nextflow_process {
"""
input[0] = [
[ id:'test' ], // meta map
file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
file(params.test_data['actinidia_chinensis']['genome']['genome_21_fasta_gz'], checkIfExists: true)
]
"""
}
Expand All @@ -50,7 +63,7 @@ nextflow_process {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() },
{ assert snapshot(process.out.versions).match("versions") }
{ assert snapshot(path(process.out.versions[0]).text).match("stub_versions") }
)
}

Expand Down
68 changes: 44 additions & 24 deletions modules/nf-core/ltrfinder/tests/main.nf.test.snap

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

13 changes: 9 additions & 4 deletions tests/config/test_data.config
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,15 @@ params {
}
'saccharomyces_cerevisiae' {
'genome' {
samplesheet = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/samplesheet.csv"
genome_gfp_gtf = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/genome_gfp.gtf"
kallisto_results = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/kallisto_results.tar.gz"
salmon_results = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/salmon_results.tar.gz"
samplesheet = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/samplesheet.csv"
genome_gfp_gtf = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/genome_gfp.gtf"
kallisto_results = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/kallisto_results.tar.gz"
salmon_results = "${params.test_data_base}/data/genomics/eukaryotes/saccharomyces_cerevisiae/salmon_results.tar.gz"
}
}
'actinidia_chinensis' {
'genome' {
genome_21_fasta_gz = "${params.test_data_base}/data/genomics/eukaryotes/actinidia_chinensis/genome/chr1/genome.fasta.gz"
}
}
'generic' {
Expand Down

0 comments on commit 85b12bc

Please sign in to comment.