coerce: Methods for Coercing an Object to a Class

Description Value Author(s) See Also Examples

Description

Methods for Coercing an Object to a Class

Value

Object of new class.

Author(s)

Michael Steinbaugh

See Also

Other S4 Class Definition: [,bcbioRNASeq,ANY,ANY,ANY-method, bcbioRNASeq, show, updateObject

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# DESeqDataSet ====
x <- as(bcb_small, "DESeqDataSet")
names(S4Vectors::mcols(x))
class(x)
show(x)

# RangedSummarizedExperiment ====
x <- as(bcb_small, "RangedSummarizedExperiment")
slotNames(x)
show(x)

# SummarizedExperiment ====
# Coerce to RangedSummarizedExperiment first.
x <- as(bcb_small, "RangedSummarizedExperiment")
x <- as(x, "SummarizedExperiment")
class(x)
slotNames(x)
show(x)

roryk/bcbioRnaseq documentation built on May 27, 2019, 10:44 p.m.