Calculate the percentage of KO in certain pathway.

calc_percentage(tibble_ko, y_axis, data_experiment=NULL)

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.

Details

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

Examples

calc_percentage(ko_bin_mapp, Pathway)
#> # A tibble: 719 x 4 #> # Groups: Bin_name [6] #> Pathway_number_of_total_elements Pathway Bin_name Percentage #> <chr> <chr> <chr> <dbl> #> 1 map00010 (29) map00010 Bin_1 27.6 #> 2 map00020 (16) map00020 Bin_1 31.2 #> 3 map00030 (21) map00030 Bin_1 28.6 #> 4 map00040 (3) map00040 Bin_1 33.3 #> 5 map00051 (9) map00051 Bin_1 44.4 #> 6 map00052 (8) map00052 Bin_1 12.5 #> 7 map00053 (4) map00053 Bin_1 50 #> 8 map00061 (8) map00061 Bin_1 25 #> 9 map00071 (2) map00071 Bin_1 100 #> 10 map00072 (2) map00072 Bin_1 100 #> # … with 709 more rows