Learn R Programming

bedr (version 1.1.5)

Genomic Region Processing using Tools Such as 'BEDTools', 'BEDOPS' and 'Tabix'

Description

Genomic regions processing using open-source command line tools such as 'BEDTools', 'BEDOPS' and 'Tabix'. These tools offer scalable and efficient utilities to perform genome arithmetic e.g indexing, formatting and merging. bedr API enhances access to these tools as well as offers additional utilities for genomic regions processing.

Copy Link

Version

Install

install.packages('bedr')

Monthly Downloads

1,457

Version

1.1.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Boutros

Last Published

January 24th, 2026

Functions in bedr (1.1.5)

cluster.region

cluster intervals
get.fasta

Query fasta sequence
flank.region

Get adjacent flanks from regions
determine.input

Determine input format
is.merged.region

checks if region file is merged
index2bed

convert a region index into a bed file dataframe
get.random.regions

generates a set of random regions
%in.region%

checks if regions in object a are found in object b
in.region

checks if regions in object a are found in object b
is.sorted.region

checks if region file is sorted
permute.region

permute a set of regions
order.region

Gets the sort order of a region index similar to the order command
vcf2bedpe

convert a vcf to a bedpe file
table2venn

Plot venn diagram
reldist

Calculate the relative distance between two sets of intervals
write.vcf

write a vcf object
grow.region

Get adjacent flanks from regions
read.vcf

Read a vcf into R
size.region

Get region size
is.valid.ref

verifies the reference sequence in a vcf
modifyList2

Interface to R's modifyList
get.strand

get BEDPE ID from VCF ID
get.bedpe.id

get BEDPE ID from VCF ID
tabix

Main bedtools wrapper function.
strsplit2matrix

split a vector of strings into tabular data
test.region.similarity

Compare sets of regions via jaccard and relative distance using permutation
jaccard

calculate the jaccard distance between sets of intervals
get.example.regions

return a set of regions for the examples and unit testing
df2list

Data frame to list conversion
download.datasets

Download some useful datasets
get.chr.length

gets the length of each chromosome for a species/build
vcf2bed

convert a vcf to a bed file
is.valid.region

checks if region/index is valid
is.valid.seq

verifies that sequences are correct given coordinates and a reference
process.input

process.input
query.ucsc

read a ucsc table into R
bedr.merge.region

merge i.e. collapse overlpaping regions
bed2vcf

convert bed to vcf
create.tmp.bed.file

output R objects as tmpfiles
bedr.snm.region

sort a region file
catv

outputs text if verbose flag is set
bedr.sort.region

sort a region file
bed2index

bed dataframe to index string
check.binary

checks if binary is in the path
bedr.setup

Initialize some config settings for bedr
bedr.join.region

join two region objects using a left outer join
bedr.join.multiple.region

join multiple region objects
bedr

Main bedtools wrapper function.
bedr.plot.region

Visualize regions or intervals
bedr.subtract.region

subtracts features or ranges in object b from object a
adjust.coordinates

adjust coordinates for a BEDPE file
convert2bed

convert object to bed format