collapse_replicates: Collapse Replicate Samples

Description Usage Arguments Value Author(s) References Examples

Description

Collapse samples, mostly meant for technical replicates.

Usage

1
2
3
4
5
6
collapse_replicates(
  x,
  method = "sample",
  replicate_id = NULL,
  replicate_fields = NULL
)

Arguments

x

phyloseq-class object

method

Collapsing method. Only random sampling ("sample") implemented.

replicate_id

Replicate identifier. A character vector.

replicate_fields

Metadata fields used to determine replicates.

Value

Collapsed phyloseq object.

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

To cite the microbiome R package, see citation('microbiome')

Examples

1
2
3
4
data(atlas1006)
pseq <- collapse_replicates(atlas1006,
        method = "sample",
        replicate_fields = c("subject", "time"))

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.