splitBed | R Documentation |
Function to split bed files by chunks, by number of rows for each chromosome or by chromosome
splitBed(bed,chunks=NULL,n=NULL,chrOnly=F,prefix=T,writeBed=F,verbose=F)
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 |
splitBed(bed,n=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.