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

View source: R/EnrichmentScore.R

Computes the enrichment score of a microRNA(miRNA) set in miRNA list.

1 | ```
EnrichmentScore2(miR.list, miR.set, weighted.score.type = 1, correl.vector = NULL)
``` |

`miR.list` |
The ordered miRNA list,integers indicating the original position in the input dataset |

`miR.set` |
A miRNA set,integers indicating the location of those miRNAs in the input dataset |

`weighted.score.type` |
Type of score, weight=0 (unweighted = Kolmogorov-Smirnov), 1 (weighted), and 2 (over-weighted) |

`correl.vector` |
A vector with the correlations (e.g.tw-scores) corresponding to the miRNAs in the miRNA list |

Computes the weighted enrichment score of a miRNA set in miRNA list. It is the same calculation as in EnrichmentScore but faster without producing the RES, arg.RES and tag.indicator outputs. This call is intended to be used to asses the enrichment of random permutations rather than the observed one.The weighted score type is the exponent of the correlation.

`ES ` |
Enrichment score (real number between -1 and +1) |

Junwei Hanhanjunwei1981@163.com,Siyao Liu liusiyao29@163.com

1 2 3 4 5 | ```
#Computes the enrichment score of a miRNA set in miRNA list
R2<-EnrichmentScore2(miR.list=sample(1:100),miR.set=c(39,28,37,38,11,3,34),
correl.vector=rep(0.04,100))
#show the result
R2$ES
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.