nf-core_modules/tests/modules/goat/taxonsearch/main.nf
Alexander Ramos Díaz 37c6d4a1a1
Add module: goat/taxonsearch (#1866)
* first commit

* single taxon input

* added .tsv output

* input: single taxon or file with taxon identifiers

* updated input and output

* removed wrong tool description

* added tests

* ext.args = '-l -b'

* fixed wrong input names

* updated test file

* Update modules/goat/taxonsearch/main.nf

simple version output

Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk>

* removed 'NO_FILE' from input definition

* added ! in if statement

* optional input: empty list

* successful updated test

* added test with file

* remove blank spaces in include {}

* added test with taxa file

Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk>
2022-08-18 08:34:58 -06:00

44 lines
938 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { GOAT_TAXONSEARCH } from '../../../../modules/goat/taxonsearch/main.nf'
//
// Test with genus name (Canis)
//
workflow test_goat_taxonsearch_genus_name {
input = [
[ id:'test_genus_name' ], // meta map
taxon = 'Canis',
[]
]
GOAT_TAXONSEARCH ( input )
}
//
// Test with genus (Drosophila, fruit flies) using NCBI taxonomy ID
//
workflow test_goat_taxonsearch_genus_id {
input = [
[ id:'test_genus_id' ], // meta map
taxon = '7215',
[]
]
GOAT_TAXONSEARCH ( input )
}
//
// Test with multiple species from a taxa file
//
workflow test_goat_taxonsearch_species {
input = [
[ id:'test_species' ], // meta map
taxon = '',
file('https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/goat_taxonsearch/taxonomy_ids.txt', checkIfExists: true)
]
GOAT_TAXONSEARCH ( input )
}