View source: R/fileutilities.R
ct.rankSimple | R Documentation |
This function takes in a supplied results data.frame, optionally transforms it into a 'simplifiedResult', and returns the ranks of the target-level signals.
ct.rankSimple(df, top = c("enrich", "deplete"))
df |
A results data.frame, in either raw or simplified form. Will be converted to simplified form if necessary. |
top |
Determines the directionality of the ranking. 'enrich' defines ranks from the most enriched to the most depleted target; 'deplete' does the opposite |
A numeric vector of ranks, with length equal to the number of rows in the simplified data.frame.
Russell Bainer
data('resultsDF') df.simple <- ct.simpleResult(resultsDF) sr <- ct.rankSimple(resultsDF) all((df.simple$best.p[sr == 1] == 0), (df.simple$direction[sr == 1] == 'enrich')) sr <- ct.rankSimple(resultsDF, 'deplete') all((df.simple$best.p[sr == 1] == 0), (df.simple$direction[sr == 1] == 'deplete'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.