Learn R Programming

gQTLseq (version 0.0.10)

tiling: simple tiling of a chromosome at specified tile width

Description

simple tiling of a chromosome at specified tile width. Currently hardcodes hg19 chromosome lengths

Usage

tiling(chr = "chr1", width = 1e+06)

Arguments

chr
TxDb-friendly chromosome name
width
width of tiles -- simple remainder at last tile

Value

  • GRanges instance

Examples

Run this code
##---- 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 (chr = "chr1", width = 1e+06) 
{
    require(GenomicRanges)
    basic = cchunks(chr, width)
    ans = GRanges(chr, IRanges(start = basic[-length(basic)], 
        end = basic[-1] - 1))
    end(ans[length(ans)]) = end(ans[length(ans)]) + 1
    ans
  }

Run the code above in your browser using DataLab