Description Usage Arguments Value Examples
The similarity between genes(modified the dDAGgeneSim in dnet)
1 2 3 4 |
g |
an object of class "igraph" |
genes |
the genes between which pair-wise semantic similarity is calculated |
method.gene |
the method used for how to derive semantic similarity between genes from semantic similarity between terms |
method.term |
the method used to measure semantic similarity between terms |
force |
logical |
fast |
logical to indicate whether a vectorised fast computation is used |
parallel |
logical to indicate whether parallel computation |
multicores |
parallel computation |
verbose |
logical |
a sparse matrix of similarity between input genes
1 2 3 4 5 6 7 8 9 10 11 12 13 | #load HPPA as igraph object
HPPA <-dRDataLoader(RData='ig.HPPA')
g <- ig.HPPA
#load human genes annotated by HPPA
Hs.egHPPA <- dRDataLoader(RData='org.Hs.egHPPA')
dag <- dDAGannotate(g, annotations=org.Hs.egHPPA,
path.mode="all_paths", verbose=TRUE)
allgenes <- unique(unlist(V(dag)$annotations))
genes <- sample(allgenes,5)
#just for an example:
#geneSim(g = dag, genes = genes, method.gene="BM.average",
# method.term = "Resnik", parallel = TRUE,
# multicores = 2, verbose = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.