##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (start, end, chromosome, strand, biomart, dp = NULL)
{
if (missing(start))
stop("Need to specify a start for creating a GeneRegion")
pt <- getClass("GeneRegion")@prototype
if (is.null(dp))
dp <- pt@dp
if (is.numeric(chromosome))
chromosome = as.character(chromosome)
new("GeneRegion", start = start, end = end, chromosome = chromosome,
strand = strand, biomart = biomart, dp = dp)
}
Run the code above in your browser using DataLab