mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
f19ec865aa
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
30 lines
1,006 B
Text
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)
|
|
}
|