fixedWidthBins | R Documentation |
Make fixed-width bins based on given bin size.
fixedWidthBins(bamfile = NULL, assembly = NULL, chrom.lengths = NULL,
chromosome.format, binsizes = 1e+06, stepsizes = NULL,
chromosomes = NULL)
bamfile |
A BAM file from which the header is read to determine the chromosome lengths. If a |
assembly |
An assembly from which the chromosome lengths are determined. Please see |
chrom.lengths |
A named character vector with chromosome lengths. Names correspond to chromosomes. |
chromosome.format |
A character specifying the format of the chromosomes if |
binsizes |
A vector of bin sizes in base pairs. |
stepsizes |
A vector of step sizes in base pairs, the same length as |
chromosomes |
A subset of chromosomes for which the bins are generated. |
A list()
of GRanges-class
objects with fixed-width bins. If stepsizes
is specified, a list()
of GRangesList
objects with one entry per step.
Aaron Taudt
## Make fixed-width bins of size 500kb and 1Mb
bins <- fixedWidthBins(assembly='mm10', chromosome.format='NCBI', binsizes=c(5e5,1e6))
bins
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.