mp_extract_abundance | R Documentation |
Extracting the abundance metric from the MPSE or tbl_mpse, the 'mp_cal_abundance' must have been run with action='add'.
mp_extract_abundance(x, taxa.class = "all", topn = NULL, rmun = FALSE, ...)
## S4 method for signature 'MPSE'
mp_extract_abundance(x, taxa.class = "all", topn = NULL, rmun = FALSE, ...)
## S4 method for signature 'tbl_mpse'
mp_extract_abundance(x, taxa.class = "all", topn = NULL, rmun = FALSE, ...)
## S4 method for signature 'grouped_df_mpse'
mp_extract_abundance(x, taxa.class = "all", topn = NULL, rmun = FALSE, ...)
x |
MPSE or tbl_mpse object |
taxa.class |
character the name of taxonomy class level what you want to extract |
topn |
integer the number of the top most abundant, default is NULL. |
rmun |
logical whether to remove the unknown taxa, such as "g__un_xxx", default is FALSE (the unknown taxa class will be considered as 'Others'). |
... |
additional parameters |
Shuangbin Xu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.