| aldex.expectedDistance {ALDEx2} | R Documentation |
aldex Object
Calculates the expected value of distances between samples, given an aldex Object, using the median value of distances derived from n Monte-Carlo replicates.
## S3 method for class 'expectedDistance'
aldex(clrData)
clrData |
an object of class |
Generates a distance matrix for each Monte-Carlo instance in an aldex Object. Calculates the median distance value across all instances.
Returns a dist Object.
Please use the citation given by citation(package="ALDEx").
data(selex)
#subset for efficiency
selex <- selex[1201:1600,]
conds <- c(rep("NS", 7), rep("S", 7))
x <- aldex.clr(selex, conds, mc.samples = 128, denom = "all", verbose = FALSE)
x.dist <- aldex.expectedDistance(x)