mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
3868c3ab4b
* initial commit [ci skip] * reuse the modules code from nf-core/mag [ci skip] * add contextual information for the module [ci skip] * add stubs to avoid downloading db [ci skip] * trigger test * iterate on tests [ci skip] * itereate tests [ci skip] * add bins [ci skip] * fix stubs [ci skip] * interation on tests with stubs [ci skip] * use the existing pattern and fasta for input * accomodate the new version file format * use variable for the stub [ci skip] * update the versions file in meta.yml * Accomodate code review regarding publishDir function [ci skip] Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * remove extra newline * use bioconda channel * update the description for filtered file * Apply suggestions from code review * Update main.nf * Update main.nf * Update modules/gtdbtk/classifywf/meta.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> Co-authored-by: Robert A. Petit III <robbie.petit@gmail.com> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
32 lines
887 B
Text
32 lines
887 B
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { GTDBTK_CLASSIFYWF } from '../../../../modules/gtdbtk/classifywf/main.nf' addParams( options: [:] )
|
|
|
|
process STUB_GTDBTK_DATABASE {
|
|
output:
|
|
tuple val("gtdbtk_r202_data"), path("database/*"), emit: database
|
|
|
|
stub:
|
|
"""
|
|
mkdir database
|
|
touch database/gtdbtk_r202_data
|
|
"""
|
|
}
|
|
|
|
workflow test_gtdbtk_classifywf {
|
|
|
|
STUB_GTDBTK_DATABASE()
|
|
|
|
input = [
|
|
[ id:'test', single_end:false, assembler:'SPADES' ],
|
|
[
|
|
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['illumina']['contigs_fasta'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['illumina']['scaffolds_fasta'], checkIfExists: true)
|
|
]
|
|
]
|
|
|
|
GTDBTK_CLASSIFYWF ( input, STUB_GTDBTK_DATABASE.out.database )
|
|
}
|