Skip to content

Commit

Permalink
Fixing serialization of VaccinePeptide objects (and a WUSTL link that…
Browse files Browse the repository at this point in the history
… just broke)
  • Loading branch information
julia326 committed Feb 28, 2018
1 parent 75783e5 commit ff8318a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vaxrank/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.9"
__version__ = "0.7.10"
2 changes: 1 addition & 1 deletion vaxrank/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _query_wustl(self, predicted_effect, gene_name):
Returns a link to the WUSTL page for this variant, if present.
"""
amino_acids = predicted_effect.short_description
api_url = "http://docm.genome.wustl.edu/api/v1/variants.json?amino_acids=%s&genes=%s" % (
api_url = "http://www.docm.info/api/v1/variants.json?amino_acids=%s&genes=%s" % (
amino_acids, gene_name.upper())
logger.info("WUSTL link: %s", api_url)

Expand Down
4 changes: 2 additions & 2 deletions vaxrank/vaccine_peptide.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def combined_score(self):
return self.expression_score * self.mutant_epitope_score

def to_dict(self):
epitope_predictions = self.mutant_epitope_predictions + self.wildtype_epitope_predictions
return {
"mutant_protein_fragment": self.mutant_protein_fragment,
"mutant_epitope_predictions": self.mutant_epitope_predictions,
"wildtype_epitope_predictions": self.wildtype_epitope_predictions,
"epitope_predictions": epitope_predictions,
}

0 comments on commit ff8318a

Please sign in to comment.