Retrieve metrics from a result_model, result_collection, or musica object
Source:R/class_result_model.R
metrics.RdMetrics for the model
Usage
metrics(x, ...)
# S4 method for class 'musica'
metrics(x, result, modality, model_id)
# S4 method for class 'result_collection'
metrics(x, modality, model_id)
# S4 method for class 'result_model'
metrics(x)
metrics(x, ...) <- value
# S4 method for class 'musica,SimpleList'
metrics(x, result, modality, model_id) <- value
# S4 method for class 'result_collection,SimpleList'
metrics(x, modality, model_id) <- value
# S4 method for class 'result_model,SimpleList'
metrics(x) <- valueArguments
- x
A
musica,result_collection, orresult_modelobject generated by a mutational discovery or prediction tool.- ...
Other inputs
- result
Name of result from result_list to assign the metrics. Used when
resultis amusicaobject.- modality
Modality to assign the metrics. Used when
resultis amusicaorresult_collectionobject.- model_id
Model identifier to assign the metrics. Used when
resultis amusicaorresult_collectionobject.- value
List of metrics
Examples
data(res)
metrics(res, "result", "SBS96", "res")
#> List of length 0