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)

WeiSong-bio/roryk-bcbioRNASeq documentation built on July 6, 2019, 12:02 a.m.