Constructor for ConsortiumMetabolismAlignment Objects
Source: R/AllClasses.R, R/ConsortiumMetabolismAlignment.R
ConsortiumMetabolismAlignment.RdBuilds a valid
ConsortiumMetabolismAlignment by constructing a TSE
base and setting CMA-specific slots with sensible defaults.
Arguments
- ...
Named CMA slot values to set (e.g.,
Type = "pairwise",PrimaryScore = 0.8).- tse
An optional
TreeSummarizedExperimentto use as the base. Default creates an empty TSE.
Slots
Namecharacter. Display name for the alignment.
Descriptioncharacter. Optional short description.
Typecharacter. One of
"pairwise","multiple", or"search".Metriccharacter. Similarity metric used (e.g.,
"FOS").Paramslist. Additional parameters passed to the alignment method.
QueryNamecharacter. Name of the query consortium (pairwise).
ReferenceNamecharacter. Name of the reference consortium (pairwise).
Scoreslist. Named list of all computed score components.
PrimaryScorenumeric. Primary similarity score, between 0 and 1.
Pvaluenumeric. Permutation p-value, between 0 and 1.
SharedPathwaysdata.frame. Pathways present in both query and reference.
UniqueQuerydata.frame. Pathways unique to the query.
UniqueReferencedata.frame. Pathways unique to the reference.
SimilarityMatrixmatrix. Pairwise similarity matrix (multiple alignment).
ConsensusPathwaysdata.frame. Consensus network pathways (multiple alignment).
Prevalencedata.frame. Pathway prevalence across consortia (multiple alignment).
Dendrogramlist. Hierarchical clustering dendrogram (multiple alignment).
Pathwaysdata.frame. Combined pathway list.
Graphslist. List of igraph objects.
Metabolitesdata.frame. Metabolite mapping table.
Examples
# Empty alignment
cma <- ConsortiumMetabolismAlignment()
# Pairwise alignment via align()
cm1 <- synCM("comm_1", n_species = 3, max_met = 5)
cm2 <- synCM("comm_2", n_species = 4, max_met = 6)
cma <- align(cm1, cm2)
cma
#>
#> ── ConsortiumMetabolismAlignment
#> Name: NA
#> Type: "pairwise"
#> Metric: "FOS"
#> Score: 0.2727
#> Query: "comm_1", Reference: "comm_2"