predict_iimi {iimi} | R Documentation |
predict_iimi()
Description
Uses a machine learning model to predict the infection status for the plant sample(s). User can use their own model if needed.
Usage
predict_iimi(newdata, method = "xgb", trained_model, report_virus_level = TRUE)
Arguments
newdata |
A matrix or data frame that contains the features extracted
from the coverage profile using |
method |
The machine learning method of choice, |
trained_model |
The trained model. If not provided, default model is used. |
report_virus_level |
If |
Value
A data frame of diagnostics result for each sample
Examples
## Not run: df <- convert_rle_to_df(example_cov)
predictions <- predict_iimi(df)
## End(Not run)