sampleTerms: samples genes from GO

Description Usage Arguments Value

Description

Generate random samples of genes from GO in such a way that GO terms with few annotations will have proportionately more genes than GO terms with lots of genes. This is accomplished by iterating over each GO term and adding sampled genes from the pool of available genes. The fraction of genes to add is based on a value from an exponential distribution.

Usage

1
  sampleTerms(terms, term2gene, nGenes = 2000, expRate = 4)

Arguments

terms

the set of GO terms to generate a sample for

term2gene

a list of the mapping of terms to genes

nGenes

the total number genes to sample from all genes annotated to the GO terms

Value

list, with the full set of sampled genes in one entry, and a term2gene list with only those genes that are in the sample


rmflight/ccPaper documentation built on May 27, 2019, 9:31 a.m.