randSubsetGeneList: randSubsetGeneList

View source: R/GoMiner.R

randSubsetGeneListR Documentation

randSubsetGeneList

Description

retrieve n unique random genes

Usage

randSubsetGeneList(geneList, ngenes)

Arguments

geneList

character vector geneList

ngenes

integer desired number of random genes

Value

returns a character vector of genes

Examples

## Not run: 
# GOGOA3.RData is too large to include in the R package
# so I need to load it from a file that is not in the package.
# Since this is in a file in my own file system, I could not
# include this as a regular example in the package.
# you can generate it using the package 'minimalistGODB'
# or you can retrieve it from https://github.com/barryzee/GO/tree/main/databases
load("/Users/barryzeeberg/personal/GODB_RDATA/goa_human/GOGOA3_goa_human.RData")
genes<-randSubsetGeneList(GOGOA3$genes[["biological_process"]],20)

## End(Not run)
 

GoMiner documentation built on June 8, 2025, 1:29 p.m.