validateBed: Validate format of the input bed data

Description Usage Arguments Value

View source: R/misc.R

Description

Validates input methylation data. Checks the presence of the chr, start, end, score columns. If column 'strand' is not set then '+' strand is assumed. Cleans rows with empty cells and sets numeric format to the start, end and score columns.

Usage

1
validateBed(bed.data, omit.na = TRUE)

Arguments

bed.data

A data frame containing input bed-formatted data

omit.na

Omit rows with empty cells (default:TRUE)

Value

A well-formatted data frame


andigoni/MeinteR documentation built on Oct. 1, 2021, 9:33 p.m.