def test_logistic_ic50_scorer_binding_value_score(): cutoff = logistic_ic50_epitope_scorer.cutoff # just being stronger than the cutoff should still make for a very low # score assert simple_ic50_epitope_scorer.binding_value_score(cutoff-1) < 0.001 # whereas very high affinity scores like 1nM should be scored highly assert simple_ic50_epitope_scorer.binding_value_score(1.0) > 0.9
def test_logistic_ic50_scorer_binding_value_score(): cutoff = logistic_ic50_epitope_scorer.cutoff # just being stronger than the cutoff should still make for a very low # score assert simple_ic50_epitope_scorer.binding_value_score(cutoff - 1) < 0.001 # whereas very high affinity scores like 1nM should be scored highly assert simple_ic50_epitope_scorer.binding_value_score(1.0) > 0.9
def test_simple_ic50_epitope_scorer_binding_value_score(): # since default scorer doesn't use allele weights, expect accessing # the allele weight to raise an exception cutoff = simple_ic50_epitope_scorer.cutoff assert simple_ic50_epitope_scorer.binding_value_score(cutoff-1) == 1 assert simple_ic50_epitope_scorer.binding_value_score(cutoff+1) == 0
def test_simple_ic50_epitope_scorer_binding_value_score(): # since default scorer doesn't use allele weights, expect accessing # the allele weight to raise an exception cutoff = simple_ic50_epitope_scorer.cutoff assert simple_ic50_epitope_scorer.binding_value_score(cutoff - 1) == 1 assert simple_ic50_epitope_scorer.binding_value_score(cutoff + 1) == 0