Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/COLA-Laboratory/OmniGenBench
/ functions
Functions
955 in github.com/COLA-Laboratory/OmniGenBench
⨍
Functions
955
◇
Types & classes
187
↓ 1 callers
Method
save_embeddings
Save the generated embeddings to a file. Args: embeddings (torch.Tensor): The embeddings to save output_path
omnigenbench/src/model/embedding/model.py:343
↓ 1 callers
Function
select_next_generation
(next_generation, fronts)
examples/rna_sequence_design/easy_rna_design_emoo.py:365
↓ 1 callers
Method
set_loss_fn
Sets a custom loss function for the model. The loss function should be compatible with the model's output format. Args:
omnigenbench/src/abc/abstract_model.py:522
↓ 1 callers
Method
set_one_hot
Set the token-id-to-one-hot projection matrix. Parameters ---------- weight : torch.Tensor Shape ``(vocab_size, 4
omnigenbench/src/model/baselines.py:1593
↓ 1 callers
Method
ss_validity_loss
Calculate structure validity loss
examples/rna_secondary_structure_prediction/enhanced_ssp_demo.py:59
↓ 1 callers
Method
test
Test the model on the test dataset. Returns: Dict[str, Any]: Dictionary containing test metrics
omnigenbench/src/trainer/hf_trainer.py:239
↓ 1 callers
Function
test_model_loading_comparison
Compare model loading with different methods. This test documents the differences between git-lfs and HF Hub API.
tests/test_hf_download.py:190
↓ 1 callers
Method
tokenize
Converts a sequence into a list of tokens. Must be implemented by subclasses. Args: sequence (str): The input sequence.
omnigenbench/src/abc/abstract_tokenizer.py:261
↓ 1 callers
Method
tokenize
Converts a sequence into a list of individual nucleotide tokens. This method tokenizes genomic sequences by treating each nucleotide
omnigenbench/src/tokenizer/single_nucleotide_tokenizer.py:156
↓ 1 callers
Method
tokenize
Tokenize a sequence using the base BPE tokenizer. Args: sequence (str): Input sequence to tokenize **kwargs:
omnigenbench/src/tokenizer/bpe_tokenizer.py:159
↓ 1 callers
Method
train_info
Print and return information about the current training setup. Returns: str: A string containing training setup informat
omnigenbench/auto/auto_train/auto_train.py:157
↓ 1 callers
Method
update_cache_file
Updates the cache file on disk. This method saves the in-memory cache to disk. It only saves when the queue_num reaches 100
omnigenbench/src/misc/utils.py:223
↓ 1 callers
Function
update_visual
(seq, structure)
examples/rna_sequence_design/web_rna_design.py:341
↓ 1 callers
Method
validate_rna_sequence
Validate RNA sequence
examples/rna_secondary_structure_prediction/enhanced_ssp_demo.py:40
↓ 1 callers
Method
visualize
Creates a visual representation of an explanation. This method is optional and should be implemented by subclasses that can produce a
omnigenbench/src/abc/abstract_explainer.py:63
↓ 1 callers
Method
visualize
Creates an interactive 2D scatter plot of the embeddings. This method uses Plotly Express to generate a rich, interactive visualization
omnigenbench/src/explainability/visualization_2d/explainer.py:94
↓ 1 callers
Method
visualize_heatmap
Visualizes the epistatic interaction matrix as an interactive heatmap. This method creates a detailed heatmap where each cell represents the
omnigenbench/src/explainability/epistasis/explainer.py:85
↓ 1 callers
Method
visualize_heatmap
Visualizes an attribution matrix as an interactive heatmap. This method uses the `plotly` library to create a heatmap where the colo
omnigenbench/src/explainability/sequence_logo/explainer.py:162
↓ 1 callers
Method
visualize_logo
Visualizes an attribution matrix as a sequence logo. This method uses the `logomaker` library to create a sequence logo. The
omnigenbench/src/explainability/sequence_logo/explainer.py:104
Method
__call__
Provides a convenient shortcut to explain and visualize in one step. This allows the explainer instance to be called like a function, which
omnigenbench/src/abc/abstract_explainer.py:86
Method
__call__
The main forward pass of the model, suitable for training loops. This method is the primary interface for model forward passes durin
omnigenbench/src/abc/abstract_model.py:622
Method
__call__
Tokenizes inputs using the base tokenizer. This method provides a convenient interface for tokenization with sensible defaul
omnigenbench/src/abc/abstract_tokenizer.py:226
Method
__call__
Allow calling the model directly.
omnigenbench/src/utility/model_hub/model_hub.py:63
Method
__call__
Call the pipeline for inference. This method provides a convenient interface for running inference through the pipeline. It
omnigenbench/src/utility/pipeline_hub/pipeline.py:136
Method
__call__
A convenience method to explain and visualize in one step. Args: sequence (str): The sequence to explain. save_path (
omnigenbench/src/explainability/epistasis/explainer.py:196
Method
__call__
Return an in silico MAVE based on the given sequence. Args: sequence: the sequence to mutate, string num_sim
omnigenbench/src/explainability/shared_methods/squid_explainer.py:357
Method
__call__
Return an in silico MAVE based on the given sequence.
omnigenbench/src/explainability/shared_methods/squid_explainer.py:389
Method
__call__
Return an in silico MAVE based on the given sequence. Args: sequence: the sequence to mutate, string num_sim
omnigenbench/src/explainability/shared_methods/squid_explainer.py:448
Method
__call__
Generates and visualizes an explanation for a sequence. This is a convenience method that combines the `explain` and visualization
omnigenbench/src/explainability/sequence_logo/explainer.py:230
Method
__call__
A convenience method to generate and visualize the explanation in one step. This method chains the `explain` and `visualize` calls, providing
omnigenbench/src/explainability/visualization_2d/explainer.py:214
Method
__call__
Tokenize a sequence or list of sequences into tokenized inputs. This method processes the input sequence(s) by first converting them
omnigenbench/src/tokenizer/kmers_tokenizer.py:59
Method
__call__
Tokenizes sequences using single nucleotide tokenization. This method converts genomic sequences into tokenized inputs suitable
omnigenbench/src/tokenizer/single_nucleotide_tokenizer.py:54
Method
__call__
Tokenize a sequence using BPE tokenization. This method processes the input sequence using BPE tokenization, handles sequenc
omnigenbench/src/tokenizer/bpe_tokenizer.py:86
Method
__contains__
Check if the given item is in the parameter dict. :param item: The item to check. :return: True if the item is in the paramet
omnigenbench/auto/config/auto_config.py:168
Method
__delitem__
Delete a key-value pair from the parameter dict and check if the updated configuration is valid. :param key: The key to delete from t
omnigenbench/auto/config/auto_config.py:195
Method
__enter__
(self)
omnigenbench/src/model/augmentation/model.py:158
Method
__eq__
Check if the parameter dict is equal to another object. :param other: The other object to compare with the parameter dict. :r
omnigenbench/auto/config/auto_config.py:203
Method
__exit__
(self, exc_type, exc, tb)
omnigenbench/src/model/augmentation/model.py:161
Method
__getattr__
Dynamically create ranking metric computation methods. This method intercepts attribute access and creates wrapper functions
omnigenbench/src/metric/ranking_metric.py:53
Method
__getattribute__
Custom attribute getter that falls back to the base tokenizer if an attribute is not found on the wrapper. This method provi
omnigenbench/src/abc/abstract_tokenizer.py:333
Method
__getattribute__
Dynamically create metric computation methods. This method intercepts attribute access and creates wrapper functions for sci
omnigenbench/src/metric/metric.py:98
Method
__getattribute__
Custom attribute getter that provides dynamic access to scikit-learn metrics. This method provides transparent access to all scikit-
omnigenbench/src/metric/classification_metric.py:62
Method
__getattribute__
Dynamically create regression metric computation methods. This method intercepts attribute access and creates wrapper functions
omnigenbench/src/metric/regression_metric.py:94
Method
__getitem__
Returns a single data sample at the given index. Args: idx (int): The index of the sample. Returns:
omnigenbench/src/abc/abstract_dataset.py:1350
Method
__getitem__
Gets a cached structure prediction.
omnigenbench/src/misc/utils.py:95
Method
__getitem__
Get the value of a key from the parameter dict. :param item: The key to look for in the parameter dict. :return: The value of
omnigenbench/auto/config/auto_config.py:176
Method
__init__
Initializes the explainer with a model. Args: model (Any): The machine learning model (e.g., a PyTorch or TensorFlow model)
omnigenbench/src/abc/abstract_explainer.py:28
Method
__init__
Initializes the genomic dataset with flexible input sources and preprocessing options. This method handles dataset loading from vari
omnigenbench/src/abc/abstract_dataset.py:180
Method
__init__
Initializes the genomic foundation model with flexible input types. This method handles three initialization patterns: 1. *
omnigenbench/src/abc/abstract_model.py:95
Method
__init__
Initializes the metric. Args: metric_func (callable, optional): A callable metric function from
omnigenbench/src/abc/abstract_metric.py:104
Method
__init__
Initializes the tokenizer wrapper with genomic-specific preprocessing options. Args: base_tokenizer: Underlying tokenize
omnigenbench/src/abc/abstract_tokenizer.py:110
Method
__init__
Initializes the token classification dataset. Args: dataset_name_or_path (str or list): Path(s) to the dataset file(s).
omnigenbench/src/dataset/omni_dataset.py:42
Method
__init__
Initialize the dataset for sequence classification. Args: dataset_name_or_path: Path to the data file or a list of paths
omnigenbench/src/dataset/omni_dataset.py:151
Method
__init__
Initialize the dataset for sequence regression. Args: dataset_name_or_path: Path to the data file or a list of paths.
omnigenbench/src/dataset/omni_dataset.py:356
Method
__init__
Initialize the dataset for multi-label classification. Args: dataset_name_or_path: Path to the data file or a list of pa
omnigenbench/src/dataset/omni_dataset.py:453
Method
__init__
Initialize the LoRA-adapted model.
omnigenbench/src/lora/lora_model.py:168
Method
__init__
Initialize the VoteEnsemblePredictor. Args: predictors (List or dict): A list of checkpoints, or a dictionary of initial
omnigenbench/src/utility/ensemble.py:45
Method
__init__
(self, base_model, tokenizer)
omnigenbench/src/utility/model_hub/model_hub.py:53
Method
__init__
Initialize the PipelineHub. Args: *args: Variable length argument list (currently unused). **kwargs: Arbitra
omnigenbench/src/utility/pipeline_hub/pipeline_hub.py:43
Method
__init__
Initialize a Pipeline instance. Args: name (str): Name identifier for the pipeline. config_or_model (Union[s
omnigenbench/src/utility/pipeline_hub/pipeline.py:69
Method
__init__
Initialize the InteractingAttention module. Args: embed_size (int): Size of the embedding dimension num_head
omnigenbench/src/model/module_utils.py:187
Method
__init__
(self, tokenizer, *args, **kwargs)
omnigenbench/src/model/baselines.py:117
Method
__init__
(self, config)
omnigenbench/src/model/baselines.py:141
Method
__init__
(self, tokenizer, *args, **kwargs)
omnigenbench/src/model/baselines.py:388
Method
__init__
(self, config)
omnigenbench/src/model/baselines.py:414
Method
__init__
(self, tokenizer, *args, **kwargs)
omnigenbench/src/model/baselines.py:628
Method
__init__
(self, config)
omnigenbench/src/model/baselines.py:654
Method
__init__
(self, tokenizer, *args, **kwargs)
omnigenbench/src/model/baselines.py:872
Method
__init__
(self, config)
omnigenbench/src/model/baselines.py:901
Method
__init__
(self, tokenizer, *args, **kwargs)
omnigenbench/src/model/baselines.py:1165
Method
__init__
(self, config)
omnigenbench/src/model/baselines.py:1192
Method
__init__
Build the RNN backbone with LSTM.
omnigenbench/src/model/baselines.py:1536
Method
__init__
Initialize convolutional stack and one-hot projection buffer.
omnigenbench/src/model/baselines.py:1570
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1640
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1691
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1797
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1881
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1900
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1919
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1938
Method
__init__
(self, cfg: BaselineConfig)
omnigenbench/src/model/baselines.py:1962
Method
__init__
(self, tokenizer, *args, **kwargs)
omnigenbench/src/model/baselines.py:2011
Method
__init__
(self, config)
omnigenbench/src/model/baselines.py:2046
Method
__init__
(self, **kwargs)
omnigenbench/src/model/baselines.py:2385
Method
__init__
( self, vocab_size, embed_dim=128, num_filters=128, kernel_sizes=(3, 5
omnigenbench/src/model/baselines.py:2411
Method
__init__
( self, vocab_size, embed_dim=128, hidden_dim=256, num_layers=1,
omnigenbench/src/model/baselines.py:2531
Method
__init__
( self, vocab_size, n_filters=64, n_dilated_layers=9, conv1_kernel_siz
omnigenbench/src/model/baselines.py:2672
Method
__init__
Initialize the augmentation model. Args: config_or_model (str): Path or model name for loading the pre-trained model
omnigenbench/src/model/augmentation/model.py:41
Method
__init__
Initialize the MLM model. Args: config_or_model: Model configuration or pre-trained model tokenizer: Tokeniz
omnigenbench/src/model/mlm/model.py:36
Method
__init__
Initialize the sequence-to-sequence model. Args: config_or_model: Model configuration or pre-trained model t
omnigenbench/src/model/seq2seq/model.py:30
Method
__init__
Initialize the sequence regression model. Args: config_or_model: Model configuration or pre-trained model to
omnigenbench/src/model/regression/model.py:186
Method
__init__
Initialize the structural imputation model. Args: config_or_model: Model configuration or pre-trained model
omnigenbench/src/model/regression/model.py:331
Method
__init__
Initialize the 2D structure-aware token regression model. Args: config_or_model: Model configuration or pre-trained mode
omnigenbench/src/model/regression/model.py:378
Method
__init__
Initialize the 2D structure-aware sequence regression model. Args: config_or_model: Model configuration or pre-trained m
omnigenbench/src/model/regression/model.py:421
Method
__init__
Initialize the matrix regression model. Args: config_or_model: Model configuration or pre-trained model toke
omnigenbench/src/model/regression/model.py:470
Method
__init__
Initialize the matrix classification model. Args: config_or_model: Model configuration or pre-trained model
omnigenbench/src/model/regression/model.py:617
Method
__init__
Initialize the BasicBlock. Args: inplanes (int): Number of input channels planes (int): Number of output cha
omnigenbench/src/model/regression/resnet.py:109
Method
__init__
Initialize the Bottleneck block. Args: inplanes (int): Number of input channels planes (int): Number of outp
omnigenbench/src/model/regression/resnet.py:213
Method
__init__
Initialize the embedding model. Args: config_or_model (str): Name or path of the pre-trained model to load t
omnigenbench/src/model/embedding/model.py:36
Method
__init__
Initializes the sequence classification model. Args: config_or_model: Model configuration, pre-trained model path, or mo
omnigenbench/src/model/classification/model.py:318
← previous
next →
301–400 of 955, ranked by callers