clusterGeneSim: Similarity score between clusters of genes based on genes...

Description Usage Arguments Details Value Methods (by class) Author(s) See Also Examples

View source: R/clusterGeneSim.R

Description

Looks for the similarity between genes of a group and then between each group's genes.

Usage

1
2
3
4
clusterGeneSim(cluster1, cluster2, info, method = c("max", "rcmax.avg"), ...)

## S4 method for signature 'character,character,GeneSetCollection'
clusterGeneSim(cluster1, cluster2, info, method = c("max", "rcmax.avg"), ...)

Arguments

cluster1

A vector with genes.

cluster2

A vector with genes.

info

A GeneSetCollection or a list of genes and the pathways they are involved.

method

A vector with two or one argument to be passed to combineScores the first one is used to summarize the similarities of genes, the second one for clusters.

...

Other arguments passed to combineScores

Details

Differs with clusterSim that first each combination between genes is calculated, and with this values then the comparison between the two clusters is done. Thus applying combineScores twice, one at gene level and another one at cluster level.

Value

Returns a similarity score between the genes of the two clusters.

Methods (by class)

Author(s)

Llu<c3><ad>s Revilla

See Also

mclusterGeneSim, combineScores and clusterSim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
if (require("org.Hs.eg.db")) {
    #Extract the paths of all genes of org.Hs.eg.db from KEGG (last update in
    # data of June 31st 2011)
    genes.kegg <- as.list(org.Hs.egPATH)
    clusterGeneSim(c("18", "81", "10"), c("100", "10", "1"), genes.kegg)
    clusterGeneSim(c("18", "81", "10"), c("100", "10", "1"), genes.kegg,
                   c("avg", "avg"))
    clusterGeneSim(c("18", "81", "10"), c("100", "10", "1"), genes.kegg,
                   c("avg", "rcmax.avg"))
    (clus <- clusterGeneSim(c("18", "81", "10"), c("100", "10", "1"),
                            genes.kegg, "avg"))
    combineScores(clus, "rcmax.avg")
} else {
    warning('You need org.Hs.eg.db package for this example')
}

BioCor documentation built on Nov. 8, 2020, 4:56 p.m.