copy_filt: OTU/ASV copy number filtering

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/copy_filt.R

Description

As DNA sequencing data include PCR and sequencing errors, copy number thresholds are commonly applied to discard the OTUs with low number of sequence copies. This threshold can be absolute or (ideally) relative to the sequencing depth of each sample.

Usage

1
copy_filt(abund, threshold)

Arguments

abund

A vector or a matrix/data.frame indicating the relative abundances of one or multiple samples, respectively. If a matrix/data.frame is provided, columns must refer to samples and rows to OTUs.

threshold

An integer or a decimal number indicating the cut-off threshold. If an integer is provided, an absolute threshold is used (same threshold for all samples). If a decimal number is provided a relative copy number threshold is applied (dependent on the sequencing depth of each sample).

Details

OTU/ASV copy number filtering

Author(s)

Antton Alberdi, anttonalberdi@gmail.com

References

Alberdi A, Aizpurua O, Bohmann K, Gopalakrishnan S, Lynggaard C, Nielsen M, Gilbert MTP. 2019. Promises and pitfalls of using high-throughput sequencing for diet analysis. Molecular Ecology Resources, 19(2), 327-348.

See Also

depth_cov, tss

Examples

1
2
3
4
5
data(bat.diet.otutable)
#Remove singletons from all samples
copy_filt(bat.diet.otutable,2)
#Remove OTUs represented by less than 0.01% of the total reads per sample.
copy_filt(bat.diet.otutable,0.0001)

hilldiv documentation built on Oct. 1, 2019, 5:04 p.m.

Related to copy_filt in hilldiv...