subset_func_and_abun_tables: Utility function to subset function copy number and taxonomic...

View source: R/utils.R

subset_func_and_abun_tablesR Documentation

Utility function to subset function copy number and taxonomic abundance tables

Description

The input tables will be returned except subset to the same taxa ids. Any functions and / or samples that are totally absent after this step will be dropped.

Usage

subset_func_and_abun_tables(func_table, abun_table, func_ids = NULL)

Arguments

func_table

data.frame object containing function copy numbers, with rows as functions and columns as taxa.

abun_table

data.frame object containing taxonomic abundances across samples, with rows as taxa and columns as samples.

func_ids

optional character vector of function ids to retain (all other rows of func_tab will be removed).

Value

list containing subsetted function and abundance data.frames as separate elements.


FuncDiv documentation built on March 31, 2023, 8:12 p.m.