trimOnConfounders: Trim based on confounders to avoid taxa with only zero counts

View source: R/F_trimOnConfounders.R

trimOnConfoundersR Documentation

Trim based on confounders to avoid taxa with only zero counts

Description

Trim based on confounders to avoid taxa with only zero counts

Usage

trimOnConfounders(confounders, X, prevCutOff, minFraction, n)

Arguments

confounders

a nxt confounder matrix

X

the nxp data matrix

prevCutOff

a scalar between 0 and 1, the prevalence cut off

minFraction

a scalar between 0 and 1, each taxon's total abundance should equal at least the number of samples n times minFraction, otherwise it is trimmed

n

the number of samples

Should be called prior to fitting the independence model

Value

A trimmed data matrix nxp'


CenterForStatistics-UGent/RCM documentation built on April 24, 2023, 8:26 p.m.