Skip to content
Snippets Groups Projects
Unverified Commit d61ef1db authored by Tim O'Donnell's avatar Tim O'Donnell Committed by GitHub
Browse files

Merge pull request #125 from openvax/v1.2.2

v1.2.2
parents 6aad9bb9 1ca4ca8c
No related branches found
Tags 1.2.2
No related merge requests found
......@@ -1005,8 +1005,8 @@ class Class1AffinityPredictor(object):
df["prediction"] = numpy.exp(log_centers)
if include_confidence_intervals:
df["prediction_low"] = numpy.exp(numpy.percentile(logs, 5.0, axis=1))
df["prediction_high"] = numpy.exp(numpy.percentile(logs, 95.0, axis=1))
df["prediction_low"] = numpy.exp(numpy.nanpercentile(logs, 5.0, axis=1))
df["prediction_high"] = numpy.exp(numpy.nanpercentile(logs, 95.0, axis=1))
if include_individual_model_predictions:
for i in range(num_pan_models):
......
__version__ = "1.2.1"
__version__ = "1.2.2"
......@@ -218,6 +218,14 @@ def test_class1_affinity_predictor_a0205_memorize_training_data():
assert numpy.isnan(ic50_pred[2])
def test_no_nans():
df = DOWNLOADED_PREDICTOR.predict_to_dataframe(
alleles=["A02:01", "A02:02"],
peptides=["SIINFEKL", "SIINFEKLL"])
print(df)
assert not df.isnull().any().any()
def test_predict_implementations_equivalent():
for allele in ["HLA-A02:01", "A02:02"]:
for centrality_measure in ["mean", "robust_mean"]:
......
......@@ -28,6 +28,7 @@ def test_csv():
predict_command.run(full_args)
result = pandas.read_csv(fd_out.name)
print(result)
assert not result.isnull().any().any()
finally:
for delete in deletes:
os.unlink(delete)
......
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