mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-26 23:43:19 -05:00
ad426cb18c
* first commit: module files * last version main.nf * modules/entrezdirect/xtract/meta.yml * updated file * updated test * Update modules/entrezdirect/xtract/main.nf changed name of output file Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/entrezdirect/xtract/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update tests/modules/entrezdirect/xtract/main.nf Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> * Update tests/modules/entrezdirect/xtract/main.nf Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> * updated test, removed esummary input file Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk>
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { ENTREZDIRECT_ESUMMARY } from '../../../../modules/entrezdirect/esummary/main.nf'
|
|
include { ENTREZDIRECT_XTRACT } from '../../../../modules/entrezdirect/xtract/main.nf'
|
|
|
|
//
|
|
// Test with Assembly database
|
|
//
|
|
workflow test_entrezdirect_xtract_assembly {
|
|
|
|
input = [
|
|
[ id:'test_assembly' ], // meta map
|
|
uid = '191021',
|
|
[]
|
|
]
|
|
database = 'assembly'
|
|
|
|
pattern_in = 'DocumentSummary'
|
|
element_in = 'SpeciesName BioprojectAccn FtpPath_GenBank'
|
|
delim = ","
|
|
|
|
ENTREZDIRECT_ESUMMARY ( input, database )
|
|
ENTREZDIRECT_XTRACT ( ENTREZDIRECT_ESUMMARY.out.xml, pattern_in, element_in, delim )
|
|
}
|
|
|
|
//
|
|
// Test with Genome database
|
|
//
|
|
workflow test_entrezdirect_xtract_genome {
|
|
|
|
input = [
|
|
[ id:'test_genome' ], // meta map
|
|
uid = '768',
|
|
[]
|
|
]
|
|
database = 'genome'
|
|
|
|
pattern_in = 'DocumentSummary'
|
|
element_in = 'TaxId Organism_Name Project_Accession Assembly_Accession'
|
|
delim = ","
|
|
|
|
ENTREZDIRECT_ESUMMARY ( input, database )
|
|
ENTREZDIRECT_XTRACT ( ENTREZDIRECT_ESUMMARY.out.xml, pattern_in, element_in, delim )
|
|
}
|