crested.utils.EnhancerOptimizer

crested.utils.EnhancerOptimizer#

class crested.utils.EnhancerOptimizer(optimize_func)#

Class to optimize the mutated sequence based on the original prediction.

Can be passed as the ‘enhancer_optimizer’ argument to crested.tl.Crested.enhancer_design_in_silico_evolution()

Parameters:

optimize_func (Callable[..., int]) – Function to optimize the mutated sequence based on the original prediction.

Methods table#

get_best(mutated_predictions, ...)

Get the index of the best mutated sequence based on the original prediction.

Methods#

EnhancerOptimizer.get_best(mutated_predictions, original_prediction, target, **kwargs)#

Get the index of the best mutated sequence based on the original prediction.

Return type:

int