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.2.1 (2022-06-23)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.5 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.15-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.15-bioc/R/lib/libRlapack.so
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_GB LC_COLLATE=C
## [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
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] mgcv_1.8-40 nlme_3.1-160 famat_1.6.6 BiocStyle_2.24.0
##
## loaded via a namespace (and not attached):
## [1] fgsea_1.22.0 colorspace_2.0-3 ggtree_3.4.4
## [4] ellipsis_0.3.2 qvalue_2.28.0 XVector_0.36.0
## [7] aplot_0.1.8 farver_2.1.1 graphlayouts_0.8.2
## [10] ggrepel_0.9.1 bit64_4.0.5 scatterpie_0.1.8
## [13] AnnotationDbi_1.58.0 fansi_1.0.3 codetools_0.2-18
## [16] splines_4.2.1 cachem_1.0.6 GOSemSim_2.22.0
## [19] knitr_1.40 polyclip_1.10-0 jsonlite_1.8.2
## [22] GO.db_3.15.0 png_0.1-7 ggforce_0.4.1
## [25] BiocManager_1.30.18 compiler_4.2.1 httr_1.4.4
## [28] ontologyIndex_2.10 assertthat_0.2.1 Matrix_1.5-1
## [31] fastmap_1.1.0 lazyeval_0.2.2 cli_3.4.1
## [34] tweenr_2.0.2 htmltools_0.5.3 tools_4.2.1
## [37] igraph_1.3.5 gtable_0.3.1 glue_1.6.2
## [40] GenomeInfoDbData_1.2.8 reshape2_1.4.4 DO.db_2.9
## [43] dplyr_1.0.10 fastmatch_1.1-3 Rcpp_1.0.9
## [46] enrichplot_1.16.2 Biobase_2.56.0 jquerylib_0.1.4
## [49] vctrs_0.4.2 Biostrings_2.64.1 ape_5.6-2
## [52] ggraph_2.1.0 xfun_0.33 stringr_1.4.1
## [55] lifecycle_1.0.3 clusterProfiler_4.4.4 DOSE_3.22.1
## [58] org.Hs.eg.db_3.15.0 zlibbioc_1.42.0 MASS_7.3-58.1
## [61] scales_1.2.1 tidygraph_1.2.2 reactome.db_1.81.0
## [64] parallel_4.2.1 gprofiler2_0.2.1 RColorBrewer_1.1-3
## [67] yaml_2.3.5 curl_4.3.3 memoise_2.0.1
## [70] gridExtra_2.3 ggplot2_3.3.6 downloader_0.4
## [73] ggfun_0.0.7 yulab.utils_0.0.5 sass_0.4.2
## [76] stringi_1.7.8 RSQLite_2.2.18 S4Vectors_0.34.0
## [79] tidytree_0.4.1 BiocGenerics_0.42.0 BiocParallel_1.30.4
## [82] GenomeInfoDb_1.32.4 rlang_1.0.6 pkgconfig_2.0.3
## [85] bitops_1.0-7 evaluate_0.17 lattice_0.20-45
## [88] purrr_0.3.5 treeio_1.20.2 patchwork_1.1.2
## [91] htmlwidgets_1.5.4 shadowtext_0.1.2 bit_4.0.4
## [94] tidyselect_1.2.0 plyr_1.8.7 magrittr_2.0.3
## [97] bookdown_0.29 R6_2.5.1 IRanges_2.30.1
## [100] generics_0.1.3 DBI_1.1.3 pillar_1.8.1
## [103] withr_2.5.0 KEGGREST_1.36.3 RCurl_1.98-1.9
## [106] tibble_3.1.8 crayon_1.5.2 utf8_1.2.2
## [109] plotly_4.10.0 rmarkdown_2.17 viridis_0.6.2
## [112] grid_4.2.1 data.table_1.14.2 blob_1.2.3
## [115] digest_0.6.29 tidyr_1.2.1 gridGraphics_0.5-1
## [118] stats4_4.2.1 munsell_0.5.0 viridisLite_0.4.1
## [121] ggplotify_0.1.0 bslib_0.4.0