Compare Two Species by Pathway Set
Source:R/AllGenerics.R, R/methods-compareSpecies.R
compareSpecies.RdComputes similarity metrics between the pathway sets of two species. Two dispatch modes are supported:
compareSpecies(cm, sp1, sp2): compare two species within the sameConsortiumMetabolismobject.compareSpecies(cm1, cm2, sp1, sp2): compare one species from each of twoConsortiumMetabolismobjects (e.g. the same species under different growth conditions).
The pathway set for a species is the set of (consumed, produced) pairs in which that species participates.
Usage
compareSpecies(x, y, ...)
# S4 method for class 'ConsortiumMetabolism,character'
compareSpecies(x, y, sp2, ...)
# S4 method for class 'ConsortiumMetabolism,ConsortiumMetabolism'
compareSpecies(x, y, sp1, sp2, ...)Arguments
- x
A ConsortiumMetabolism object (first).
- y
A ConsortiumMetabolism object (second).
- ...
For same-CM:
sp2(character scalar naming the second species). For cross-CM:sp1andsp2(character scalars naming one species from each consortium).- sp2
Character scalar; species from
y.- sp1
Character scalar; species from
x.
Value
A named list with elements:
fosSzymkiewicz-Simpson overlap score (intersection over min set size).
jaccardJaccard similarity (intersection over union).
n_sharedNumber of shared pathways.
n_unique_sp1Pathways only in sp1.
n_unique_sp2Pathways only in sp2.
Methods (by class)
compareSpecies(x = ConsortiumMetabolism, y = character): Compare two species within the same ConsortiumMetabolismcompareSpecies(x = ConsortiumMetabolism, y = ConsortiumMetabolism): Compare one species from each of two ConsortiumMetabolism objects