mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 12:43:09 +00:00
9ae34a01d1
* Fix typo * Add stub runs for testing input without matched normals * Add missing -stub-run * remove empty file checksum tests and change workflow names * test controlfreec naming * fix output file names * fix output file names * fix output file names * fix conda and container path difference for R scripts * update tar version to work with conda * fix version number in docker * try to fix path to script, pretty sure it won't work * try new ways to set path with wildcard * try which * add which but with escape * remove comment
71 lines
2.8 KiB
Text
71 lines
2.8 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { CONTROLFREEC_FREEC } from '../../../../modules/controlfreec/freec/main.nf'
|
|
include { UNTAR } from '../../../../modules/untar/main.nf'
|
|
|
|
workflow test_controlfreec_freec {
|
|
|
|
input = [
|
|
[ id:'test', single_end:false, sex:'XX' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test_mpileup'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_mpileup'], checkIfExists: true),
|
|
[],[],[],[]
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_21_fasta'], checkIfExists: true)
|
|
fai = file(params.test_data['homo_sapiens']['genome']['genome_21_fasta_fai'], checkIfExists: true)
|
|
|
|
dbsnp = file(params.test_data['homo_sapiens']['genome']['dbsnp_138_hg38_21_vcf_gz'], checkIfExists: true)
|
|
dbsnp_tbi = file(params.test_data['homo_sapiens']['genome']['dbsnp_138_hg38_21_vcf_gz_tbi'], checkIfExists: true)
|
|
|
|
chrfiles = [ [], file(params.test_data['homo_sapiens']['genome']['genome_21_chromosomes_dir'], checkIfExists: true) ]
|
|
target_bed = file(params.test_data['homo_sapiens']['genome']['genome_21_multi_interval_bed'], checkIfExists: true)
|
|
|
|
UNTAR(chrfiles)
|
|
CONTROLFREEC_FREEC (input,
|
|
fasta,
|
|
fai,
|
|
[],
|
|
dbsnp,
|
|
dbsnp_tbi,
|
|
UNTAR.out.untar.map{ it[1] },
|
|
[],
|
|
target_bed,
|
|
[]
|
|
)
|
|
}
|
|
|
|
workflow test_controlfreec_freec_single {
|
|
|
|
input = [
|
|
[ id:'test2', single_end:false, sex:'XX' ], // meta map
|
|
[],
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_mpileup'], checkIfExists: true),
|
|
[],[],[],[]
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_21_fasta'], checkIfExists: true)
|
|
fai = file(params.test_data['homo_sapiens']['genome']['genome_21_fasta_fai'], checkIfExists: true)
|
|
|
|
dbsnp = file(params.test_data['homo_sapiens']['genome']['dbsnp_138_hg38_21_vcf_gz'], checkIfExists: true)
|
|
dbsnp_tbi = file(params.test_data['homo_sapiens']['genome']['dbsnp_138_hg38_21_vcf_gz_tbi'], checkIfExists: true)
|
|
|
|
chrfiles = [ [], file(params.test_data['homo_sapiens']['genome']['genome_21_chromosomes_dir'], checkIfExists: true) ]
|
|
target_bed = file(params.test_data['homo_sapiens']['genome']['genome_21_multi_interval_bed'], checkIfExists: true)
|
|
|
|
UNTAR(chrfiles)
|
|
CONTROLFREEC_FREEC (input,
|
|
fasta,
|
|
fai,
|
|
[],
|
|
dbsnp,
|
|
dbsnp_tbi,
|
|
UNTAR.out.untar.map{ it[1] },
|
|
[],
|
|
target_bed,
|
|
[]
|
|
)
|
|
}
|
|
|