Exemple #1
0
def wt_similarity(x, matrix='blosum62'):

    x1 = x.peptide
    x2 = x.wt
    #print(x1,x2)
    matrix = tepitope.get_matrix(matrix)
    return tepitope.similarity_score(matrix, x1, x2)
Exemple #2
0
def virus_similarity(x, matrix='blosum62'):

    if x.virus_match is None:
        return
    x1 = x.peptide
    x2 = x.virus_match
    matrix = tepitope.get_matrix(matrix)
    return tepitope.similarity_score(matrix, x1, x2)
Exemple #3
0
def virus_similarity(x, matrix='pbmec'):
    if x.self_match is None:
        return
    x1 = x.peptide
    x2 = x.virus_match
    return tepitope.similarity_score(tepitope.blosum62, x1, x2)
Exemple #4
0
def wt_similarity(x, matrix='pbmec'):
    x1 = x.peptide
    x2 = x.wt
    #print x1,x2
    #print pbmec_score(x1, x2), pbmec_score(x1, x1), pbmec_score(x1, x2)/pbmec_score(x1, x1)
    return tepitope.similarity_score(tepitope.blosum62, x1, x2)