Learn R Programming

bedr (version 1.1.3)

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,291

Version

1.1.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Paul C. Boutros

Last Published

April 6th, 2025

Functions in bedr (1.1.3)

df2list

Data frame to list conversion
catv

outputs text if verbose flag is set
determine.input

Determine input format
cluster.region

cluster intervals
in.region

checks if regions in object a are found in object b
get.strand

get BEDPE ID from VCF ID
download.datasets

Download some useful datasets
get.fasta

Query fasta sequence
grow.region

Get adjacent flanks from regions
jaccard

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

generates a set of random regions
modifyList2

Interface to R's modifyList
get.chr.length

gets the length of each chromosome for a species/build
flank.region

Get adjacent flanks from regions
order.region

Gets the sort order of a region index similar to the order command
is.sorted.region

checks if region file is sorted
get.bedpe.id

get BEDPE ID from VCF ID
is.valid.ref

verifies the reference sequence in a vcf
read.vcf

Read a vcf into R
vcf2bed

convert a vcf to a bed file
bedr.sort.region

sort a region file
bedr.subtract.region

subtracts features or ranges in object b from object a
test.region.similarity

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

Calculate the relative distance between two sets of intervals
process.input

process.input
get.example.regions

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

convert a region index into a bed file dataframe
write.vcf

write a vcf object
query.ucsc

read a ucsc table into R
is.valid.seq

verifies that sequences are correct given coordinates and a reference
%in.region%

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

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

checks if region file is merged
vcf2bedpe

convert a vcf to a bedpe file
strsplit2matrix

split a vector of strings into tabular data
size.region

Get region size
permute.region

permute a set of regions
table2venn

Plot venn diagram
tabix

Main bedtools wrapper function.
bed2index

bed dataframe to index string
bed2vcf

convert bed to vcf
bedr.snm.region

sort a region file
bedr.merge.region

merge i.e. collapse overlpaping regions
bedr.join.region

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

Visualize regions or intervals
adjust.coordinates

adjust coordinates for a BEDPE file
create.tmp.bed.file

output R objects as tmpfiles
bedr.join.multiple.region

join multiple region objects
bedr.setup

Initialize some config settings for bedr
convert2bed

convert object to bed format
bedr

Main bedtools wrapper function.
check.binary

checks if binary is in the path