weights: Get/Set weights

weightsR 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 <- system.file('extdata/billing19.rnacounts.txt', package = 'autonomics')
object <- read_rnaseq_counts(file)
weights(object)[1:3, 1:2]
weights(object) <- 1
weights(object)[1:3, 1:2]

bhagwataditya/importomics documentation built on Nov. 28, 2024, 8:28 a.m.