EnrichmentScore2: Computes the enrichment score faster

View source: R/EnrichmentScore.R

EnrichmentScore2R Documentation

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)

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

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.

Value

ES

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

Author(s)

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

See Also

EnrichmentScore

Examples

#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

MiRSEA documentation built on May 29, 2024, 4:36 a.m.