Mem class containing results from multiEnrichMap(),
current class version "1.0.0".
Usage
# S4 method for class 'Mem,ANY,ANY,ANY'
x[i, j, k, drop = FALSE]
# S4 method for class 'Mem'
show(object)
Mem_to_list(x, ...)
# S4 method for class 'Mem'
as.list(x)
# S4 method for class 'Mem'
names(x)
# S4 method for class 'Mem'
enrichments(x)
# S4 method for class 'Mem'
enrichments(x) <- value
# S4 method for class 'Mem'
sets(x, ...)
# S4 method for class 'Mem'
sets(x) <- value
# S4 method for class 'Mem'
genes(x, ...)
# S4 method for class 'Mem'
genes(x) <- value
# S4 method for class 'Mem'
geneIM(x, ...)
# S4 method for class 'Mem'
geneIMdirection(x, ...)
# S4 method for class 'Mem'
geneIMdirection(x) <- value
# S4 method for class 'Mem'
geneIMcolors(x, ...)
# S4 method for class 'Mem'
geneIMcolors(x) <- value
# S4 method for class 'Mem'
enrichList(x, ...)
# S4 method for class 'Mem'
enrichIM(x, ...)
# S4 method for class 'Mem'
enrichIMcolors(x, ...)
# S4 method for class 'Mem'
enrichIMcolors(x) <- value
# S4 method for class 'Mem'
enrichIMdirection(x, ...)
# S4 method for class 'Mem'
enrichIMdirection(x) <- value
# S4 method for class 'Mem'
enrichIMgeneCount(x, ...)
# S4 method for class 'Mem'
memIM(x, ...)
# S4 method for class 'Mem'
geneHitIM(x, ...)
# S4 method for class 'Mem'
geneHitIM(x) <- value
# S4 method for class 'Mem'
geneHitList(x, ...)
# S4 method for class 'Mem'
geneHitList(x) <- value
# S4 method for class 'Mem'
headers(x)
# S4 method for class 'Mem'
colorV(x, ...)
# S4 method for class 'Mem'
colorV(x) <- value
# S4 method for class 'Mem'
thresholds(x, ...)
# S4 method for class 'Mem'
thresholds(x) <- value
# S4 method for class 'Mem'
dim(x)
# S4 method for class 'Mem'
dimnames(x)
list_to_Mem(mem)
# S4 method for class 'Mem'
updateObject(object, ..., verbose = FALSE)
# S4 method for class 'Mem'
geneInCategory(x)
# S4 method for class 'Mem'
setsByGene(x)Arguments
- x
Memobject- i
characterorintegerwith gene names- j
characterorintegerwith pathway names- drop
logicalalways set to FALSE for Mem objects.- ...
additional arguments are ignored
- value
charactervector of names to assign to pathway gene sets- mem
listoutput frommultiEnrichMap()
Value
Mem_to_list() returns a list suitable for other mem functions.
as.list(Mem) returns a list suitable for other mem functions.
names() returns the character vector of enrichment names
enrichments() returns the character vector of enrichment names
sets() returns the character vector of pathway gene sets
list_to_Mem() returns a Mem S4 object, from 'list' or
'Mem' input.
updateObject() returns a Mem S4 object with the current
class version, and current valid class definition. It should be
able to update any serialized 'Mem' object from previous
class versions.
geneInCategory() returns a list named by pathway, containing
character vectors with genes in each pathway.
geneInCategory() returns a list named by gene,
containing character vectors with associated gene sets.
Functions
x[i: Subset a Mem object,Mem[i, j, k], whereiare genes,jare pathways, andkare enrichments.show(Mem): Show summary of a Mem object, dimensions defined by genes, sets, enrichments, showing up to 5 entries of each. Also includes a list of analysis parameters: topN, and thresholds.Mem_to_list(): Coerce S4Memto legacylistmem formatas.list(Mem): Coerce S4Memto legacylistmem formatnames(Mem): Names for the enrichment tests in a Mem objectenrichments(Mem): Names for the enrichment tests in a Mem objectenrichments(Mem) <- value: Assign names for the enrichment tests in a Mem objectsets(Mem): List pathway gene set names in a Mem objectsets(Mem) <- value: Assign pathway gene set names to a Mem objectgenes(Mem): List genes representedgenes(Mem) <- value: Assign gene names in a Mem objectgeneIM(Mem): The gene-enrichment matrix of genes represented in enrichment tests.geneIMdirection(Mem): The matrix of genes tested versus enrichment tests, with directionality.geneIMdirection(Mem) <- value: Assign directional matrix to the gene-enrichment matrixgeneIMcolors(Mem): The matrix of colors indicating genes in each enrichment testgeneIMcolors(Mem) <- value: Assign a color matrix to the gene-enrichment matrixenrichList(Mem): The list of enrichResult data in an Mem objectenrichIM(Mem): The pathway/P-value matrixenrichIMcolors(Mem): The pathway-enrichment directional color matrixenrichIMcolors(Mem) <- value: Assign the pathway-enrichment directional color matrixenrichIMdirection(Mem): The pathway-enrichment directional score matrixenrichIMdirection(Mem) <- value: Assign the pathway-enrichment directional score matrixenrichIMgeneCount(Mem): Pathway-enrichment gene count matrix, genes involved in enrichment of each pathway, for each enrichment test.memIM(Mem): The gene-pathway incidence matrixgeneHitIM(Mem): The matrix of genes tested for enrichment, including genes not associated with enrichment results.geneHitIM(Mem) <- value: Assign the matrix of genes tested in a Mem objectgeneHitList(Mem): The list of genes tested for enrichment, including genes not associated with enrichment results.geneHitList(Mem) <- value: Assign the list of genes tested for enrichment, including genes not associated with enrichment results.headers(Mem): Enrichment data column headers associated to enrichResult data in a Mem objectcolorV(Mem): List colors assigned to representedcolorV(Mem) <- value: Assign colors to enrichments in a Mem object. If supplied 'value' matches the number of 'enrichments(x)', colors are assigned in the order supplied. Otherwise, 'names(value)' must be present in 'enrichments(x)', and values are assigned in matching order.thresholds(Mem): List thresholds definedthresholds(Mem) <- value: thresholds defined in a Mem object. Note that thresholds do not trigger any other updates to the Mem object.dim(Mem): dimensions in order of genes, sets, and enrichmentsdimnames(Mem): dimension names for each genes, sets, and enrichmentslist_to_Mem(): Convert legacylistmem format to S4MemupdateObject(Mem): Confirm Mem object meets current class definition.geneInCategory(Mem): Genes in each pathway set (category)setsByGene(Mem): Pathways gene sets associated with each gene
See also
Other Mem:
Mem-data,
Mem-slots,
check_Mem()
Other jam Mem utilities:
MemPlotFolio-class,
fixSetLabels(),
mem2cnet(),
mem2emap()
Examples
# examples for Mem_to_list and as(Mem, "list")
data(Memtest)
mem1 <- Mem_to_list(Memtest)
jamba::sdim(mem1)
#> rows cols class class_v2
#> enrichList 2 list <NA>
#> enrichLabels 2 character <NA>
#> colorV 2 character <NA>
#> geneHitList 2 list <NA>
#> geneHitIM 203 2 matrix array
#> memIM 22 16 matrix array
#> geneIM 22 2 matrix array
#> enrichIM 16 2 matrix array
#> multiEnrichDF 16 12 data.frame <NA>
#> multiEnrichResult 16 14 enrichResult <NA>
#> thresholds 6 list <NA>
#> colnames 9 list <NA>
#> enrichIMcolors 16 2 matrix array
#> enrichIMdirection 16 2 matrix array
#> enrichIMgeneCount 16 2 matrix array
#> geneIMcolors 22 2 matrix array
#> geneIMdirection 22 2 matrix array
# list_to_Mem examples
data(Memtest)
mem <- as(Memtest, "list")
Mem <- list_to_Mem(mem)