poli.objective_repository.gfp_cbas.cbas_alphabet_preprocessing#
Functions
|
Converts a list of amino acid sequences into an array of amino acid indices from AA_IDX. |
|
Converts an array containing indices of amino acids into the corresponding string amino acid sequences. |
|
Given the wild type sequence and a formatted mtuation string, returns the mutated sequence |
|
Given a categorical probability distribution specifying the probability of amino acids at each position in a sequence, returns the most probable sequence |
|
Given a set of predictors built according to the methods in the Balaji Lakshminarayanan paper 'Simple and scalable predictive uncertainty estimation using deep ensembles' (2017), returns the mean and variance of the total prediction. |
|
For the GFP testing experiments. |
|
Converts the raw GFP data to a set of X and y values that are ready to use in a model |
Returns the wild type GFP sequence |
|
|
Samples from a categorical probability distribution specifying the probability of amino acids at each position in a sequence |
|
Returns a one hot encoded amino acid sequence |
|
OneHot encodes array: (batch_size, L) -> (batch_size, L, alphabet_size) |
|
Convert length M string into M x 4 tokenized array |
|
Partition a (X, y) data set by a percentile of the y values |
|
Reads the GFP brightness data in a pandas DataFrame |