perm_weightedKS_ofCSEA: Calculate the permutations of random on-set genes

Description Usage Arguments Value Examples

Description

For a certain weighted gene list(weights), randomly select a certain number(numOnList) of genes to be on-set genes, and calculate ES

Usage

1
perm_weightedKS_ofCSEA(weights, numOnList, nPermu = 1000)

Arguments

weights

A vector of weights. The name of each value in the vector is it's Entrez gene ID

numOnList

An positive integer, indicating the number of genes to be randomly selected

nPermu

Number of permutations, default 1000

Value

A numeric vector of enrichment scores of randomly selected genes

Examples

1
2
3
weight.call<-c(0.1,0.2,0.5,0.7,0.9,1)
names(weight.call)<-1:6
test.tmp<-perm_weightedKS_ofCSEA(weight.call,6)

wangxlab/uniConSigPreCal documentation built on May 23, 2019, 9:31 a.m.