Extract the class of pathways.

get_pathway_class(object)

Arguments

object

pathway_class object.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

library(metpath)
kegg_hsa_pathway = get_kegg_pathway(local = TRUE, organism = "hsa")
#> This database is downloaded in 2021-12-13
kegg_hsa_pathway
#> ---------Pathway source&version---------
#> KEGG  &  2021-12-13
#> -----------Pathway information------------
#> 345  pathways
#> 334  pathways have genes
#> 0  pathways have proteins
#> 281  pathways have compounds
#> Pathway class (top 10): Metabolism; Carbohydrate metabolism;Metabolism; Lipid metabolism

get_pathway_class(kegg_hsa_pathway)
#> # A tibble: 43 × 2
#>    class                                                                       n
#>    <chr>                                                                   <int>
#>  1 Cellular Processes; Cell growth and death                                   8
#>  2 Cellular Processes; Cell motility                                           1
#>  3 Cellular Processes; Cellular community - eukaryotes                         5
#>  4 Cellular Processes; Transport and catabolism                                7
#>  5 Environmental Information Processing; Membrane transport                    1
#>  6 Environmental Information Processing; Signal transduction                  26
#>  7 Environmental Information Processing; Signaling molecules and interact…     5
#>  8 Genetic Information Processing; Folding, sorting and degradation            7
#>  9 Genetic Information Processing; Replication and repair                      7
#> 10 Genetic Information Processing; Transcription                               3
#> # … with 33 more rows