random_bed: Compute a random set of TAD border coordinates from a sample...

View source: R/DiffT.R

random_bedR Documentation

Compute a random set of TAD border coordinates from a sample partition

Description

Compute a random set of TAD border coordinates from a sample partition

Usage

random_bed(bed, bad_columns = NULL)

Arguments

'bed'

a 'data.frame' with a BED-like format with 3 columns: chromosome, start and end coordinates of each TAD, in bins.

'bad_columns'

a numeric 'vector' with the positions of the bad columns. TAD borders will not be placed on bad columns. Default value of 'NULL' means no bad columns will be introduced.

Examples

control <- read.table(system.file("extdata", "control.bed", package = "TADpole"))
random_coords <- random_bed(control)

paulasoler/HTADs documentation built on July 17, 2022, 8:59 a.m.