binRegions: Define CARMA bins

Description Usage Arguments Value Examples

View source: R/binRegions.R View source: R/binRegions 2.R

Description

This function will not be called directly by the user. The function defines start and end positions of regional bins, in which CARMA scores later will be calculated. It is used by the binSegments function.

Usage

1
binRegions(hg, bin.width, overlap)

Arguments

hg

a data frame containing start and end positions of chromosome arms: hg19 or hg38.

bin.width

the width of the bin region.

overlap

if overlap=TRUE, segments within a chromosome arm will overlap to fit within the chromosome arm. If overlap=FALSE, each bin will widen out or be trimmed a little bit relative the defined bin width to fit the chromosome arm.

Value

A data frame containing start and end positions of bin regions.

Examples

1
binRegions(hg19, bin.width=3*10^7, overlap=TRUE)

arnevpladsen/CARMA documentation built on Dec. 19, 2021, 4:39 a.m.