powered by
sort a region file
bedr.sort.region( x, method = "lexicographical", engine = "R", chr.to.num = c("X" = 23, "Y" = 24, "M" = 25), check.zero.based = TRUE, check.chr = TRUE, check.valid = TRUE, check.merge = TRUE, verbose = TRUE )
a region object or index
natural or lexicographic
what analytical engine to use for sorting i.e. bedtools, bedops, gnu unix
chromosome letter names to numbers map. Defaults to Homo sapiens i.e c("X" = 23, "Y" = 24, "M" = 25)
should 0 based coordinates be checked
should chr prefix be checked
should the region be checked for integerity
should overlapping regions be checked
should log messages and checking take place
Daryl Waggott
http://bedtools.readthedocs.org/en/latest/content/tools/sort.html
if (check.binary("bedtools")) { index <- get.example.regions(); a <- index[[1]]; b <- bedr.sort.region(a); }
Run the code above in your browser using DataLab