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.

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