Upgrade the KO level

up_level_KO(
  KO_abundance,
  level = "pathway",
  show_name = FALSE,
  modulelist = NULL,
  verbose = TRUE
)

Arguments

KO_abundance

KO_abundance

level

one of 'pathway', 'module', 'level1', 'level2', 'level3', 'module1', 'module2', 'module3'.

show_name

logical

modulelist

NULL or customized modulelist dataframe, must contain 'id','K_num','KOs','Description' columns. Take the `KOlist` as example, use custom_modulelist.

verbose

logical

Value

data.frame

Examples

data("KO_abundance_test")
KO_level1 <- up_level_KO(KO_abundance, level = "level1", show_name = TRUE)
#> =================================load KO_htable=================================
#> ==============KO_htable download time: 2023-07-31 03:21:54.040036===============
#> If you want to update KO_htable, use `update_htable(type='ko')`