The aim of famat is to allow users to determine functional links between metabolites and genes. These metabolites and genes lists may be related to a specific experiment/study, but famat only needs a gene symbols list and a Kegg Compound ids list. Using these lists, famat performs pathway enrichment analysis, direct interactions between elements inside pathways extraction, GO terms enrichment analysis, calculation of user’s elements centrality (number of direct interactions between an element and others inside a pathway) and extraction of information related to user’s elements.
Functions available are:Run this command line to install famat.
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("famat")
Then, load famat using library.
library(famat)
library(mgcv)
This function uses the metabolite list and the gene list provided by user to perform pathway enrichment analysis. Metabolites ids need to be Kegg compound ids, and genes ids need to be gene symbols. Three pathway databases are available: Kegg (“KEGG”), Wikipathways (“WP”) and Reactome (“REAC”).
data(genes)
data(meta)
listr=path_enrich("REAC", meta, genes)
## your input componentList have 2 components in background
## your input componentList have 2 components in network
Results are then stored into a list. This list must be used in “interactions” function. Pathways enrichment analysis is performed on genes using gprofiler2 and on metabolites using MPINet.
“Interactions” find all direct interactions between genes and metabolites of user’s lists in pathways obtained through pathways enrichment analysis, performed on KEGG, Reactome and Wikipathways pathways. So, this function needs results of “path_enrich” function performed on all these databases. Using direct interactions, centrality of a user’s element inside a pathway is calculated.
data(listk)
data(listr)
data(listw)
interactions_result = interactions(listk, listr, listw)
Results are then stored into a list. This list must be used in “compl_data” function. Direct interactions were collected from BioPax, KGML and GPML files parsed with PaxtoolsR, graphite and author’s parsers. “Interactions” just get interactions of enriched pathways from this direct interactions list.
This function complete information about elements and pathway obtained with “path_enrich” and “interactions”. A GO term enrichment analysis is performed on genes, pathways obtained through pathways enrichment analysis are filtered (they must contain at least 1/5 elements in user’s lists or a direct interaction between user’s elements) and a hierarchy parent-child is built with pathways and enriched GO terms. GO terms enrichment analysis is performed using clusterProfiler. Then, dataframes containing information about elements, interactions and GO terms are created, with an heatmap showing which user’s elements are in which pathways.
data(interactions_result)
compl_data_result <- compl_data(interactions_result)
Results are then stored into a list. This list must be used in “rshiny” function.
All results obtained with the three previous functions can be visualized using “rshiny” function. shiny is a R package allowing to create interfaces.
data(compl_data_result)
rshiny(compl_data_result)
After using this command line, the shiny interface appear.
Interface’s tabs are:Finally, a “Reset” button was made to go back to the initial results.
To conclude, famat has four important functions which have to be used one after another:
data(genes)
data(meta)
listk <- path_enrich("KEGG", meta, genes)
listr <- path_enrich("REAC", meta, genes)
listw <- path_enrich("WP", meta, genes)
interactions_result <- interactions(listk, listr, listw)
compl_data_result <- compl_data(interactions_result)
rshiny(compl_data_result)
sessionInfo()
## R version 4.4.0 beta (2024-04-15 r86425)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 22.04.4 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.19-bioc/R/lib/libRblas.so
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## time zone: America/New_York
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] mgcv_1.9-1 nlme_3.1-164 famat_1.14.0 BiocStyle_2.32.0
##
## loaded via a namespace (and not attached):
## [1] RColorBrewer_1.1-3 jsonlite_1.8.8 magrittr_2.0.3
## [4] farver_2.1.1 rmarkdown_2.26 fs_1.6.4
## [7] zlibbioc_1.50.0 vctrs_0.6.5 memoise_2.0.1
## [10] RCurl_1.98-1.14 ggtree_3.12.0 htmltools_0.5.8.1
## [13] curl_5.2.1 gridGraphics_0.5-1 sass_0.4.9
## [16] bslib_0.7.0 htmlwidgets_1.6.4 plyr_1.8.9
## [19] plotly_4.10.4 cachem_1.0.8 igraph_2.0.3
## [22] lifecycle_1.0.4 pkgconfig_2.0.3 Matrix_1.7-0
## [25] R6_2.5.1 fastmap_1.1.1 gson_0.1.0
## [28] GenomeInfoDbData_1.2.12 digest_0.6.35 aplot_0.2.2
## [31] enrichplot_1.24.0 colorspace_2.1-0 patchwork_1.2.0
## [34] AnnotationDbi_1.66.0 S4Vectors_0.42.0 RSQLite_2.3.6
## [37] org.Hs.eg.db_3.19.1 fansi_1.0.6 httr_1.4.7
## [40] polyclip_1.10-6 compiler_4.4.0 bit64_4.0.5
## [43] withr_3.0.0 BiocParallel_1.38.0 viridis_0.6.5
## [46] DBI_1.2.2 ggforce_0.4.2 MASS_7.3-60.2
## [49] HDO.db_0.99.1 tools_4.4.0 ape_5.8
## [52] scatterpie_0.2.2 glue_1.7.0 GOSemSim_2.30.0
## [55] grid_4.4.0 shadowtext_0.1.3 reshape2_1.4.4
## [58] fgsea_1.30.0 generics_0.1.3 gtable_0.3.5
## [61] tidyr_1.3.1 data.table_1.15.4 tidygraph_1.3.1
## [64] utf8_1.2.4 XVector_0.44.0 BiocGenerics_0.50.0
## [67] ggrepel_0.9.5 pillar_1.9.0 stringr_1.5.1
## [70] yulab.utils_0.1.4 splines_4.4.0 dplyr_1.1.4
## [73] tweenr_2.0.3 treeio_1.28.0 lattice_0.22-6
## [76] bit_4.0.5 tidyselect_1.2.1 GO.db_3.19.1
## [79] Biostrings_2.72.0 knitr_1.46 reactome.db_1.88.0
## [82] gridExtra_2.3 bookdown_0.39 IRanges_2.38.0
## [85] stats4_4.4.0 xfun_0.43 graphlayouts_1.1.1
## [88] Biobase_2.64.0 stringi_1.8.3 UCSC.utils_1.0.0
## [91] lazyeval_0.2.2 ggfun_0.1.4 yaml_2.3.8
## [94] evaluate_0.23 codetools_0.2-20 ggraph_2.2.1
## [97] tibble_3.2.1 qvalue_2.36.0 BiocManager_1.30.22
## [100] ggplotify_0.1.2 cli_3.6.2 ontologyIndex_2.12
## [103] munsell_0.5.1 jquerylib_0.1.4 Rcpp_1.0.12
## [106] GenomeInfoDb_1.40.0 gprofiler2_0.2.3 png_0.1-8
## [109] parallel_4.4.0 ggplot2_3.5.1 blob_1.2.4
## [112] clusterProfiler_4.12.0 DOSE_3.30.0 bitops_1.0-7
## [115] viridisLite_0.4.2 tidytree_0.4.6 scales_1.3.0
## [118] purrr_1.0.2 crayon_1.5.2 rlang_1.1.3
## [121] cowplot_1.1.3 fastmatch_1.1-4 KEGGREST_1.44.0