mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 11:38:17 +00:00
c5634ba99b
* initial commit [ci skip] * add stubs [ci skip] * Finalize the bcftools/view module * accomodate optional files * add optional region file * refer the targets file in the tests * all tests passing * documen the optional parameters
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { BCFTOOLS_VIEW } from '../../../../modules/bcftools/view/main.nf' addParams( options: ['args': '--no-version'] )
|
|
|
|
workflow test_bcftools_view {
|
|
|
|
regions = []
|
|
targets = []
|
|
samples = []
|
|
|
|
input = [[ id:'out', single_end:false ], // meta map
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)]
|
|
|
|
BCFTOOLS_VIEW ( input, regions, targets, samples )
|
|
}
|
|
|
|
workflow test_bcftools_view_with_optional_files {
|
|
|
|
regions = file(params.test_data['sarscov2']['illumina']['test3_vcf_gz'], checkIfExists: true)
|
|
targets = file(params.test_data['sarscov2']['illumina']['test2_vcf_targets_tsv_gz'], checkIfExists: true)
|
|
samples = []
|
|
|
|
input = [[ id:'out', single_end:false ], // meta map
|
|
file(params.test_data['sarscov2']['illumina']['test2_vcf_gz'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['illumina']['test2_vcf_gz_tbi'], checkIfExists: true)]
|
|
|
|
BCFTOOLS_VIEW ( input, regions, targets, samples )
|
|
}
|