Remove the second replicate of each sample, when it exists

Share:

Description

Sometimes it is desirable to remove replicate samples (often for plotting). This command removes all samples marked as replicate 2. Please note that you should always check the similarity of replicates for your metric of interest before removing them for aesthetic purposes.

Usage

1

Arguments

table

An OTU table containing the relative abundances of each OTU

Value

Returns an OTU table containing only one replicate for each sample

Author(s)

Alexandra Linz <amlinz16@gmail.com>

Examples

1
2