counts: Get/Set counts

countsR Documentation

Get/Set counts

Description

Get / Set counts matrix

Usage

counts(object)

## S4 method for signature 'SummarizedExperiment'
counts(object)

counts(object) <- value

## S4 replacement method for signature 'SummarizedExperiment,matrix'
counts(object) <- value

## S4 replacement method for signature 'SummarizedExperiment,numeric'
counts(object) <- value

## S4 replacement method for signature 'SummarizedExperiment,NULL'
counts(object) <- value

Arguments

object

SummarizedExperiment

value

count matrix (features x samples)

Value

count matrix (get) or updated object (set)

Examples

file <- system.file('extdata/billing19.rnacounts.txt', package = 'autonomics')
object <- read_rnaseq_counts(file)
counts(object)[1:3, 1:3]
counts(object) <- values(object)

bhagwataditya/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.