Sun_function {dSimer} | R Documentation

## Sun's function measure of disease similarity calculating

### Description

given two vectors of diseases and a list of disease-go term associations, this function will calculate disease similarity by method Sun_function

### Usage

    Sun_function(D1, D2, d2go)

### Arguments

`D1` | a vector consists disease ids
`D2` | another vector consists disease ids
`d2go` | a list of disease-go term associations

### Value

a matrix of disease disease simialrity which rownames is D1 and colnames is D2

### Author(s)

Peng Ni, Min Li

### References

Sun K, Goncalves JP, Larminie C. Predicting disease associations via biological network analysis[J]. BMC bioinformatics, 2014, 15(1): 304.

### See Also

`get_GOterm2GeneAssos`, `HypergeometricTest`

### Examples

    ## get a sample of disease-GO associations
    data(d2go_sample)

    ##### the entire disease-GO associations can be obtained by follows:
    ## go2g<-get_GOterm2GeneAssos(GOONTOLOGY = "BP", geneid="SYMBOL") #get go-gene associations
    ## data(d2g_fundo_symbol)
    ## d2go<-HypergeometricTest(d2g = d2g_fundo_symbol,go2g = go2g)
    ##### ###################################################

    ds<-names(d2go_sample)
    Sun_function(ds,ds,d2go_sample)

[Package dSimer version 1.6.0 Index]