Releases: NREL/EvoProtGrad
Releases · NREL/EvoProtGrad
v0.2
Summary of changes:
Major change - Variant Scoring
- The ability to change the expert variant scoring strategy has been added. There is now a class
VariantScoringwhich can be configured with ascoring_strategyargument (currently supported:attribute_value,pseudolikelihood_ratio, andmutant_marginal(NEW)). Each expert has an instance of aVariantScoringclass. It is defined inevo_prot_grad.common.variant_scoring. - The main entry point for instantiating an expert,
get_expert, now has ascoring_strategyargument for configuring the expert. - The
use_without_wildtypeargument of the Expert class has been removed. Each scoring strategy normalizes the score with respect to the wildtype score, so this was superflous. If you want to instantiate an expert and use it outside of the DirectedEvolution class, you have to explicitly callexpert.init_wildtype(wt_seq)before calling the expert to cache the wildtype score (see below). Expertprivate class method_model_output_to_scalar_scorehas been removed in favor of a public facing methodget_model_output. This method can be used to directly get expert scores for sequences.- The
Expertclass no longer has awt_scoreattribute. The wildtype score is now stored in theVariantScoringclass (wt_score_cache).
Minor changes
- The
Expertabstract class now publicly exposes the following methods:init_wildtype, for storing the wildtype string sequence and caching the WT score,tokenizefor tokenizing a sequence,get_model_outputwhich accepts a list of protein sequence strings and returns the one-hot encoded sequences and the expert model's predictions. - Renamed
experts.base_experts.HuggingFaceExperttoexperts.base_experts.ProteinLMExpert - Improved error message reporting for
get_expert - Upgraded
transformers[torch]to4.38.0 - Check for size of preserved region fixed to reflect 1 AA instead of 2 by @EvanKomp in #6