add_logratios: Add logratios

View source: R/codifab.R

add_logratiosR Documentation

Add logratios

Description

This function computes pairwise logratio values between all taxa and adds these to the tidyamplicons object in the form of a table called logratios.

Usage

add_logratios(ta, max_taxa = 30)

Arguments

ta

A tidyamplicons object

max_taxa

The maximum number of taxa to use

Details

If max_taxa is greater than the number of taxa, the taxa with the highest occurrence will be selected.

IMPORTANT: this function add pseudocounts of one to all abundances before calculating the logratios.

Value

A tidyamplicons object with an extra table logratios


SWittouck/tidyamplicons documentation built on Aug. 15, 2023, 3:14 a.m.