weaveWeb wrapper for the MultiAssayExperiment class
Source:R/AllGenerics.R
, R/getWeb-methods.R
getWeb.Rd
weaveWeb wrapper for the MultiAssayExperiment class
Usage
# S4 method for class 'MultiAssayExperiment'
getWeb(
x,
link = NULL,
...,
tableY = NULL,
tableX = NULL,
typeY = NULL,
typeX = NULL,
force_new = FALSE,
experiment1 = NULL,
experiment2 = NULL,
assay.type1 = NULL,
assay.type2 = NULL
)
Arguments
- x
- ...
additional parameters passed to
AnansiWeb()
.- link
One of the following:
Character scalar with value "none"
data.frame with two columns
list with two such data.frames
- tableY, tableX
Character scalar
ornumeric scalar
. Selects experiment corresponding totableY
andtableX
fromexperiments(x)
ofMultiAssayExperiment
object by name or index, name is recommended. (Default slots:Y = 1L
,X = 2L
).- typeY, typeX
Character scalar
ornumeric scalar
. Selects assay from experiments totableY
andtableX
fromexperiments(x)
. (Default:1L
- the first assay in that experiment).- force_new
boolean
If x already has a dictionaryMatrix
in metadata, ignore it and generate a new object anyway? (Default: FALSE).- experiment1, experiment2
synonymous args to
tableY,tableX
for compatibility withmia
argument style.- assay.type1, assay.type2
synonymous args to
typeY,typeX
for compatibility withmia
argument style.
Value
an AnansiWeb
object, with sparse binary biadjacency matrix
with features from y
as rows and features from x
as columns in
dictionary
slot. If x already contains a dictionary in metadata, use
that one, unless force_new = TRUE
.
Details
This wrapper of weaveWeb()
allows to generate an
AnansiWeb
S4 object directly from objects of class
MultiAssayExperiment::MultiAssayExperiment()
. First, the assays specified by assay.typeY
and assay.typeX
are passed to AnansiWeb()
to build an AnansiWeb object.
Examples
# Make a random anansiWeb
web <- randomWeb()
# Combine experiments into MultiAssayExperiment object
mae <- as(web, "MultiAssayExperiment")
# Back to AnansiWeb
outWeb <- getWeb(mae, tableY = "y", tableX = "x")