Description Usage Arguments Value Getters Setters Other methods Examples
View source: R/class_tornado_experiment.R
The TornadoExperiment class extends the SummarizedExperiment
class, inheriting their methods and providing greater control over a
3rd dimension of assay data. This constructor is not intended to be called
directly and one should see the TornadoExperiment class merely as a data
container class. Instead, TornadoExperiment objects should spawn from the
use of the build_tornado()
function.
1 2 3 4 5 6 7 |
... |
Arguments passed on to
|
binData |
A DataFrame object with descriptions of the bins in the 3rd dimension of the array. |
colKey, rowKey, binKey |
A |
A TornadoExperiment
class object.
In addition to what works for SummarizedExperiment
objects, if x
is a
TornadoExperiment
object, then:
nbin(x)
gives the number of bins in x
. Analogous to nrow()
and
ncol()
for the 3rd dimension.
binnames(x)
gives the names of the bins in x
. Analogous to
rownames()
and colnames()
but for bins
binData(x)
gets the binData
slot that contains information about
the 3rd dimension of the x
.
colKey(x); rowKey(x); binKey(x)
retrieve the keys associated with
that dimension of x
.
In addition to what works for SummarizedExperiment
objects, if x
is a
TornadoExperiment
object, then:
binnames(x) <- value
sets the names of the bins in x
.
binData(x) <- value
sets the binData
slot if value
is a
DataFrame
with nbin(x)
rows.
colKey(x) <- value; rowKey(x) <- value; binKey(x) <- value
sets the
keys associated with dimensions of x
when value
is a character(1)
object and a valid column name in the relevant data slots.
In addition to what works for SummarizedExperiment
objects, if x
is a
TornadoExperiment
object, then:
x[i, j, k]
subsets x
for the first (i
), second (j
) and
third (k
) dimension.
1 | # See ?build_tornado
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.