nf-core_modules/tests/modules/vcf2maf/main.nf
Adam Talbot f19ec865aa
vcf2maf module with built in VEP (#1768)
vcf2maf module created

Additions:
 - vcf2maf module created
 - If VEP is present in PATH, it is added to command
 - If VEP is missing, it is ignored (recommended to skip with --inhibit-vep)
 - VEP version automatically added to versions.yml
 - Uses VEP cache during testing which is added to test-datasets in https://github.com/nf-core/test-datasets/pull/563
 - Default Docker image includes VEP and vcf2maf
 - Test includes without VEP.

Relates to #490
2022-06-20 18:27:12 +02:00

30 lines
1,006 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { VCF2MAF } from '../../../modules/vcf2maf/main.nf'
include { UNTAR } from '../../../modules/untar/main.nf'
workflow test_vcf2maf_no_vep {
input_vcf = [
[ id:'test' ],
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf'], checkIfExists: true)
]
fasta = [ file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true) ]
VCF2MAF ( input_vcf, fasta, [] )
}
workflow test_vcf2maf_vep {
input_vcf = [
[ id:'test' ],
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf'], checkIfExists: true)
]
fasta = [ file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true) ]
vep_cache = [ [ id:'test' ], file(params.test_data['homo_sapiens']['genome']['vep_cache'], checkIfExists: true) ]
vep_cache_unpacked = UNTAR(vep_cache).untar.map { it[1] }
VCF2MAF ( input_vcf, fasta, vep_cache_unpacked)
}