Learn R Programming

MiRSEA (version 1.1.1)

EnrichmentScore2: Computes the enrichment score faster

Description

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

Usage

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

Value

ES

Enrichment score (real number between -1 and +1)

Arguments

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

Author

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

Details

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.

See Also

EnrichmentScore

Examples

Run this code
#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

Run the code above in your browser using DataLab