getBinsStartsEnds: Get genomic positions of bins

View source: R/dataprocessing_functions.R

getBinsStartsEndsR Documentation

Get genomic positions of bins

Description

This function split genome into evenly sized bins

Usage

getBinsStartsEnds(window = 5e+05, chr, lengthChr)

Arguments

window

numeric variable with the bin size. Default is 500kb

chr

character variable with the chromosome name

lengthChr

numeric variable with the chromosome length

Value

list with genomic positions of each bin

Examples

posBins <- lapply(seq_len(22),function(chr)
    getBinsStartsEnds(window=500000, chr, lengthChr[chr]))

macintyrelab/CNpare documentation built on April 15, 2022, 4:46 a.m.