cohorts
cohorts copied to clipboard
Fix mhctools API integration
From @iskandr re https://github.com/hammerlab/mhctools/pull/86:
Followup to mhctools PR, a much smaller change to make Topiary work: https://github.com/hammerlab/topiary/pull/66
The only API changes that should matter to you are
epitope_lengths
->default_peptide_lengths
in the initializer,predict
->predict_subsequences
, addition of apredict_peptides
if you need it, and the result of predict methods is just a list ofBindingPrediction
objects (not a special collection object)
And if you need all these things in data frames there’s
predict_subsequences_dataframe
andpredict_peptides_dataframe
(instead of previoously converting a
EpitopeCollection
to a dataframe)