Learn R Programming

GeneAnswers (version 2.14.0)

geneAnswersSort: Sort enrichmentInfo of a GeneAnswers instance

Description

a function to sort enrichmentInfo data frame in GeneAnswers objects.

Usage

geneAnswersSort(x, sortBy = c("geneNum", "pvalue", "foldChange", "oddsRatio", "correctedPvalue"))

Arguments

x
a GeneAnswers instance
sortBy
sorted type

Value

return a new GeneAnswers instance with sorted by the specified type.

Details

sortBy could be one of "geneNum", "pvalue", "foldChange", "oddsRatio" and "correctedPvalue".

References

Feng, G., Du, P., Krett, N., Tessel, M., Rosen, S., Kibbe, W.A. and Lin, S.M., 'A collection of bioconductor methods to visualize gene-list annotations', BMC Research Notes 2010, 3:10

See Also

GeneAnswers-class

Examples

Run this code
example(GeneAnswers)
xx <- geneAnswersSort(x, sortBy='correctedPvalue')

Run the code above in your browser using DataLab