Description Usage Arguments Value Functions See Also Examples
Getting leading-edge indices from a vector
1 2 3 4 5 6 7 8 9 10 11 12 13 | getLeadingEdgeIndexFromVector(
x,
index,
comparison = c("greater", "less"),
reference = c("background", "geneset")
)
getLeadingEdgeIndexFromMatrix(
x,
index,
comparison = c("greater", "less"),
reference = c("background", "geneset")
)
|
x |
A numeric vector ( |
index |
An integer vector, indicating the indices of genes in a gene-set. |
comparison |
Character string, are values greater than or less than the reference value considered as leading-edge? This depends on the type of value requested by the user in |
reference |
Character string, which reference is used? If |
An integer vector, indicating the indices of leading-edge genes.
getLeadingEdgeIndexFromMatrix
: x
is a matrix
.
1 2 3 4 5 6 7 8 9 | myProfile <- c(rnorm(5, 3), rnorm(15, -3), rnorm(100, 0))
getLeadingEdgeIndexFromVector(myProfile, 1:20)
getLeadingEdgeIndexFromVector(myProfile, 1:20, comparison="less")
getLeadingEdgeIndexFromVector(myProfile, 1:20, comparison="less", reference="geneset")
myProfile2 <- c(rnorm(15, 3), rnorm(5, -3), rnorm(100, 0))
myProfileMat <- cbind(myProfile, myProfile2)
getLeadingEdgeIndexFromMatrix(myProfileMat, 1:20)
getLeadingEdgeIndexFromMatrix(myProfileMat, 1:20, comparison="less")
getLeadingEdgeIndexFromMatrix(myProfileMat, 1:20, comparison="less", reference="geneset")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.