Nothing
##' semantic similarity between two MeSH term vectors
##'
##'
##' @title meshSim
##' @param meshID1 MeSH term vector
##' @param meshID2 MeSH term vector
##' @param measure one of "Wang", "Resnik", "Rel", "Jiang" and "Lin"
##' @param semData annotation data for semantic measurement, output by meshdata function
##' @return score matrix
##' @importFrom GOSemSim termSim
##' @export
##' @examples
##' ## hsamd <- meshdata("MeSH.Hsa.eg.db", category='A', computeIC=T, database="gendoo")
##' data(hsamd)
##' meshSim("D000009", "D009130", semData=hsamd, measure="Resnik")
##' @author Guangchuang Yu \url{https://guangchuangyu.github.io}
meshSim <- function(meshID1,
meshID2,
measure = "Wang",
semData) {
if (!exists(".meshesEnv")) .initial()
scores <- termSim(meshID1, meshID2, semData, measure)
if(nrow(scores) == 1 & ncol(scores) == 1)
scores <- as.numeric(scores)
return(scores)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.