2021-11-10 09:52:54 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { PICARD_COLLECTHSMETRICS } from '../../../../modules/picard/collecthsmetrics/main.nf'
|
2021-11-10 09:52:54 +00:00
|
|
|
|
|
|
|
workflow test_picard_collecthsmetrics {
|
|
|
|
|
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
2022-04-22 08:13:57 +00:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) ]
|
2021-11-10 09:52:54 +00:00
|
|
|
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
bait_intervals = file(params.test_data['sarscov2']['genome']['baits_interval_list'], checkIfExists: true)
|
|
|
|
target_intervals = file(params.test_data['sarscov2']['genome']['targets_interval_list'], checkIfExists: true)
|
|
|
|
|
|
|
|
PICARD_COLLECTHSMETRICS ( input, fasta, fai, bait_intervals, target_intervals )
|
|
|
|
}
|
2022-05-22 04:43:48 +00:00
|
|
|
|
|
|
|
workflow test_picard_collecthsmetrics_nofasta {
|
|
|
|
|
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) ]
|
|
|
|
|
|
|
|
bait_intervals = file(params.test_data['sarscov2']['genome']['baits_interval_list'], checkIfExists: true)
|
|
|
|
target_intervals = file(params.test_data['sarscov2']['genome']['targets_interval_list'], checkIfExists: true)
|
|
|
|
|
|
|
|
PICARD_COLLECTHSMETRICS ( input, [], [], bait_intervals, target_intervals )
|
|
|
|
}
|