A data frame of diagnostics result for each sample
Arguments
newdata
A matrix or data frame that contains the features extracted
from the coverage profile using convert_bam_to_cov().
method
The machine learning method of choice, rf,
xgb, or en. rf stands for random forest model; xgb stands for
XGBoost model; and en stands for elastic net model.
trained_model
The trained model. If not provided, default model is
used.
report_virus_level
If TRUE, the function returns the aggregated
results based on the virus. If FALSE, the function returns the
unaggregated results based on segment level with each decision's
probability decided by the model. We do not recommended to set this to
FALSE.