Skip to content

Commit f359b30

Browse files
committed
add pvacsplice and regtools.wdl
1 parent 3ca28f9 commit f359b30

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

definitions/tools/pvacsplice.wdl

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ task pvacsplice {
55
Int n_threads = 8
66
File input_vcf
77
File input_vcf_tbi
8+
File input_regtools_tsv
9+
File input_reference_fasta
10+
File input_reference_gtf
811
String sample_name
912
Array[String] alleles
1013
Array[String] prediction_algorithms
11-
File? peptide_fasta
14+
File? peptide_fasta
1215

1316
Array[Int]? epitope_lengths_class_i
1417
Array[Int]? epitope_lengths_class_ii
@@ -22,11 +25,7 @@ task pvacsplice {
2225
Float? net_chop_threshold
2326
String? additional_report_columns # enum [sample_name]
2427
Int? fasta_size
25-
Int? downstream_sequence_length
2628
Boolean exclude_nas = false
27-
File? phased_proximal_variants_vcf
28-
File? phased_proximal_variants_vcf_tbi
29-
Float? minimum_fold_change
3029
Int? normal_cov
3130
Int? tdna_cov
3231
Int? trna_cov
@@ -37,26 +36,23 @@ task pvacsplice {
3736
Int? maximum_transcript_support_level # enum [1, 2, 3, 4, 5]
3837
Int? aggregate_inclusion_binding_threshold
3938
Array[String]? problematic_amino_acids
40-
Float? anchor_contribution_threshold
4139

4240
Boolean allele_specific_binding_thresholds = false
4341
Boolean keep_tmp_files = false
4442
Boolean netmhc_stab = false
4543
Boolean run_reference_proteome_similarity = false
46-
Boolean allele_specific_anchors = false
4744

4845
Float? tumor_purity
4946
}
5047

51-
Float input_size = size([input_vcf, input_vcf_tbi], "GB")
52-
Float phased_variants_size = size([phased_proximal_variants_vcf, phased_proximal_variants_vcf_tbi], "GB")
53-
Int space_needed_gb = 10 + round(input_size + phased_variants_size)
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
49+
Int space_needed_gb = 10 + round(input_size)
5450
runtime {
5551
preemptible: 1
5652
maxRetries: 2
5753
memory: "32GB"
5854
cpu: n_threads
59-
docker: "griffithlab/pvactools:4.4.1"
55+
docker: "griffithlab/pvactools:5.0.1"
6056
disks: "local-disk ~{space_needed_gb} HDD"
6157
}
6258

@@ -66,13 +62,12 @@ task pvacsplice {
6662
Array[String] problematic_aa = select_first([problematic_amino_acids, []])
6763
command <<<
6864
# touch each tbi to ensure they have a timestamp after the vcf
69-
touch ~{phased_proximal_variants_vcf_tbi}
7065
touch ~{input_vcf_tbi}
7166

7267
ln -s "$TMPDIR" /tmp/pvacsplice && export TMPDIR=/tmp/pvacsplice && \
7368
/usr/local/bin/pvacsplice run --iedb-install-directory /opt/iedb \
7469
--pass-only \
75-
~{if defined(tumor_purity) then "--tumor-purity " + select_first([tumor_purity]) else ""} \
70+
#~{if defined(tumor_purity) then "--tumor-purity " + select_first([tumor_purity]) else ""} \
7671
~{if length(epitope_i ) > 0 then "-e1 " else ""} ~{sep="," epitope_i} \
7772
~{if length(epitope_ii) > 0 then "-e2 " else ""} ~{sep="," epitope_ii} \
7873
~{if defined(binding_threshold) then "-b ~{binding_threshold}" else ""} \
@@ -88,23 +83,20 @@ task pvacsplice {
8883
~{if defined(peptide_fasta) then "--peptide-fasta ~{peptide_fasta}" else ""} \
8984
~{if defined(top_score_metric) then "-m ~{top_score_metric}" else ""} \
9085
~{if defined(net_chop_threshold) then "--net-chop-threshold ~{net_chop_threshold}" else ""} \
91-
~{if defined(additional_report_columns) then "-m ~{additional_report_columns}" else ""} \
86+
~{if defined(additional_report_columns) then "-a ~{additional_report_columns}" else ""} \
9287
~{if defined(fasta_size) then "-s ~{fasta_size}" else ""} \
93-
~{if defined(downstream_sequence_length) then "-d ~{downstream_sequence_length}" else ""} \
9488
~{if exclude_nas then "--exclude-NAs" else ""} \
95-
~{if defined(phased_proximal_variants_vcf) then "-p ~{phased_proximal_variants_vcf}" else ""} \
96-
~{if defined(minimum_fold_change) then "-c ~{minimum_fold_change}" else ""} \
9789
~{if defined(normal_cov) then "--normal-cov ~{normal_cov}" else ""} \
9890
~{if defined(tdna_cov) then "--tdna-cov ~{tdna_cov}" else ""} \
9991
~{if defined(trna_cov) then "--trna-cov ~{trna_cov}" else ""} \
10092
~{if defined(normal_vaf) then "--normal-vaf ~{normal_vaf}" else ""} \
10193
~{if defined(tdna_vaf) then "--tdna-vaf ~{tdna_vaf}" else ""} \
10294
~{if defined(trna_vaf) then "--trna-vaf ~{trna_vaf}" else ""} \
10395
~{if defined(expn_val) then "--expn-val ~{expn_val}" 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 allele_specific_anchors then "--allele-specific-anchors" else ""} \
107-
~{if defined(anchor_contribution_threshold) then "--anchor-contribution-threshold ~{anchor_contribution_threshold}" 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 ""} \
108100
--n-threads ~{n_threads} \
109101
~{input_vcf} ~{sample_name} ~{sep="," alleles} ~{sep=" " prediction_algorithms} \
110102
pvacsplice_predictions
@@ -132,7 +124,7 @@ task pvacsplice {
132124

133125
}
134126
}
135-
127+
############################### may delete these######
136128
workflow wf {
137129
input {
138130
Int? n_threads

definitions/tools/regtools.wdl

Whitespace-only changes.

0 commit comments

Comments
 (0)