bin_taxonomy | R Documentation |
This is the primary data formatting function of most bngal
pipelines,
including the first step of network analysis.
bin_taxonomy(
asv.table,
meta.data,
tax.level,
remove.singletons = TRUE,
cutoff.val,
direction,
compositional = TRUE
)
asv.table |
ASV count table named by Silva-138 L7 taxonomies. Ideally rarefied and quality filtered as necessary, though this script automatically removes singletons in the dataset.
First column must be named " |
meta.data |
Sample metadata corresponding to asv.table. |
tax.level |
Level of taxonomic classification at which to calculate relative abundance. |
remove.singletons |
Optional Drop singleton ASV observations from the dataset. Default = |
cutoff.val |
Optional Cutoff value for ASVs that comprise more or less than this fraction of a sample's community (values |
direction |
Optional Return binned data |
compositional |
Optional Determines whether output returns relative abundance ( |
# return long-form class-level count data
bin_taxonomy(asv_table, metadata, "class", compositional = FALSE)
# return long-form family-level relative abundance data
bin_taxonomy(asv_table, metadata, "family")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.