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

View source: R/UniFrac.multi.R

UniFrac.multiR Documentation

Run UniFrac multiple times in parallel and take the average

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

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 Nov. 24, 2022, 2:33 a.m.