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 <- download_data('billing19.rnacounts.txt')
object <- read_rnaseq_counts(file, plot=FALSE)
counts(object) <- values(object)
counts(object)[1:3, 1:3]

bhagwataditya/importomics documentation built on April 20, 2024, 11:19 p.m.