UniFrac.multi: Run 'UniFrac' multiple times in parallel and take the average

Description Usage Arguments Value

View source: R/UniFrac.multi.R

Description

With unrooted phylogenies UniFrac sets the root randomly on the tree. The position of the root affects the results. The function runs UniFrac multiple times, with different roots, and takes the average to smooth potential bias.

Usage

1
UniFrac.multi(physeq, R = 100, seed = 42, cores = 1, ...)

Arguments

physeq

Phyloseq object. Required

R

Number of times to repeat calculation. Default 100

seed

Random seed for reproducibility. Default 42

cores

Number of cores to use for parallel computing. Default 1 aka not parallel

...

Additional arguments passed to the UniFrac function

Value

A distance object with the average UniFrac distances


Russel88/MicEco documentation built on Oct. 24, 2018, 3:07 p.m.