Skip to content
Snippets Groups Projects
Commit 612fe5c8 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

Switch back to mean instead of robust_mean default

parent a940a110
No related branches found
No related tags found
No related merge requests found
...@@ -707,7 +707,7 @@ class Class1AffinityPredictor(object): ...@@ -707,7 +707,7 @@ class Class1AffinityPredictor(object):
throw=True, throw=True,
include_individual_model_predictions=False, include_individual_model_predictions=False,
include_percentile_ranks=True, include_percentile_ranks=True,
centrality_measure="robust_mean"): centrality_measure="mean"):
""" """
Predict nM binding affinities. Gives more detailed output than `predict` Predict nM binding affinities. Gives more detailed output than `predict`
method, including 5-95% prediction intervals. method, including 5-95% prediction intervals.
...@@ -748,6 +748,8 @@ class Class1AffinityPredictor(object): ...@@ -748,6 +748,8 @@ class Class1AffinityPredictor(object):
raise TypeError("peptides must be a list or array, not a string") raise TypeError("peptides must be a list or array, not a string")
if isinstance(alleles, string_types): if isinstance(alleles, string_types):
raise TypeError("alleles must be a list or array, not a string") raise TypeError("alleles must be a list or array, not a string")
if allele is None and alleles is None:
raise ValueError("Must specify 'allele' or 'alleles'.")
if allele is not None: if allele is not None:
if alleles is not None: if alleles is not None:
raise ValueError("Specify exactly one of allele or alleles") raise ValueError("Specify exactly one of allele or alleles")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment