add_refseq: Add refseq slot for dada2 based phyloseq object

View source: R/extensions.R

add_refseqR Documentation

Add refseq slot for dada2 based phyloseq object

Description

Utility to add refseq slot for dada2 based phyloseq object. Here, the rownames which are unique sequences, are stored in refseq slot of phyloseq. Sequence ids are converted to ids using tag option.

Usage

add_refseq(x, tag = "ASV")

Arguments

x

phyloseq-class object with seqs as rownames.

tag

Provide name for Ids, Default="ASV".

Value

phyloseq-class object

Examples


# ps <- add_refseq(p0,tag="ASV")
# ps


microsud/microbiomeutilities documentation built on Nov. 29, 2022, 12:18 a.m.