@@ -5,14 +5,12 @@ date = new Date().format( 'yyyyMMdd' )
5
5
6
6
7
7
log. info """ \
8
- L O G A N P I P E L I N E
8
+ L O G A N P I P E L I N E
9
9
=============================
10
10
genome: ${ params.genome}
11
11
outdir: ${ params.outdir}
12
12
Sample Sheet: ${ params.sample_sheet}
13
- Samples: ${ params.fastq_input} ${ params.file_input} ${ params.bam_input}
14
- NF version : $nextflow . version
15
-
13
+ Samples: ${ params.fastq_input} ${ params.fastq_file_input} ${ params.bam_input} ${ params.bam_file_input}
16
14
"""
17
15
.stripIndent()
18
16
@@ -40,8 +38,7 @@ workflow.onComplete {
40
38
41
39
// Final Workflow
42
40
workflow {
43
- DETERMINEBAM ()
44
- if ([params. fastq_input,params. file_input]. any() && params. sample_sheet && ! params. BAMINPUT ){
41
+ if ([params. fastq_input,params. fastq_file_input]. any() && params. sample_sheet){
45
42
println " Tumor-Normal FASTQ"
46
43
INPUT ()
47
44
ALIGN (INPUT . out. fastqinput,INPUT . out. sample_sheet)
@@ -52,10 +49,10 @@ workflow {
52
49
// Tumor-Normal VC, SV, CNV
53
50
if (params. vc){
54
51
VC (ALIGN . out. bamwithsample,ALIGN . out. splitout,ALIGN . out. sample_sheet)
55
- }
52
+ }
56
53
if (params. sv){
57
54
SV (ALIGN . out. bamwithsample)
58
- }
55
+ }
59
56
if (params. cnv){
60
57
if (params. genome == " mm10" ){
61
58
CNVmouse (ALIGN . out. bamwithsample)
@@ -67,41 +64,41 @@ workflow {
67
64
CNVhuman (ALIGN . out. bamwithsample,VC . out. somaticcall_input)
68
65
}
69
66
}
70
- }
67
+ }
71
68
if (params. qc && params. gl){
72
69
QC_GL (ALIGN . out. fastqin,ALIGN . out. fastpout,ALIGN . out. bqsrout,GL . out. glnexusout,GL . out. bcfout)
73
70
} else if (params. qc){
74
71
QC_NOGL (ALIGN . out. fastqin,ALIGN . out. fastpout,ALIGN . out. bqsrout)
75
- }
72
+ }
76
73
77
74
}
78
-
75
+
79
76
// TUMOR-NOMRAL BAM INPUT
80
- if ([params. bam_input,params. file_input ]. any() && params. sample_sheet && BAMINPUT ){
77
+ if ([params. bam_input,params. bam_file_input ]. any() && params. sample_sheet){
81
78
println " Tumor-Normal with BAMs"
82
79
INPUT_BAM ()
83
80
if (params. vc){
84
81
VC (INPUT_BAM . out. bamwithsample,INPUT_BAM . out. splitout,INPUT_BAM . out. sample_sheet)
85
- }
82
+ }
86
83
if (params. sv){
87
84
SV (INPUT_BAM . out. bamwithsample)
88
- }
85
+ }
89
86
if (params. cnv){
90
87
if (params. genome == " mm10" ){
91
88
CNVmouse (INPUT_BAM . out. bamwithsample)
92
89
} else if (params. genome== " hg38" ){
93
90
if (! params. vc){
94
91
VC (INPUT_BAM . out. bamwithsample,INPUT_BAM . out. splitout,INPUT_BAM . out. sample_sheet)
95
92
CNVhuman (INPUT_BAM . out. bamwithsample,VC . out. somaticcall_input)
96
- }else {
93
+ }else {
97
94
CNVhuman (INPUT_BAM . out. bamwithsample,VC . out. somaticcall_input)
98
95
}
99
96
}
100
97
}
101
- }
102
-
98
+ }
99
+
103
100
// /Tumor Only Pipelines
104
- if ([params. fastq_input,params. file_input]. any() && ! params. sample_sheet && ! params . BAMINPUT ){
101
+ if ([params. fastq_input,params. file_input]. any() && ! params. sample_sheet){
105
102
println " Tumor-Only FASTQ"
106
103
INPUT_TONLY ()
107
104
ALIGN_TONLY (INPUT_TONLY . out. fastqinput,INPUT_TONLY . out. sample_sheet)
@@ -118,7 +115,7 @@ workflow {
118
115
if (! params. vc){
119
116
VC_TONLY (ALIGN_TONLY . out. bamwithsample,ALIGN_TONLY . out. splitout,ALIGN_TONLY . out. sample_sheet)
120
117
CNVhuman_tonly (ALIGN_TONLY . out. bamwithsample,VC_TONLY . out. somaticcall_input)
121
- } else {
118
+ } else {
122
119
CNVhuman_tonly (ALIGN_TONLY . out. bamwithsample,VC_TONLY . out. somaticcall_input)
123
120
}
124
121
}
@@ -129,28 +126,27 @@ workflow {
129
126
}
130
127
131
128
// Variant Calling from BAM-Tumor Only Mode
132
- if ([params. bam_input,params. file_input ]. any() && ! params. sample_sheet && params . BAMINPUT ){
129
+ if ([params. bam_input,params. bam_file_input ]. any() && ! params. sample_sheet){
133
130
println " Tumor-Only BAM"
134
131
INPUT_TONLY_BAM ()
135
132
if (params. vc){
136
133
VC_TONLY (INPUT_TONLY_BAM . out. bamwithsample,INPUT_TONLY_BAM . out. splitout,INPUT_TONLY_BAM . out. sample_sheet)
137
134
}
138
135
if (params. sv){
139
136
SV_TONLY (INPUT_TONLY_BAM . out. bamwithsample)
140
- }
137
+ }
141
138
if (params. cnv){
142
139
if (params. genome == " mm10" ){
143
140
CNVmouse_tonly (INPUT_TONLY_BAM . out. bamwithsample)
144
141
} else if (params. genome== " hg38" ){
145
- VC_TONLY ( INPUT_TONLY_BAM . out . bamwithsample, INPUT_TONLY_BAM . out . splitout, INPUT_TONLY_BAM . out . sample_sheet)
146
- CNVhuman_tonly (INPUT_TONLY_BAM . out. bamwithsample,VC_TONLY . out. somaticcall_input )
147
- }
148
- }
149
-
150
- }
142
+ if ( ! params . vc){
143
+ VC_TONLY (INPUT_TONLY_BAM . out. bamwithsample,INPUT_TONLY_BAM . out. splitout, INPUT_TONLY_BAM . out . sample_sheet )
144
+ CNVhuman_tonly ( INPUT_TONLY_BAM . out . bamwithsample, VC_TONLY . out . somaticcall_input)
145
+ } else {
146
+ CNVhuman_tonly ( INPUT_TONLY_BAM . out . bamwithsample, VC_TONLY . out . somaticcall_input)
147
+ }
151
148
149
+ }
150
+ }
151
+ }
152
152
}
153
-
154
-
155
-
156
-
0 commit comments