asmir_predict: Predict Abiotic Stress Association of miRNA Sequences

View source: R/predict.R

asmir_predictR Documentation

Predict Abiotic Stress Association of miRNA Sequences

Description

Predicts whether input plant miRNA sequences are associated with cold, drought, heat, or salt stress using the bundled ASmiR models. The function generates PseKNC features and applies the relevant stress-specific model.

Usage

asmir_predict(
  x,
  stress = c("cold", "drought", "heat", "salt", "all"),
  threshold = 0.5,
  model_file = NULL,
  feature_file = NULL
)

Arguments

x

Input supported by asmir_read_fasta.

stress

Stress model to use: cold, drought, heat, salt, or all.

threshold

Numeric probability threshold between 0 and 1 for assigning the stress-associated class.

model_file

Optional path to an RDS model file, used when predicting a single stress.

feature_file

Optional path to a feature-ranking file, used when predicting a single stress.

Value

A data frame containing sequence names, stress labels, predicted stress probabilities, confidence-like probabilities, and predicted class labels.


ASmiR documentation built on Oct. 28, 2026, 5:13 p.m.