weights {autonomics}R Documentation

Get/Set weights

Description

Get/Set weight matrix

Usage

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

Arguments

object

SummarizedExperiment

...

addtional params

value

ratio matrix (features x samples)

Value

weight matrix (get) or updated object (set)

Examples

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]

[Package autonomics version 1.1.7 Index]