Description Usage Arguments Value Author(s) Source Examples
quickenrichmentscore
1 | quickenrichmentscore(S, S1, List)
|
S |
rank of up-regualted genes |
S1 |
rank of down-regulated genes |
List |
a rank vector |
similarity based on averaged GSEA Enrichment score
Yang Cao
http://bioconductor.org/packages/GeneExpressionSignature/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(Psoriasis_Etanercept_LogFC)
dat <- apply(-Psoriasis_Etanercept_LogFC, 2, rank)
SignatureLength <- 250
# caculate similarity only for some columns
sim_mat <- matrix(-2, ncol=ncol(dat), nrow=ncol(dat))
for (i in 11:15) {
for (j in 1:10) {
sim_mat[j,i] <- (quickenrichmentscore(which(dat[,j]<=SignatureLength),
which(dat[,j]>=nrow(dat)-SignatureLength+1), dat[,i]) +
quickenrichmentscore(which(dat[,i]<=SignatureLength),
which(dat[,i]>=nrow(dat)-SignatureLength+1), dat[,j]) )/2
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.