@@ -6,7 +6,7 @@ task pvacsplice {
6
6
File input_vcf
7
7
File input_vcf_tbi
8
8
File input_regtools_tsv
9
- File input_reference_fasta
9
+ File input_reference_dna_fasta
10
10
File input_reference_gtf
11
11
String sample_name
12
12
Array [String ] alleles
@@ -36,6 +36,13 @@ task pvacsplice {
36
36
Int ? maximum_transcript_support_level # enum [1, 2, 3, 4, 5]
37
37
Int ? aggregate_inclusion_binding_threshold
38
38
Array [String ]? problematic_amino_acids
39
+ Array [String ] biotypes_list = select_first ([biotypes , []])
40
+ Int ? aggregate_inclusion_count_limit
41
+
42
+ Int ? juction_score
43
+ Int ? variant_distance
44
+ Boolean save_gtf = false
45
+ Array [String ]? junction_anchor_types
39
46
40
47
Boolean allele_specific_binding_thresholds = false
41
48
Boolean keep_tmp_files = false
@@ -45,7 +52,7 @@ task pvacsplice {
45
52
Float ? tumor_purity
46
53
}
47
54
48
- Float input_size = size ([input_vcf , input_vcf_tbi , input_regtools_tsv , input_reference_fasta ,input_reference_gtf ], "GB" ) #input files: annotated vcf, regtools tsv, reference fasta, reference gtf
55
+ Float input_size = size ([input_vcf , input_vcf_tbi , input_regtools_tsv , input_reference_dna_fasta ,input_reference_gtf ], "GB" ) #input files: annotated vcf, regtools tsv, reference fasta, reference gtf
49
56
Int space_needed_gb = 10 + round (input_size )
50
57
runtime {
51
58
preemptible : 1
@@ -67,13 +74,14 @@ task pvacsplice {
67
74
ln -s " $TMPDIR " /tmp/pvacsplice && export TMPDIR=/tmp/pvacsplice && \
68
75
/usr/local/bin/pvacsplice run --iedb-install-directory /opt/iedb \
69
76
--pass-only \
70
- # ~{if defined(tumor_purity) then "--tumor-purity " + select_first([tumor_purity]) else ""} \
77
+ ~ {if defined(tumor_purity) then " --tumor-purity " + select_first([tumor_purity]) else " " } \
71
78
~ {if length(epitope_i ) > 0 then " -e1 " else " " } ~ {sep=" ," epitope_i} \
72
79
~ {if length(epitope_ii) > 0 then " -e2 " else " " } ~ {sep=" ," epitope_ii} \
73
80
~ {if defined(binding_threshold) then " -b ~{binding_threshold}" else " " } \
74
81
~ {if defined(percentile_threshold) then " --percentile-threshold ~{percentile_threshold}" else " " } \
75
82
~ {if allele_specific_binding_thresholds then " --allele-specific-binding-thresholds" else " " } \
76
83
~ {if defined(aggregate_inclusion_binding_threshold) then " --aggregate-inclusion-binding-threshold ~{aggregate_inclusion_binding_threshold}" else " " } \
84
+ ~ {if defined(aggregate_inclusion_count_limit) then " --aggregate-inclusion-count-limit ~{aggregate_inclusion_count_limit}" else " " } \
77
85
~ {if defined(iedb_retries) then " -r ~{iedb_retries}" else " " } \
78
86
~ {if keep_tmp_files then " -k" else " " } \
79
87
~ {if defined(normal_sample_name) then " --normal-sample-name ~{normal_sample_name}" else " " } \
@@ -93,28 +101,28 @@ task pvacsplice {
93
101
~ {if defined(tdna_vaf) then " --tdna-vaf ~{tdna_vaf}" else " " } \
94
102
~ {if defined(trna_vaf) then " --trna-vaf ~{trna_vaf}" else " " } \
95
103
~ {if defined(expn_val) then " --expn-val ~{expn_val}" else " " } \
96
- # ~{if defined(maximum_transcript_support_level) then "--maximum-transcript-support-level ~{maximum_transcript_support_level}" else ""} \
97
- # ~{if length(problematic_aa) > 0 then "--problematic-amino-acids" else ""} ~{sep="," problematic_aa} \
98
- # ~{if allele_specific_anchors then "--allele-specific-anchors" else ""} \
99
- # ~{if defined(anchor_contribution_threshold) then "--anchor-contribution-threshold ~{anchor_contribution_threshold}" else ""} \
104
+ ~ {if defined(maximum_transcript_support_level) then " --maximum-transcript-support-level ~{maximum_transcript_support_level}" else " " } \
105
+ ~ {if length(problematic_aa) > 0 then " --problematic-amino-acids" else " " } ~ {sep=" ," problematic_aa} \
106
+ ~ {if length(biotypes_list) > 0 then " --biotypes" else " " } ~ {sep=" ," biotypes_list} \
107
+ ~ {if defined(juction_score) then " --junction-score ~{junction_score}" else " " } \
108
+ ~ {if defined(variant_distance) then " --variant-distance ~{variant_distance}" else " " } \
109
+ ~ {if save_gtf then " -g" else " " } \
110
+ ~ {if length(junction_anchor_types) > 0 then " --anchor-types" else " " } ~ {sep=" ," junction_anchor_types}
100
111
--n-threads ~ {n_threads} \
101
- ~ {input_vcf } ~ {sample_name} ~ {sep=" ," alleles} ~ {sep=" " prediction_algorithms} \
102
- pvacsplice_predictions
112
+ ~ {input_regtools_tsv } ~ {sample_name} ~ {sep=" ," alleles} ~ {sep=" " prediction_algorithms} \
113
+ pvacsplice_predictions ~ {input_vcf} ~ {input_reference_dna_fasta} ~ {input_reference_gtf}
103
114
>>>
104
115
105
116
output {
106
117
File ? mhc_i_all_epitopes = "pvacsplice_predictions/MHC_Class_I/~{sample_name} .all_epitopes.tsv"
107
118
File ? mhc_i_aggregated_report = "pvacsplice_predictions/MHC_Class_I/~{sample_name} .all_epitopes.aggregated.tsv"
108
119
File ? mhc_i_filtered_epitopes = "pvacsplice_predictions/MHC_Class_I/~{sample_name} .filtered.tsv"
109
- File ? mhc_i_aggregated_metrics_file = "pvacsplice_predictions/MHC_Class_I/" + sample_name + ".all_epitopes.aggregated.metrics.json"
110
120
File ? mhc_ii_all_epitopes = "pvacsplice_predictions/MHC_Class_II/~{sample_name} .all_epitopes.tsv"
111
121
File ? mhc_ii_aggregated_report = "pvacsplice_predictions/MHC_Class_II/~{sample_name} .all_epitopes.aggregated.tsv"
112
122
File ? mhc_ii_filtered_epitopes = "pvacsplice_predictions/MHC_Class_II/~{sample_name} .filtered.tsv"
113
- File ? mhc_ii_aggregated_metrics_file = "pvacsplice_predictions/MHC_Class_II/" + sample_name + ".all_epitopes.aggregated.metrics.json"
114
123
File ? combined_all_epitopes = "pvacsplice_predictions/combined/~{sample_name} .all_epitopes.tsv"
115
124
File ? combined_aggregated_report = "pvacsplice_predictions/combined/~{sample_name} .all_epitopes.aggregated.tsv"
116
125
File ? combined_filtered_epitopes = "pvacsplice_predictions/combined/~{sample_name} .filtered.tsv"
117
- File ? combined_aggregated_metrics_file = "pvacsplice_predictions/combined/" + sample_name + ".all_epitopes.aggregated.metrics.json"
118
126
119
127
# glob documentations
120
128
# https://github.com/openwdl/wdl/blob/main/versions/1.0/SPEC.md#globs
@@ -124,90 +132,3 @@ task pvacsplice {
124
132
125
133
}
126
134
}
127
- ############################### may delete these######
128
- workflow wf {
129
- input {
130
- Int ? n_threads
131
- File input_vcf
132
- File input_vcf_tbi
133
- String sample_name
134
- Array [String ] alleles
135
- Array [String ] prediction_algorithms
136
-
137
- Array [Int ]? epitope_lengths_class_i
138
- Array [Int ]? epitope_lengths_class_ii
139
- Int ? binding_threshold
140
- Int ? percentile_threshold
141
- Int ? iedb_retries
142
-
143
- String ? normal_sample_name
144
- String ? net_chop_method # enum [cterm , 20s]
145
- String ? top_score_metric # enum [lowest, median]
146
- Float ? net_chop_threshold
147
- String ? additional_report_columns # enum [sample_name]
148
- Int ? fasta_size
149
- Int ? downstream_sequence_length
150
- Boolean exclude_nas = false
151
- File ? phased_proximal_variants_vcf
152
- File ? phased_proximal_variants_vcf_tbi
153
- Float ? minimum_fold_change
154
- Int ? normal_cov
155
- Int ? tdna_cov
156
- Int ? trna_cov
157
- Float ? normal_vaf
158
- Float ? tdna_vaf
159
- Float ? trna_vaf
160
- Float ? expn_val
161
- String ? maximum_transcript_support_level # enum [1, 2, 3, 4, 5]
162
- Int ? aggregate_inclusion_binding_threshold
163
- Array [String ]? problematic_amino_acids
164
- Float ? anchor_contribution_threshold
165
-
166
- Boolean ? allele_specific_binding_thresholds
167
- Boolean ? keep_tmp_files
168
- Boolean ? netmhc_stab
169
- Boolean ? run_reference_proteome_similarity
170
- Boolean allele_specific_anchors = false
171
- }
172
- call pvacsplice {
173
- input :
174
- n_threads =n_threads ,
175
- input_vcf =input_vcf ,
176
- input_vcf_tbi =input_vcf_tbi ,
177
- sample_name =sample_name ,
178
- alleles =alleles ,
179
- prediction_algorithms =prediction_algorithms ,
180
- epitope_lengths_class_i =epitope_lengths_class_i ,
181
- epitope_lengths_class_ii =epitope_lengths_class_ii ,
182
- binding_threshold =binding_threshold ,
183
- percentile_threshold =percentile_threshold ,
184
- aggregate_inclusion_binding_threshold =aggregate_inclusion_binding_threshold ,
185
- iedb_retries =iedb_retries ,
186
- normal_sample_name =normal_sample_name ,
187
- net_chop_method =net_chop_method ,
188
- top_score_metric =top_score_metric ,
189
- net_chop_threshold =net_chop_threshold ,
190
- additional_report_columns =additional_report_columns ,
191
- fasta_size =fasta_size ,
192
- downstream_sequence_length =downstream_sequence_length ,
193
- exclude_nas =exclude_nas ,
194
- phased_proximal_variants_vcf =phased_proximal_variants_vcf ,
195
- phased_proximal_variants_vcf_tbi =phased_proximal_variants_vcf_tbi ,
196
- minimum_fold_change =minimum_fold_change ,
197
- normal_cov =normal_cov ,
198
- tdna_cov =tdna_cov ,
199
- trna_cov =trna_cov ,
200
- normal_vaf =normal_vaf ,
201
- tdna_vaf =tdna_vaf ,
202
- trna_vaf =trna_vaf ,
203
- expn_val =expn_val ,
204
- maximum_transcript_support_level =maximum_transcript_support_level ,
205
- allele_specific_binding_thresholds =allele_specific_binding_thresholds ,
206
- problematic_amino_acids =problematic_amino_acids ,
207
- allele_specific_anchors =allele_specific_anchors ,
208
- anchor_contribution_threshold =anchor_contribution_threshold ,
209
- keep_tmp_files =keep_tmp_files ,
210
- netmhc_stab =netmhc_stab ,
211
- run_reference_proteome_similarity =run_reference_proteome_similarity
212
- }
213
- }
0 commit comments