Calculate the presence/absence of KO in certain pathway.

calc_binary(tibble_ko, y_axis, data_experiment=NULL, binary=TRUE,
metabolism=FALSE)

Arguments

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.

Details

This function is part of a package used for the analysis of bins metabolism.

Examples

calc_binary(ko_bin_mapp, Pathway)
#> # A tibble: 1,410 x 3 #> Pathway Bin_name Presence_absence #> <chr> <chr> <int> #> 1 map00010 Bin_1 1 #> 2 map00010 Bin_10 1 #> 3 map00010 Bin_113 1 #> 4 map00010 Bin_12 1 #> 5 map00010 Bin_2 1 #> 6 map00010 Bin_56 1 #> 7 map00020 Bin_1 1 #> 8 map00020 Bin_10 1 #> 9 map00020 Bin_113 1 #> 10 map00020 Bin_12 1 #> # … with 1,400 more rows