aldex.expectedDistance {ALDEx2} | R Documentation

## Calculate the expected values of distances between samples, given an `aldex` Object

### 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

        ## 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

        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)

[Package ALDEx2 version 1.20.0 Index]