Retrieve model_id from a result_model, result_collection, or musica object
Source:R/class_result_model.R
model_id.Rd
Model identifier
Usage
model_id(x, ...)
# S4 method for class 'musica'
model_id(x, result, modality, model_id)
# S4 method for class 'result_collection'
model_id(x, modality, model_id)
# S4 method for class 'result_model'
model_id(x)
model_id(x, ...) <- value
# S4 method for class 'musica,matrix'
model_id(x, result, modality, model_id) <- value
# S4 method for class 'result_collection,matrix'
model_id(x, modality, model_id) <- value
# S4 method for class 'result_model,matrix'
model_id(x) <- value
Arguments
- x
A
musica
,result_collection
, orresult_model
object generated by a mutational discovery or prediction tool.- ...
Other inputs
- result
Name of result from result_list to assign the model_id. Used when
result
is amusica
object.- modality
Modality to assign the model_id. Used when
result
is amusica
orresult_collection
object.- model_id
Model identifier to assign the model_id. Used when
result
is amusica
orresult_collection
object.- value
Model identifier
Examples
data(res)
model_id(res, "result", "SBS96", "res")
#> [1] "res"