Introduction
MeSH (Medical Subject Headings) is the NLM (U.S. National Library of Medicine) controlled vocabulary used to manually index articles for MEDLINE/PubMed. MeSH is comprehensive life science vocabulary. MeSH has 19 categories and MeSH.db
contains 16 of them. That is:
Abbreviation | Category |
---|---|
A | Anatomy |
B | Organisms |
C | Diseases |
D | Chemicals and Drugs |
E | Analytical, Diagnostic and Therapeutic Techniques and Equipment |
F | Psychiatry and Psychology |
G | Phenomena and Processes |
H | Disciplines and Occupations |
I | Anthropology, Education, Sociology and Social Phenomena |
J | Technology and Food and Beverages |
K | Humanities |
L | Information Science |
M | Persons |
N | Health Care |
V | Publication Type |
Z | Geographical Locations |
MeSH terms were associated with Entrez Gene ID by three methods, gendoo
, gene2pubmed
and RBBH
(Reciprocal Blast Best Hit).
Method | Way of corresponding Entrez Gene IDs and MeSH IDs |
---|---|
Gendoo | Text-mining |
gene2pubmed | Manual curation by NCBI teams |
RBBH | sequence homology with BLASTP search (E-value<10-50) |
Enrichment Analysis
Please go to https://yulab-smu.github.io/clusterProfiler-book/chapter9.html for full vignette of enrichment analysis using MeSH.
Semantic Similarity
meshes
implemented four IC-based methods (i.e. Resnik(Philip 1999), Jiang(Jiang and Conrath 1997), Lin(Lin 1998) and Schlicker(Schlicker et al. 2006)) and one graph-structure based method (i.e. Wang(Wang et al. 2007)). For algorithm details, please refer to the vignette of GOSemSim package(Yu et al. 2010)
meshSim
function is designed to measure semantic similarity between two MeSH term vectors.
library(meshes)
## hsamd <- meshdata("MeSH.Hsa.eg.db", category='A', computeIC=T, database="gendoo")
data(hsamd)
meshSim("D000009", "D009130", semData=hsamd, measure="Resnik")
## [1] 0.2910261
## [1] 0.521396
## [1] 0.4914785
## [1] 0.5557103
## D017629 D002890 D008928
## D001369 0.2886598 0.1923711 0.2193326
## D002462 0.6521739 0.2381925 0.2809552
geneSim
function is designed to measure semantic similarity among two gene vectors.
## [1] 0.487
## 835 5261 241 994
## 241 0.732 0.337 1.000 0.438
## 251 0.526 0.588 0.487 0.597
Need helps?
If you have questions/issues, please visit meshes homepage first. Your problems are mostly documented. If you think you found a bug, please follow the guide and provide a reproducible example to be posted on github issue tracker. For questions, please post to Bioconductor support site and tag your post with meshes.
For Chinese user, you can follow me on WeChat (微信).
Session Information
Here is the output of sessionInfo()
on the system on which this document was compiled:
## R version 4.0.0 (2020-04-24)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 18.04.4 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.11-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.11-bioc/R/lib/libRlapack.so
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 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] parallel stats graphics grDevices utils datasets methods
## [8] base
##
## other attached packages:
## [1] meshes_1.14.0 DOSE_3.14.0 MeSH.db_1.13.0
## [4] MeSH.Hsa.eg.db_1.13.0 MeSHDbi_1.24.0 BiocGenerics_0.34.0
##
## loaded via a namespace (and not attached):
## [1] enrichplot_1.8.0 bit64_0.9-7 RColorBrewer_1.1-2
## [4] progress_1.2.2 httr_1.4.1 tools_4.0.0
## [7] R6_2.4.1 DBI_1.1.0 colorspace_1.4-1
## [10] tidyselect_1.0.0 gridExtra_2.3 prettyunits_1.1.1
## [13] bit_1.1-15.2 compiler_4.0.0 Biobase_2.48.0
## [16] scatterpie_0.1.4 xml2_1.3.2 triebeard_0.3.0
## [19] scales_1.1.0 ggridges_0.5.2 stringr_1.4.0
## [22] digest_0.6.25 rmarkdown_2.1 pkgconfig_2.0.3
## [25] htmltools_0.4.0 rlang_0.4.5 RSQLite_2.2.0
## [28] prettydoc_0.3.1 gridGraphics_0.5-0 farver_2.0.3
## [31] jsonlite_1.6.1 BiocParallel_1.22.0 GOSemSim_2.14.0
## [34] dplyr_0.8.5 magrittr_1.5 ggplotify_0.0.5
## [37] GO.db_3.10.0 Matrix_1.2-18 Rcpp_1.0.4.6
## [40] munsell_0.5.0 S4Vectors_0.26.0 viridis_0.5.1
## [43] lifecycle_0.2.0 stringi_1.4.6 yaml_2.2.1
## [46] ggraph_2.0.2 MASS_7.3-51.6 plyr_1.8.6
## [49] qvalue_2.20.0 grid_4.0.0 blob_1.2.1
## [52] ggrepel_0.8.2 DO.db_2.9 crayon_1.3.4
## [55] lattice_0.20-41 graphlayouts_0.7.0 cowplot_1.0.0
## [58] splines_4.0.0 hms_0.5.3 knitr_1.28
## [61] pillar_1.4.3 fgsea_1.14.0 igraph_1.2.5
## [64] reshape2_1.4.4 stats4_4.0.0 fastmatch_1.1-0
## [67] glue_1.4.0 evaluate_0.14 BiocManager_1.30.10
## [70] data.table_1.12.8 vctrs_0.2.4 tweenr_1.0.1
## [73] urltools_1.7.3 gtable_0.3.0 purrr_0.3.4
## [76] polyclip_1.10-0 tidyr_1.0.2 assertthat_0.2.1
## [79] ggplot2_3.3.0 xfun_0.13 ggforce_0.3.1
## [82] europepmc_0.3 tidygraph_1.1.2 viridisLite_0.3.0
## [85] tibble_3.0.1 rvcheck_0.1.8 AnnotationDbi_1.50.0
## [88] memoise_1.1.0 IRanges_2.22.0 ellipsis_0.3.0
References
Jiang, Jay J., and David W. Conrath. 1997. “Semantic Similarity Based on Corpus Statistics and Lexical Taxonomy.” Proceedings of 10th International Conference on Research in Computational Linguistics. http://www.citebase.org/abstract?id=oai:arXiv.org:cmp-lg/9709008.
Lin, Dekang. 1998. “An Information-Theoretic Definition of Similarity.” In Proceedings of the 15th International Conference on Machine Learning, 296—304. https://doi.org/10.1.1.55.1832.
Philip, Resnik. 1999. “Semantic Similarity in a Taxonomy: An Information-Based Measure and Its Application to Problems of Ambiguity in Natural Language.” Journal of Artificial Intelligence Research 11:95–130.
Schlicker, Andreas, Francisco S Domingues, Jorg Rahnenfuhrer, and Thomas Lengauer. 2006. “A New Measure for Functional Similarity of Gene Products Based on Gene Ontology.” BMC Bioinformatics 7:302. https://doi.org/1471-2105-7-302.
Wang, James Z, Zhidian Du, Rapeeporn Payattakool, Philip S Yu, and Chin-Fu Chen. 2007. “A New Method to Measure the Semantic Similarity of Go Terms.” Bioinformatics (Oxford, England) 23 (May):1274–81. https://doi.org/btm087.
Yu, Guangchuang, and Qing-Yu He. 2016. “ReactomePA: An R/Bioconductor Package for Reactome Pathway Analysis and Visualization.” Molecular BioSystems 12 (2):477–79. https://doi.org/10.1039/C5MB00663E.
Yu, Guangchuang, Fei Li, Yide Qin, Xiaochen Bo, Yibo Wu, and Shengqi Wang. 2010. “GOSemSim: An R Package for Measuring Semantic Similarity Among Go Terms and Gene Products.” Bioinformatics 26 (april):976–78. https://doi.org/10.1093/bioinformatics/btq064.
Yu, Guangchuang, Li-Gen Wang, Yanyan Han, and Qing-Yu He. 2012. “clusterProfiler: an R Package for Comparing Biological Themes Among Gene Clusters.” OMICS: A Journal of Integrative Biology 16 (5):284–87. https://doi.org/10.1089/omi.2011.0118.
Yu, Guangchuang, Li-Gen Wang, Guang-Rong Yan, and Qing-Yu He. 2015. “DOSE: An R/Bioconductor Package for Disease Ontology Semantic and Enrichment Analysis.” Bioinformatics 31 (4):608–9. https://doi.org/10.1093/bioinformatics/btu684.