-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.nf
executable file
·62 lines (49 loc) · 1.96 KB
/
main.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
// this prints the input parameters
log.info """
Varaint catalogue pipeline - Nextflow
=============================================
reads : ${params.reads}
reference : ${params.ref}
assembly : ${params.assembly}
run : ${params.run}
batch : ${params.batch}
"""
if (params.help) {
log.info """
Usage:
This is the variant catalogue pipeline
This pipeline was developped to generate the IBVL (Silent Genomes Project)
Let\'s reduce health care disparities
The typical command for running the pipeline is as follows:
nextflow run wassermanlab/Variant_catalogue_pipeline -r main -profile GRCh38
Mandatory arguments:
-profile Allows to choose which reference genome to use, in this version, only GRCh37 and GRCh38 are available.
Optional arguments:
--help This usage statement
"""
exit 1
}
// Include the other workflow that themselves includes the modules
include { Initialisation } from "./subworkflow/Initialisation"
include { Mapping } from "./subworkflow/Mapping"
include { SNV } from "./subworkflow/SNV"
include { SV } from "./subworkflow/SV"
include { MT } from "./subworkflow/MT"
workflow{
input_reads = Channel.fromPath(params.sample_sheet)
.splitCsv()
.map { row -> tuple(row[0], tuple(file(row[1]), file(row[2]))) }
.ifEmpty { error "cannot find reads in ${params.sample_sheet}" }
batch = params.batch
assembly = params.assembly
run = params.run
outdir_ind = file (params.outdir_ind)
main :
//Initialisation()
Mapping(input_reads)
// SNV(Mapping.out.bam_sorted, Mapping.out.bam_sorted_index)
// SV(Mapping.out.bam_sorted, Mapping.out.bam_sorted_index, SNV.out.sample_sex_file)
// MT(Mapping.out.bam_sorted, Mapping.out.bam_sorted_index, Mapping.out.mosdepth_output)
}