Calculate the presence/absence of data in certain pathway.
calc_binary (tibble_ko, y_axis, data_experiment = NULL, binary = TRUE,
metabolism = FALSE)
a tibble object from mapping_ko.
a character, indicating the pathway to analyze.
optional. a data frame object containing metadata information.
optional. a logical value, indicating whether you want to calculate presence/absence or abundance of KOs per pathway.
optional. a logical value, if TRUE it will show the metabolism table.
A data frame containing the presence/absence (1/0) of each pathway within each bin_name. calc_binary(ko_bin_mapp, Pathway)
This function calculates the presence or absence of a pathway by counting the number of times it appears (or not) in the dataset.
# calc_binary (ko_bin_mapp, Pathway, binary = T, metabolism = T)