Protocol to predict amino acid probabilities using the ESM language model family.
More...
#include <EsmPerplexityTensorflowProtocol.hh>
|
| static std::string const | alphabet_ = "XXXXLAGVSERTIDPKQNFYMHWC" |
| | The ESM alphabet used for tokenization. More...
|
| |
|
| static bool | is_model_valid (std::string const &model_name) |
| | Checks if the given model name is one of the available models. More...
|
| |
| static std::string | concatenate_model_names () |
| | Returns a string containing the names of all available models, separated by commas. More...
|
| |
|
| static std::string const | base_url_ = "https://git.iwe-lab.de/moritzertelt/ML_graphs/-/archive/main/ML_graphs-main.tar.gz?path=tensorflow_graphs/ESM/" |
| |
| static std::vector< std::string > const | available_models_ = {"esm2_t6_8M_UR50D", "esm2_t12_35M_UR50D", "esm2_t30_150M_UR50D", "esm2_t33_650M_UR50D"} |
| |
Protocol to predict amino acid probabilities using the ESM language model family.
- Author
- Moritz Ertelt (morit.nosp@m.z.er.nosp@m.telt@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m)
◆ EsmPerplexityTensorflowProtocol() [1/3]
| protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::EsmPerplexityTensorflowProtocol |
( |
| ) |
|
|
default |
◆ EsmPerplexityTensorflowProtocol() [2/3]
◆ ~EsmPerplexityTensorflowProtocol()
| protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::~EsmPerplexityTensorflowProtocol |
( |
| ) |
|
|
overridedefault |
◆ EsmPerplexityTensorflowProtocol() [3/3]
| protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::EsmPerplexityTensorflowProtocol |
( |
std::string const & |
model | ) |
|
|
explicit |
constructor with name of the model
Constructor using the model name to initialize the particular ESM model.
References set_defaults().
◆ auto_download() [1/2]
| bool protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::auto_download |
( |
| ) |
const |
|
inline |
◆ auto_download() [2/2]
| void protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::auto_download |
( |
bool |
setting | ) |
|
set the auto_download value
Set the auto_download bool.
References auto_download_.
◆ clone()
| basic::tensorflow_manager::RosettaTensorflowProtocolBaseOP protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::clone |
( |
| ) |
const |
|
override |
Clone operation: make a copy of this object, and return an owning pointer to the copy.
◆ concatenate_model_names()
| std::string protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::concatenate_model_names |
( |
| ) |
|
|
staticprivate |
Returns a string containing the names of all available models, separated by commas.
References available_models_.
◆ download_model_if_not_existing()
| void protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::download_model_if_not_existing |
( |
std::string const & |
path_to_model, |
|
|
std::string const & |
base_url, |
|
|
bool const & |
auto_download |
|
) |
| |
|
static |
Downloads model from GitLab if the specified path does not exist or is empty.
Downloads model from GitLab if the specified path does not exist or is missing crucial files.
- Parameters
-
| [in] | path_to_model | Directory path where the model should be located |
| [in] | base_url | Url of the GitLab where models are stored |
| [in] | auto_download | Whether to automatically download missing models |
References auto_download(), and protocols::TR().
◆ get_ESM_neural_net_citation()
| basic::citation_manager::CitationCollectionBaseCOP protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::get_ESM_neural_net_citation |
( |
| ) |
|
|
static |
◆ get_selected_residues()
Given a selection, return a vector if selected indices.
Given a selection, return the number of selected residues.
◆ is_model_valid()
| bool protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::is_model_valid |
( |
std::string const & |
model_name | ) |
|
|
staticprivate |
Checks if the given model name is one of the available models.
References available_models_.
◆ name()
| std::string protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::name |
( |
| ) |
const |
|
override |
Get the name of this protocol.
◆ set_defaults()
| void protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::set_defaults |
( |
| ) |
|
◆ softmax()
| void protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::softmax |
( |
std::map< core::Size, utility::vector1< core::Real >> const & |
logit_map, |
|
|
std::map< core::Size, utility::vector1< core::Real >> & |
softmax_map |
|
) |
| |
|
static |
◆ alphabet_
| std::string const protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::alphabet_ = "XXXXLAGVSERTIDPKQNFYMHWC" |
|
static |
◆ auto_download_
| bool protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::auto_download_ = false |
|
private |
◆ available_models_
| std::vector< std::string > const protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::available_models_ = {"esm2_t6_8M_UR50D", "esm2_t12_35M_UR50D", "esm2_t30_150M_UR50D", "esm2_t33_650M_UR50D"} |
|
staticprivate |
◆ base_url_
| std::string const protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::base_url_ = "https://git.iwe-lab.de/moritzertelt/ML_graphs/-/archive/main/ML_graphs-main.tar.gz?path=tensorflow_graphs/ESM/" |
|
staticprivate |
◆ model_name_
| std::string protocols::esm_perplexity::EsmPerplexityTensorflowProtocol::model_name_ |
The documentation for this class was generated from the following files: