Skip to content

Commit

Permalink
Sort alleles for output
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Feb 23, 2022
1 parent e281a77 commit 9d1ab77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvactools/lib/aggregate_all_epitopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def assemble_result_line(self, best, key, vaf_clonal, hla, anno_count, peptide_c
tier = self.get_tier(mutation=best, vaf_clonal=vaf_clonal)

out_dict = { 'ID': key }
out_dict.update({ k.replace('HLA-', ''):v for k,v in hla.items() })
out_dict.update({ k.replace('HLA-', ''):v for k,v in sorted(hla.items()) })
out_dict.update({
'Gene': best["Gene Name"],
'AA Change': self.get_best_aa_change(best),
Expand Down Expand Up @@ -519,7 +519,7 @@ def assemble_result_line(self, best, key, vaf_clonal, hla, anno_count, peptide_c
tier = self.get_tier(mutation=best, vaf_clonal=vaf_clonal)

out_dict = { 'ID': key }
out_dict.update({ k.replace('HLA-', ''):v for k,v in hla.items() })
out_dict.update({ k.replace('HLA-', ''):v for k,v in sorted(hla.items()) })
if 'Gene Name' in best:
gene = best['Gene Name']
else:
Expand Down

0 comments on commit 9d1ab77

Please sign in to comment.