nf-core_modules/tests/modules/entrezdirect/esummary/main.nf

51 lines
891 B
Text
Raw Normal View History

Add ENTREZDIRECT/ESUMMARY (#1833) * first commit * entrezdirect/esummary fixed version definition * resolved suggestion * updated main.nf * changed output definition * output: XML file * output definition: XML file * updated XML format in tests * updated test file * version: esummary instead of entrezdirect * output file pattern: *.esummary.xml * updated test file * updated versions * restored versions stdout * updated test file * changed xml_esummary pattern * changed entrezdirect to esummary version * updated test file * Update modules/entrezdirect/esummary/meta.yml changed output file pattern: "*.xml" Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esummary/meta.yml updated keywords Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esummary/main.nf Output file pattern: *.xml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esummary/main.nf Output file pattern: *.xml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esummary/main.nf database as separate input channel Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * removed blank spaces in input definition * database as separate channel * conditional script for stdin * updated input definition * entrez-direct version:16.2_1 * all input channels are separate * ignore stderr, catch xml stdout * removed blank lines * added ids file input * updated test * conditional script for input * removed bad definition of input file * updated test file * Update modules/entrezdirect/esummary/main.nf changed input definition: ui, uids_file Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esummary/meta.yml added uids_file description Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/esummary/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * input: uid or uids_file * updated input * added uids_file to input * input file as optional input * input file as optional input in each test * new conditional script * unpdated test file * single input definition * added error messages * updated test * removed cat from command output * Update modules/entrezdirect/esummary/main.nf added comment on use of grep in output Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * added comment * removed blank spaces * input file: empty list * input file: empty list * removed comment at wrong position * optional file defined as empty list * updated successful test * Apply suggestions from code review Accepted suggestions. Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> * Update modules/entrezdirect/esummary/main.nf Fixed comment. Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> * Update modules/entrezdirect/esummary/main.nf Updated grep in output file. Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> * added tail -n+3 before output * updated successful test Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk>
2022-07-13 17:26:58 +00:00
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { ENTREZDIRECT_ESUMMARY } from '../../../../modules/entrezdirect/esummary/main.nf'
//
// Test with SRA database
//
workflow test_entrezdirect_esummary_sra {
input = [
[ id:'test_sra' ], // meta map
uid = '5135484',
[]
]
database = 'sra'
ENTREZDIRECT_ESUMMARY ( input, database )
}
//
// Test with Genome database
//
workflow test_entrezdirect_esummary_genome {
input = [
[ id:'test_genome' ], // meta map
uid = '768',
[]
]
database = 'genome'
ENTREZDIRECT_ESUMMARY ( input, database )
}
//
// Test with Assembly database
//
workflow test_entrezdirect_esummary_assembly {
input = [
[ id:'test_assembly' ], // meta map
uid = '191021',
[]
]
database = 'assembly'
ENTREZDIRECT_ESUMMARY ( input, database )
}