mergeSequenceTables: Merge two or more sample-by-sequence observation matrices.

Description Usage Arguments Value See Also Examples

Description

This function combines sequence tables together into one merged sequences table.

Usage

1
mergeSequenceTables(table1, table2, ..., orderBy = "abundance")

Arguments

table1

(Required). Named integer matrix. Rownames correspond to samples and column names correspond to sequences. The output of makeSequenceTable.

table2

(Required). Named integer matrix. Rownames correspond to samples and column names correspond to sequences. The output of makeSequenceTable.

...

(Optional). Additional sequence tables.

orderBy

(Optional). character(1). Default "abundance". Specifies how the sequences (columns) of the returned table should be ordered (decreasing). Valid values: "abundance", "nsamples", NULL.

Value

Named integer matrix. A row for each sample, and a column for each unique sequence across all the samples. Note that the columns are named by the sequence which can make display unwieldy.

See Also

makeSequenceTable

Examples

1
2
3
4
## Not run: 
  mergetab <- mergeSequenceTables(seqtab1, seqtab2, seqtab3)

## End(Not run)


Search within the dada2 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.