reorderBed: Reorder tabular methylation data to bed format

Description Usage Arguments Value

View source: R/misc.R

Description

Reorders tabular methylation data to bed-formatted files. Compatible inputs are .txt, .csv data and other textual formats that contain the following mandatory columns: chr, start, end and score.

Usage

1
2
reorderBed(input.data, chr.col, start.col, end.col, score.col,
  strand.col = NULL)

Arguments

input.data

A data frame containing input bed-formatted data

chr.col

Column number containing the chromosome name

start.col

Column number containing the chromosome's start position

end.col

Column number containing the chromosome's end position

score.col

Column number containing the methylation score values either beta or delta-beta

strand.col

Column number containing the strand in the use data file ('+' strand is assumed if strand column is missing)

Value

A valid bed-formatted file (input of the 'MeinteR::find*' functions)


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