tile_bins: Tile the assembly-based contigs of a merged assembly/spike...

View source: R/tile_bins.R

tile_binsR 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)



trichelab/spiky documentation built on Sept. 17, 2022, 8:44 a.m.