is.sorted.region: checks if region file is sorted

Description Usage Arguments Author(s) Examples

Description

checks if region file is sorted

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
is.sorted.region(
	x,
	method = "lex",
	engine = "unix",
	check.zero.based = TRUE,
	check.chr = TRUE,
	check.valid = TRUE,
	check.merge = TRUE,
	verbose = FALSE
	)

Arguments

x

The region index, bed file, or bed formatted object

method

lexicgraphical or natural, lex is required for many operations but natural is better for interpretation

engine

what analytical engine to use for sorting i.e. bedtools, bedops, gnu unix

check.zero.based

should 0 based coordinates be checked

check.chr

should chr prefix be checked

check.valid

check if region is valid

check.merge

check if region is merged

verbose

more words

Author(s)

Daryl Waggott

Examples

1
2
3
4
5
6
7
if (check.binary("bedtools")) {
index <- get.example.regions();

a <- index[[1]];

b <- is.sorted.region(a);
}

bedr documentation built on May 2, 2019, 11:36 a.m.

Related to is.sorted.region in bedr...