Learn R Programming

dada2 (version 1.0.3)

getSequences: Get vector of sequences from input object.

Description

This function extracts the unique sequences from several different data objects, including including dada-class and derep-class objects, as well as data.frame objects that have both $sequence and $abundance columns. This function wraps the getUniques function, but return only the names (i.e. the sequences).

Usage

getSequences(object)

Arguments

object
(Required). The object from which to extract the sequences.

Value

character. A character vector of the sequences.

Examples

Run this code
derep1 = derepFastq(system.file("extdata", "sam1F.fastq.gz", package="dada2"))
dada1 <- dada(derep1, err=tperr1)
getSequences(derep1)
getSequences(dada1)
getSequences(dada1$clustering)

Run the code above in your browser using DataLab