2021-07-20 20:50:22 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { HIFIASM } from '../../../modules/hifiasm/main.nf'
|
2021-07-20 20:50:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with long reads only
|
|
|
|
*/
|
|
|
|
workflow test_hifiasm_hifi_only {
|
|
|
|
input = [
|
|
|
|
[ id:'test' ], // meta map
|
2021-09-28 19:42:04 +00:00
|
|
|
[ file(params.test_data['homo_sapiens']['pacbio']['hifi'], checkIfExists: true) ]
|
2021-07-20 20:50:22 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
HIFIASM ( input, [], [], false )
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with parental reads for phasing
|
|
|
|
*/
|
|
|
|
workflow test_hifiasm_with_parental_reads {
|
|
|
|
input = [
|
|
|
|
[ id:'test' ], // meta map
|
2021-09-28 19:42:04 +00:00
|
|
|
[ file(params.test_data['homo_sapiens']['pacbio']['hifi'], checkIfExists: true) ]
|
2021-07-20 20:50:22 +00:00
|
|
|
]
|
|
|
|
paternal_kmer_dump = file(params.test_data['homo_sapiens']['illumina']['test_yak'], checkIfExists: true)
|
|
|
|
maternal_kmer_dump = file(params.test_data['homo_sapiens']['illumina']['test2_yak'], checkIfExists: true)
|
|
|
|
|
|
|
|
HIFIASM ( input, paternal_kmer_dump, maternal_kmer_dump, true )
|
|
|
|
}
|