splitBed: splitBed

View source: R/splitBed.R

splitBedR Documentation

splitBed

Description

Function to split bed files by chunks, by number of rows for each chromosome or by chromosome

Usage

splitBed(bed,chunks=NULL,n=NULL,chrOnly=F,prefix=T,writeBed=F,verbose=F)

Arguments

bed

data.frame in BED format with chromosome number, start and end position

chunks

number of chunks to split

n

number of lines for each chromosome

chrOnly

split only by chromosome

prefix

set to TRUE to add chr prefix if absent or FALSE to remove it if present

writeBed

write new bed files

verbose

give verbose output

Examples

splitBed(bed,n=100)

mdelcorvo/rgumbo documentation built on Jan. 3, 2025, 2:12 p.m.