tile_bins {spiky} | R Documentation

## Tile the assembly-based contigs of a merged assembly/spike GRanges.

### Description

refactored out of scan_spiked_bam for more explicit information flow

### Usage

    tile_bins(gr, binwidth = 300L)

### Arguments

`gr` | the GRanges
`binwidth` | bin width to tile (default is 300)

### Value

           a GRanges of bins

### Examples

    bam <- system.file("extdata", "ex1.bam", package="Rsamtools",
                       mustWork=TRUE)
    gr <- as(seqinfo_from_header(bam), "GRanges")
    genome(gr) <- "notspike"
    tile_bins(gr)

[Package spiky version 1.0.0 Index]