add_refseq: Add 'refseq' Slot for 'dada2' based 'phyloseq' Object

View source: R/add_refseq.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 taxa_names 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 sequences as rownames.

tag

Provide name for Ids, Default="ASV".

Value

phyloseq-class object

Author(s)

Contact: Sudarshan A. Shetty sudarshanshetty9@gmail.com

Examples


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


microbiome/microbiome documentation built on Dec. 12, 2024, 2:45 p.m.