weights {autonomics} | R Documentation |
Get/Set weight matrix
weights(object, ...) ## S4 method for signature 'SummarizedExperiment' weights(object) weights(object) <- value ## S4 replacement method for signature 'SummarizedExperiment,matrix' weights(object) <- value ## S4 replacement method for signature 'SummarizedExperiment,numeric' weights(object) <- value ## S4 replacement method for signature 'SummarizedExperiment,'NULL'' weights(object) <- value
object |
SummarizedExperiment |
... |
addtional params |
value |
ratio matrix (features x samples) |
weight matrix (get) or updated object (set)
file <- download_data('billing19.proteingroups.txt') object <- read_proteingroups(file, plot=FALSE) weights(object)[1:3, 1:2] weights(object) <- 1; weights(object)[1:3, 1:2]