openvax / mhcflurry

Peptide-MHC I binding affinity prediction
http://openvax.github.io/mhcflurry/
Apache License 2.0
193 stars 58 forks source link

Peptide length exception with throw=False #162

Closed iskandr closed 4 years ago

iskandr commented 4 years ago

df_pred = pred.predict(
    peptides=df_tcell_mhcflurry.peptide.values,
    alleles={allele:[allele] for allele in df_tcell_mhcflurry.allele.unique()},
    sample_names=df_tcell_mhcflurry.allele.values,
    throw=False)

Gives this exception:

EncodingError: Sequence 'AGTGDRLLNLVQGAYQA' (length 17) unsupported. There are 308 total peptides with this length. Supported lengths: 1 - 16.
timodonnell commented 4 years ago

Thanks, a fix for this will go into 1.6.1