View source: R/CALC-calc_binary.R
calc_binary | R Documentation |
Calculate the presence/absence of data in certain pathway.
calc_binary (tibble_ko, y_axis, data_experiment = NULL, binary = TRUE,
metabolism = FALSE)
tibble_ko |
a tibble object from mapping_ko. |
y_axis |
a character, indicating the pathway to analyze. |
data_experiment |
optional. a data frame object containing metadata information. |
binary |
optional. a logical value, indicating whether you want to calculate presence/absence or abundance of KOs per pathway. |
metabolism |
optional. a logical value, if TRUE it will show the metabolism table. |
This function calculates the presence or absence of a pathway by counting the number of times it appears (or not) in the dataset.
A data frame containing the presence/absence (1/0) of each pathway within each bin_name. calc_binary(ko_bin_mapp, Pathway)
# calc_binary (ko_bin_mapp, Pathway, binary = T, metabolism = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.