Learn R Programming

bedr (version 1.1.3)

determine.input: Determine input format

Description

Determine input format whether its tabular or bed

Usage

determine.input(x, check.chr = FALSE, verbose = TRUE)

Value

integer value. index format (0), bed (1), index in first column (2), rownmames are index (3), unrecognized(4)

Arguments

x

input vector, matrix or dataframe

check.chr

check whether the coordinates are in chromosomal format with chr prefix

verbose

messages and checks

Author

Daryl Waggott

Examples

Run this code
if (check.binary("bedtools")) {

index <- get.example.regions();
a <- index[[1]];
bedr:::determine.input(a);
}

Run the code above in your browser using DataLab