Learn R Programming

GeneOverlap (version 1.8.0)

getGenomeSize: Accessors for the "genome.size" slot of the GeneOverlap class

Description

The genome.size slot contains the number of genes in the genome as an integer.

Usage

## S3 method for class 'GeneOverlap':
getGenomeSize(object)
## S3 method for class 'GeneOverlap':
setGenomeSize(object) <- value

Arguments

object
A GeneOverlap object.
value
An integer representing genomic background.

Value

  • An integer representing the genome size.

Details

After setGenomeSize function is called, the tested Boolean label will be reset to false.

See Also

GeneOverlap-class

Examples

Run this code
data(GeneOverlap)
go.obj <- newGeneOverlap(hESC.ChIPSeq.list$H3K27me3, 
                         hESC.RNASeq.list$"Exp Medium", 
                         genome.size=gs.RNASeq)
getGenomeSize(go.obj)
v.gs <- c(12e3, 14e3, 16e3, 18e3, 20e3)
setNames(sapply(v.gs, function(g) {
    setGenomeSize(go.obj) <- g
    go.obj <- testGeneOverlap(go.obj)
    getPval(go.obj)
}), v.gs)

Run the code above in your browser using DataLab