expectedDistance: Calculate the expected values of distances between samples,...

Description Usage Arguments Details Value References See Also Examples

Description

Calculates the expected value of distances between samples, given an aldex Object, using the median value of distances derived from n Monte-Carlo replicates.

Usage

1
2
    ## S3 method for class 'expectedDistance'
aldex(clrData)

Arguments

clrData

an object of class aldex produced by the aldex function

Details

Generates a distance matrix for each Monte-Carlo instance in an aldex Object. Calculates the median distance value across all instances.

Value

Returns a dist Object.

References

Please use the citation given by citation(package="ALDEx").

See Also

aldex, aldex.clr dist

Examples

1
2
3
4
5
6
    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)

ALDEx2 documentation built on Nov. 8, 2020, 8:05 p.m.