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
Method
indices_to_seqs
Convert indices to sequences.
omnigenbench/src/explainability/shared_methods/squid_explainer.py:664
Method
inference
Return binary predictions with a threshold. Parameters ---------- threshold : float, optional Decision threshold
omnigenbench/src/model/baselines.py:309
Method
inference
Return binary predictions using the specified probability threshold.
omnigenbench/src/model/baselines.py:566
Method
inference
Return thresholded predictions along with confidence scores.
omnigenbench/src/model/baselines.py:842
Method
inference
Return thresholded predictions along with confidence scores.
omnigenbench/src/model/baselines.py:1139
Method
inference
Return thresholded predictions along with confidence scores.
omnigenbench/src/model/baselines.py:1394
Method
inference
Convenience inference wrapper producing final predictions. Behavior depends on ``task_name``: - ``multilabel_classification``: thresh
omnigenbench/src/model/baselines.py:2307
Method
inference
Perform inference for masked language modeling, decoding predictions to sequences. Args: sequence_or_inputs: Input seque
omnigenbench/src/model/mlm/model.py:124
Method
inference
Perform inference for token-level regression, excluding special tokens. Args: sequence_or_inputs: Input sequences or pre
omnigenbench/src/model/regression/model.py:109
Method
inference
Perform inference for sequence-level regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:260
Method
inference
Perform inference for matrix regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs *
omnigenbench/src/model/regression/model.py:545
Method
inference
Perform inference for matrix classification. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:696
Method
inference
This method provides processed, human-readable sequence-level predictions. It converts logits to class labels and provides confidence
omnigenbench/src/model/classification/model.py:424
Method
inference
Performs multi-label inference with human-readable output. It converts logits to binary labels and provides confidence scores.
omnigenbench/src/model/classification/model.py:587
Method
inference
(self, sequence_or_inputs, **kwargs)
omnigenbench/src/model/classification/model.py:719
Method
l2_regularizer
(self)
omnigenbench/src/explainability/shared_methods/squid_explainer.py:568
Method
last_hidden_state_forward
Perform forward pass and return the last hidden state from the base model. This method provides access to intermediate representatio
omnigenbench/src/lora/lora_model.py:436
Method
load
This method loads a complete pipeline including the model, tokenizer, datasets, and trainer configuration. If the pipeline doesn't ex
omnigenbench/src/utility/pipeline_hub/pipeline_hub.py:59
Function
load_benchmark_datasets
This function automatically downloads benchmark datasets if they don't exist locally, loads their configurations, and initializes train/valid
omnigenbench/src/utility/dataset_hub/dataset_hub.py:27
Method
load_model_and_tokenizer
Load a model and its tokenizer from Hugging Face Hub or local path. This method loads both the model and tokenizer, places them on t
omnigenbench/src/utility/model_hub/model_hub.py:441
Function
longest_bp_span
(structure)
examples/rna_sequence_design/easy_rna_design_emoo.py:55
Method
loss_function
Binary cross-entropy loss with logits already in probability space. Notes ----- This legacy baseline uses ``BCELoss`` assumin
omnigenbench/src/model/baselines.py:334
Method
loss_function
Binary cross-entropy loss on probabilities.
omnigenbench/src/model/baselines.py:585
Method
loss_function
(self, logits, labels)
omnigenbench/src/model/baselines.py:861
Method
loss_function
(self, logits, labels)
omnigenbench/src/model/baselines.py:1158
Method
loss_function
(self, logits, labels)
omnigenbench/src/model/baselines.py:1413
Method
loss_function
Compute task-appropriate training loss.
omnigenbench/src/model/baselines.py:2342
Method
loss_function
Compute the loss for masked language modeling. Args: logits (torch.Tensor): Model predictions [batch_size, seq_len, voca
omnigenbench/src/model/mlm/model.py:164
Method
loss_function
Compute the loss for token-level regression. Args: logits (torch.Tensor): Model predictions labels (torch.Te
omnigenbench/src/model/regression/model.py:148
Method
loss_function
Compute the loss for sequence-level regression. Args: logits (torch.Tensor): Model predictions labels (torch
omnigenbench/src/model/regression/model.py:295
Method
loss_function
Compute the loss for matrix regression. Args: logits (torch.Tensor): Model predictions labels (torch.Tensor)
omnigenbench/src/model/regression/model.py:580
Method
loss_function
Compute the loss for matrix classification. Args: logits (torch.Tensor): Model predictions labels (torch.Ten
omnigenbench/src/model/regression/model.py:739
Method
loss_function
Calculates the cross-entropy loss for token classification. This method computes the cross-entropy loss between the predicted
omnigenbench/src/model/classification/model.py:238
Method
loss_function
This method computes the cross-entropy loss between the predicted logits and the ground truth labels. Args: logi
omnigenbench/src/model/classification/model.py:475
Method
loss_function
Calculates the binary cross-entropy loss for multi-label classification. Args: logits (torch.Tensor): Predicted logits f
omnigenbench/src/model/classification/model.py:526
Method
loss_function
(self, logits, labels)
omnigenbench/src/model/classification/model.py:747
Function
mcrmse
Compute Mean Column Root Mean Square Error (MCRMSE). MCRMSE is a multi-target regression metric that computes the RMSE for each target c
omnigenbench/src/metric/metric.py:20
Function
mcrmse
Compute Mean Column Root Mean Square Error (MCRMSE). MCRMSE is a multi-target regression metric that computes the RMSE for each target co
omnigenbench/src/metric/regression_metric.py:20
Function
mock_binary_dataset
Create a minimal mock binary classification dataset. Based on translation efficiency prediction pattern. Limited to 10 samples per split
tests/test_training_workflows.py:55
Function
mock_binary_dataset
Create minimal mock dataset for CLI testing
tests/test_cli_commands.py:441
Function
mock_multilabel_dataset
Create a minimal mock multi-label classification dataset. Based on TFB prediction (DeepSEA) pattern with 919 labels. Limited to 10 sample
tests/test_training_workflows.py:103
Method
model
Load model for structure prediction. Using base model - in practice would use fine-tuned SSP model.
tests/test_structure_prediction.py:280
Method
model
Load model for edge case testing
tests/test_autoinfer_cli.py:315
Method
model_and_tokenizer
Load model and tokenizer once for all tests
tests/test_autoinfer_cli.py:51
Method
model_info
Get detailed information about the underlying base model. Returns comprehensive information about the model architecture, configurat
omnigenbench/src/lora/lora_model.py:387
Function
model_name
Model name for testing
tests/test_token_classification.py:31
Function
model_name
Model name for testing
tests/test_genomic_embeddings.py:22
Function
model_name
Model name for testing
tests/test_attention_extraction.py:25
Method
mutate_string
(seq, rate)
omnigenbench/src/model/rna_design/model.py:195
Function
naive_secondary_structure_repair
This function attempts to repair malformed RNA secondary structure representations by ensuring proper bracket matching. It handles common
omnigenbench/src/misc/utils.py:289
Method
one_hot_to_indices
Convert one‑hot encoded sequences to indices.
omnigenbench/src/explainability/shared_methods/squid_explainer.py:660
Function
plant_model_small
Use PlantRNA-FM for plant-specific tasks
tests/test_training_workflows.py:41
Method
postprocess
Return probabilities via softmax.
omnigenbench/src/model/baselines.py:1892
Method
postprocess
Return multi-label probabilities via sigmoid.
omnigenbench/src/model/baselines.py:1911
Method
postprocess
Return probabilities via softmax.
omnigenbench/src/model/baselines.py:1954
Method
predict
Generate predictions using the LoRA-adapted model through the base model interface. This method provides access to the base model's
omnigenbench/src/lora/lora_model.py:320
Method
predict
Predicts on a single text and returns the ensemble result. This method combines predictions from all predictors in the ensemble
omnigenbench/src/utility/ensemble.py:227
Method
predict
Alias for inference method for API compatibility.
omnigenbench/src/utility/model_hub/model_hub.py:171
Method
predict
This method provides a high-level interface for generating predictions from the pipeline's model. It handles preprocessing and postpr
omnigenbench/src/utility/pipeline_hub/pipeline.py:277
Method
predict
Return probabilities for each label. This calls the internal convenience routine to accept either raw sequences or already-tokenized
omnigenbench/src/model/baselines.py:291
Method
predict
Return probabilities for each label (alias of forward logits).
omnigenbench/src/model/baselines.py:557
Method
predict
Return probabilities for each label.
omnigenbench/src/model/baselines.py:833
Method
predict
Return probabilities for each label.
omnigenbench/src/model/baselines.py:1130
Method
predict
Return probabilities for each label.
omnigenbench/src/model/baselines.py:1385
Method
predict
Return task-appropriate probabilities from head postprocess.
omnigenbench/src/model/baselines.py:2296
Method
predict
Generate predictions for masked language modeling. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/mlm/model.py:85
Method
predict
Generate predictions for sequence-level regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:228
Method
predict
Generate predictions for matrix regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:513
Method
predict
Generate predictions for matrix classification. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:663
Method
predict
This method takes raw sequences or tokenized inputs and returns sequence-level predictions. It processes the inputs through the model
omnigenbench/src/model/classification/model.py:378
Method
predict
This method takes raw sequences or tokenized inputs and returns multi-label predictions. It applies a threshold to determine
omnigenbench/src/model/classification/model.py:543
Method
predict
(self, sequence_or_inputs, **kwargs)
omnigenbench/src/model/classification/model.py:696
Method
predict_and_compare
Predict structure and generate comparison visualization
examples/rna_secondary_structure_prediction/enhanced_ssp_demo.py:495
Function
predict_structure
Predicts structures for multiple sequences using multithreading.
examples/rna_sequence_design/easy_rna_design_emoo.py:88
Method
prepare_input
Prepare a single data instance for token classification. This method handles both string sequences and dictionary instances
omnigenbench/src/dataset/omni_dataset.py:68
Method
prepare_input
Prepare a single data instance for sequence classification. This method handles both string sequences and dictionary instances
omnigenbench/src/dataset/omni_dataset.py:179
Method
prepare_input
Prepare a single data instance for token regression. This method handles both string sequences and dictionary instances cont
omnigenbench/src/dataset/omni_dataset.py:277
Method
prepare_input
Prepare a single data instance for sequence regression. This method handles both string sequences and dictionary instances c
omnigenbench/src/dataset/omni_dataset.py:384
Method
prepare_input
Prepare a single data instance for multi-label classification. This method handles both string sequences and dictionary instances
omnigenbench/src/dataset/omni_dataset.py:507
Method
prepare_input
Prepare a single training instance with BPP features. This method overrides the parent class to add BPP matrix computation
examples/translation_efficiency_prediction/te_bpp_model.py:198
Method
prepare_input
Prepare input with BPP features. This method: 1. Extracts sequence and label from instance 2. Pads/truncates
examples/translation_efficiency_prediction/te_with_bpp_features.py:119
Function
print_args
This function prints the arguments from a configuration object to the console or a logger. It's useful for debugging and logging experiment p
omnigenbench/src/misc/utils.py:346
Method
print_label_statistics
Print statistics about the multi-label distribution in the dataset. This includes the number of positive labels per sample and per la
omnigenbench/src/dataset/omni_dataset.py:608
Method
push
Push a model to the hub. This method is not yet implemented and will raise a NotImplementedError. Args: model:
omnigenbench/src/utility/model_hub/model_hub.py:847
Method
push
This method is intended to upload custom pipelines to the OmniGenome hub for sharing and distribution. Currently not implemented.
omnigenbench/src/utility/pipeline_hub/pipeline_hub.py:101
Function
pytest_collection_modifyitems
Modify test collection
tests/conftest.py:96
Function
pytest_configure
Configure pytest with custom markers
tests/conftest.py:27
Function
query_benchmarks_info
This function retrieves benchmark information from the OmniGenome hub, either from a remote repository or from a local cache. It supports
omnigenbench/src/utility/hub_utils.py:170
Function
query_pipelines_info
This function retrieves pipeline information from the OmniGenome hub, either from a remote repository or from a local cache. It supports
omnigenbench/src/utility/hub_utils.py:111
Function
register_command
This function is a convenience wrapper for registering the BenchCommand with the argument parser. Args: subparsers: The subparse
omnigenbench/cli/commands/bench/bench_cli.py:179
Function
register_command
This function is a convenience wrapper for registering the RNADesignCommand with the argument parser. Args: subparsers: The subp
omnigenbench/cli/commands/rna/rna_design.py:163
Method
register_command
This abstract method must be implemented by all subclasses to define their specific command-line interface, including arguments, help
omnigenbench/cli/commands/base.py:36
Function
reload_image
(sequence, structure)
examples/rna_sequence_design/web_rna_design.py:276
Function
rna_design_model
Load RNA design model once for all tests. Using smaller model for faster testing.
tests/test_rna_design.py:22
Function
run_autobench
Execute the autobench command.
omnigenbench/cli/ogb_cli.py:400
Function
run_autoinfer
Execute the autoinfer command.
omnigenbench/cli/ogb_cli.py:221
Function
run_autotrain
Execute the autotrain command.
omnigenbench/cli/ogb_cli.py:370
Function
run_bench
This function sets up logging, constructs the command to execute (potentially with `accelerate launch`), and runs it.
omnigenbench/auto/auto_bench/auto_bench_cli.py:144
Function
run_design
(structure)
examples/rna_sequence_design/web_rna_design.py:348
Function
run_rna_design
Execute the RNA design command.
omnigenbench/cli/ogb_cli.py:511
← previous
next →
601–700 of 955, ranked by callers