mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
4ed5dc4593
* added module files * latest version * latest version * latest version * latest version * updated test, failing * added comment on why to use tail -n+3 * same as latest test * moved args to the end of script * updated test * double quotes for esearch input * removed tail -n+3, stderr is redirected by nextflow * changed single to double quotes * Update modules/entrezdirect/esearch/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esearch/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update meta.yml removed default from database parameter Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { ENTREZDIRECT_ESEARCH as ENTREZDIRECT_ESEARCHP } from "../../../../modules/entrezdirect/esearch/main.nf"
|
|
include { ENTREZDIRECT_ESEARCH } from "../../../../modules/entrezdirect/esearch/main.nf"
|
|
|
|
//
|
|
// Test with PubMed database, using date range and spell check,
|
|
// see nextflow.config file for optional definition(ext.args)
|
|
//
|
|
workflow test_entrezdirect_esearch_pubmed {
|
|
input = [
|
|
[ id:'test_pubmed' ], // meta map
|
|
term = "selective serotonin reuptake inhibitor"
|
|
]
|
|
database = "pubmed"
|
|
|
|
ENTREZDIRECT_ESEARCHP ( input, database )
|
|
}
|
|
|
|
//
|
|
// Test with Genome database and species; no date range, no spell check
|
|
//
|
|
workflow test_entrezdirect_esearch_genome {
|
|
input = [
|
|
[ id:'test_genome' ], // meta map,
|
|
term = "Danio+rerio"
|
|
]
|
|
database = "genome"
|
|
|
|
ENTREZDIRECT_ESEARCH ( input, database )
|
|
}
|
|
|
|
//
|
|
// Test with Assembly database and GenBank accession; no date range, no spell check
|
|
//
|
|
workflow test_entrezdirect_esearch_assembly {
|
|
input = [
|
|
[ id:'test_assembly' ], // meta map
|
|
term = "GCA_000001635.9"
|
|
]
|
|
database = "assembly"
|
|
|
|
ENTREZDIRECT_ESEARCH ( input, database )
|
|
}
|