2021-01-30 03:38:35 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { BEDTOOLS_GENOMECOV } from '../../../../modules/bedtools/genomecov/main.nf'
|
2021-01-30 03:38:35 +00:00
|
|
|
|
2021-10-28 16:50:25 +00:00
|
|
|
workflow test_bedtools_genomecov_noscale {
|
2021-07-07 09:10:18 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
2021-10-28 16:50:25 +00:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true),
|
|
|
|
1
|
|
|
|
]
|
|
|
|
|
|
|
|
sizes = []
|
|
|
|
extension = 'txt'
|
|
|
|
|
|
|
|
BEDTOOLS_GENOMECOV ( input, sizes, extension )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bedtools_genomecov_nonbam_noscale {
|
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
|
|
|
file(params.test_data['sarscov2']['genome']['baits_bed'], checkIfExists: true),
|
|
|
|
1
|
|
|
|
]
|
|
|
|
|
|
|
|
sizes = file(params.test_data['sarscov2']['genome']['genome_sizes'], checkIfExists: true)
|
|
|
|
extension = 'txt'
|
|
|
|
|
|
|
|
BEDTOOLS_GENOMECOV ( input, sizes, extension )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bedtools_genomecov_scale {
|
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true),
|
|
|
|
0.5
|
2021-07-07 09:10:18 +00:00
|
|
|
]
|
2021-01-30 03:38:35 +00:00
|
|
|
|
2021-07-07 08:44:09 +00:00
|
|
|
sizes = file('dummy_chromosome_sizes')
|
|
|
|
extension = 'txt'
|
|
|
|
|
|
|
|
BEDTOOLS_GENOMECOV ( input, sizes, extension )
|
2021-01-30 03:38:35 +00:00
|
|
|
}
|
|
|
|
|
2021-10-28 16:50:25 +00:00
|
|
|
workflow test_bedtools_genomecov_nonbam_scale {
|
2021-07-07 09:10:18 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
2021-10-28 16:50:25 +00:00
|
|
|
file(params.test_data['sarscov2']['genome']['baits_bed'], checkIfExists: true),
|
|
|
|
0.5
|
2021-07-07 09:10:18 +00:00
|
|
|
]
|
2021-07-07 08:44:09 +00:00
|
|
|
|
|
|
|
sizes = file(params.test_data['sarscov2']['genome']['genome_sizes'], checkIfExists: true)
|
|
|
|
extension = 'txt'
|
|
|
|
|
|
|
|
BEDTOOLS_GENOMECOV ( input, sizes, extension )
|
|
|
|
}
|