Skip to content

Commit c78667b

Browse files
Merge remote-tracking branch 'origin/hotfix'
2 parents 3317d2c + 8ac2846 commit c78667b

File tree

8 files changed

+30
-22
lines changed

8 files changed

+30
-22
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# The short X.Y version.
7171
version = '4.0'
7272
# The full version, including alpha/beta/rc tags.
73-
release = '4.0.3'
73+
release = '4.0.4'
7474

7575

7676
# The language for content autogenerated by Sphinx. Refer to documentation

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ New in Release |release|
5656

5757
This is a bugfix release. It fixes the following problem(s):
5858

59-
- The fixes in issue in the reference proteome similarity step in pVACseq
60-
where running with non-human data would cause an error.
59+
- This release makes various fixes to allow pVACtools to run with non-human
60+
data.
6161

6262
New in Version |version|
6363
------------------------

docs/releases/4_0.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,11 @@ This is a bugfix release. It fixes the following problem(s):
106106

107107
- The fixes in issue in the reference proteome similarity step in pVACseq
108108
where running with non-human data would cause an error.
109+
110+
New in Version 4.0.4
111+
--------------------
112+
113+
This is a bugfix release. It fixes the following problem(s):
114+
115+
- This release makes various fixes to allow pVACtools to run with non-human
116+
data.

pvactools/lib/calculate_reference_proteome_similarity.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,7 @@ def _input_tsv_type(self, line):
269269
def _get_full_peptide(self, line, mt_records_dict, wt_records_dict):
270270
for record_id in mt_records_dict.keys():
271271
(rest_record_id, variant_type, aa_change) = record_id.rsplit(".", 2)
272-
transcript_regex = '^.*(ENS[0-9|A-Z|.]+)$'
273-
transcript_p = re.compile(transcript_regex)
274-
m = transcript_p.match(rest_record_id)
275-
if m:
276-
transcript = m.group(1)
277-
else:
278-
raise Exception("Unexpected record_id format: {}".format(record_id))
272+
(count, gene, transcript) = rest_record_id.split(".", 2)
279273
(parsed_aa_change, pos, wt_aa, mt_aa) = index_to_aggregate_report_aa_change(aa_change, variant_type)
280274
if line['Best Transcript'] == transcript and line['AA Change'] == parsed_aa_change:
281275
return (mt_records_dict[record_id], wt_records_dict[record_id], variant_type, mt_aa, wt_aa)

pvactools/tools/pvacseq/generate_protein_fasta.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,7 @@ def parse_files(output_file, temp_dir, mutant_only, input_tsv, aggregate_report_
166166
continue
167167
else:
168168
(rest_record_id, variant_type, aa_change) = record_id.rsplit(".", 2)
169-
transcript_regex = '^.*(ENST[0-9|.]+)$'
170-
transcript_p = re.compile(transcript_regex)
171-
m = transcript_p.match(rest_record_id)
172-
if m:
173-
transcript = m.group(1)
174-
else:
175-
raise Exception("Unexpected record_id format: {}".format(record_id))
169+
(peptide_type, count, gene, transcript) = rest_record_id.split(".", 3)
176170
(parsed_aa_change, _, _, _) = index_to_aggregate_report_aa_change(aa_change, variant_type)
177171
matches = [i for i in tsv_indexes if i['Best Transcript'] == transcript and i['AA Change'] == parsed_aa_change and i['Evaluation'] in aggregate_report_evaluation]
178172
if len(matches) == 0:

pvactools/tools/pvacview/server.R

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ server <- shinyServer(function(input, output, session) {
9696
df$allele_specific_anchors <- df$metricsData$`allele_specific_anchors`
9797
df$anchor_contribution <- df$metricsData$`anchor_contribution_threshold`
9898
hla <- df$metricsData$alleles
99-
converted_hla_names <- unlist(lapply(hla, function(x) {strsplit(x, "HLA-")[[1]][2]}))
99+
converted_hla_names <- unlist(lapply(hla, function(x) {
100+
if (grepl("HLA-", x)) {
101+
strsplit(x, "HLA-")[[1]][2]
102+
} else {
103+
x
104+
}
105+
}))
100106
if (!("Ref Match" %in% colnames(df$mainTable))) {
101107
df$mainTable$`Ref Match` <- "Not Run"
102108
}
@@ -172,7 +178,13 @@ server <- shinyServer(function(input, output, session) {
172178
df$allele_specific_anchors <- df$metricsData$`allele_specific_anchors`
173179
df$anchor_contribution <- df$metricsData$`anchor_contribution_threshold`
174180
hla <- df$metricsData$alleles
175-
converted_hla_names <- unlist(lapply(hla, function(x) {strsplit(x, "HLA-")[[1]][2]}))
181+
converted_hla_names <- unlist(lapply(hla, function(x) {
182+
if (grepl("HLA-", x)) {
183+
strsplit(x, "HLA-")[[1]][2]
184+
} else {
185+
x
186+
}
187+
}))
176188
if (!("Ref Match" %in% colnames(df$mainTable))) {
177189
df$mainTable$`Ref Match` <- "Not Run"
178190
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
setup(
5353
name="pvactools",
54-
version="4.0.3",
54+
version="4.0.4",
5555
packages=[
5656
"pvactools.tools",
5757
"pvactools.tools.pvacbind",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
>WT.Rp1.ENSMUST00000027032.missense.1453N/S
1+
>WT.1.Rp1.ENSMUST00000027032.missense.1453N/S
22
IAGTLKFNPETDYLTGTDG
3-
>MT.Rp1.ENSMUST00000027032.missense.1453N/S
3+
>MT.1.Rp1.ENSMUST00000027032.missense.1453N/S
44
IAGTLKFNPQTDYLTGTDG

0 commit comments

Comments
 (0)