Learn R Programming

ribiosUtils: Swiss-army knife for computational biology tasks in drug discovery

Introduction

ribiosUtils is a R package that performs various routine tasks for bioinformatics and computational biology research in drug discovery. It is distributed under the GPL-3 license.

Installation

Install the devel version from GitHub

Run following commands in the R console.

library(devtools)
devtools::install_github("bedapub/ribiosUtils")

Install the stable version on CRAN

The CRAN version is temporarily not available due to pending changes.

install.packages("ribiosUtils")

History

ribiosUtils is part of the ribios software suite (ribios stands for R interface to BIOS). It started as a R implementation of the BIOS library, publicly known as Bioinfo-C library, developed by Clemens Broger et al. at F. Hoffmann-La Roche for many years. Since its inception in 2012, many functionalities have been added, which are implemented in either C (or C++) or R.

Jitao David Zhang maintains and develops ribiosUtils and other ribios packages. The work is dedicated to the memory of Clemens Broger, a pioneer of bioinformatics and cheminformatics in drug discovery, a man true to himself.

Copy Link

Version

Install

install.packages('ribiosUtils')

Monthly Downloads

2

Version

1.7.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jitao David Zhang

Last Published

February 3rd, 2026

Functions in ribiosUtils (1.7.7)

extname

Get the base and extension(s) of file name(s)
firstUp

Make the first alphabet of strings uppercase
cumsumprop

Proportion of cumulative sum over sum
fixWidthStr

Shorten strings to strings with a fix width of characters
dfFactor

Get a factor vector for a data.frame
cutInterval

Cut a vector of numbers into interval factors.
equateWellLabelWidth

Format labels for wells in microwell plates to equal widths
dfFactor2Str

Convert factor columns in a data.frame into character strings
cumOverlapCoefficient

Cumulative overlap coefficient
cutreeIntoOrderedGroups

Cut a tree into groups of ordered sizes
invertList

Invert the names and elements of a list
isDir

Checks existing directory
identicalMatrix

Test whether two matrices are identical by values and by dim names
identicalMatrixValue

Test whether two matrices have the same numerica values given certain accuracy
imatch

Case-insensitive match and pmatch
headtail

Print head and tail elements of a vector
headhead

head/tail function for matrix or data.frame
haltifnot

Ensure the Truth of R Expressions and Print Defined Error Message if NOT
isOdd

Whether an integer is odd (or even)
isError

Tell whether an object is an error
isRocheCompoundID

Tell whether a character string is a Roche compound ID
lastChar

Return last characters from strings
jaccardIndex

Calculate the Jaccard Index between two vectors
longdf2matrix

Convert a long-format data frame into matrix
matchColumn

Match a column in data.frame to a master vector
libordie

Load a library mutedly and quit (die) in case of failing
isTopOrIncAndNotExcl

Logical vector of being top or included and not excluded
list2df

Transform a list of character strings into a data.frame
listOverlapCoefficient

Pairwise overlap coefficient of lists
keepMaxStatRow

KEEP ROWS WITH THE MAXIMUM STATISTIC
mmatch

Multiple matching
orderCutgroup

Reorder the groups by their group size
ofactor

Ordered factor
midentical

Multiple identical
na.false

Replace NA with FALSE
matchColumnName

Match a given vector to column names of a data.frame or matrix
munion

Operations for multiple sets
mergeInfreqLevelsByCumsumprop

Merge infrequent levels by setting the threshold of the proportion of cumulative sum over sum a.k.a. cumsumprop
matrix2longdf

Transform a matrix into a long-format data.frame
naivePairwiseDist

Calculate pairwise distances between each pair of items in a list
print.BEDAinfo

Print BEDAinfo object
percentage

Print a decimal number in procent format
pScore

Transform p-values to continuous scores
pQnormScore

Transform p-values to continuous scores with the quantile function of the normal distribution
overlapCoefficient

Overlap coefficient, also known as Szymkiewicz-Simpson coefficient
pairwiseOverlapDistance

Calculate pairwise overlap coefficients between each pair of items in a list
overwriteDir

Overwrite a directory
pAbsLog10Score

Transform p-values to continuous scores with the absolute-log10 transformation
pairwiseJaccardIndex

Calculate pairwise Jaccard Indices between each pair of items in a list
putColsFirst

Rearrange columns to put some columns to far left
pwencode

Encode a password
relevelsByNotNamedVec

Relevel a factor by a unnamed vector.
reload

Reload a package
pwdecode

Decode password with function implemented with pwencode
relevelsByNamedVec

Relevel a factor by a named vector.
relevels

Relevel a factor by a named or unnamed vector.
qqmsg

Quitely Quit with Messages
qsystem

Quietly runs a system command
registerLog

The functions registerLog and doLog provide a simple mechanism to handle loggings (printing text messages to files or other types of connections) in R.
refactorNum

Sort numeric factor levels by values
ribiosTempfile

A temporary file which (1) every machine in the cluster has access to and (2) there is sufficient space
removeColumnsByFunc

Remove rows or column by function
removeRowsWithNA

Remove rows in a matrix that contains one or more NAs
replaceColumnName

Replace column names in data.frame
removeColumnsWithNA

Remove columns in a matrix that contains one or more NAs
removeInvarCol

Remove invariable columns from a data frame or matrix
removeColumns

Remove columns
ribiosTempdir

A temporary directory which (1) every machine in the cluster has access to and (2) has sufficient space
ribiosUtils-package

ribiosUtils: Utilities from and Interface to the 'Bioinfo-C' ('BIOS') Library
replaceZeroPvalue

Replace p-values of zero
rowscale.matrix

Scale a matrix by row
rrank

Reverse rank order
rocheCore

Extract core identifiers from Roche compound IDs
rrankInd

Return a matrix that highlights reverse rank orders of features of interest by column
ribiosUtils

ribiosUtils
rsetdiff

Reverse setdiff
rowscale.table

Scale a table by row
rowscale

S3 method for row-scaling
rmat

Remove temporary files at a specified time interval from now
rrank.matrix

Get reverse rank orders in each column
stubborngc

Repeat garbage-collecting until all resource is freed
sortAndFilterByCumsumprop

Sort a numeric vector and filter by a threshold of cumsumprop
shortenStr

Shorten strings to a given number of characters
strtoken

Tokenize strings by character
sortByCol

Sort data.frame rows by values in specified columns
silencio

Keep silent by suppressing warnings and messages
setDebug

Functions for command-line Rscript debugging
shortenRocheCompoundID

Shorten Roche compounds identifiers
sortByDimnames

Sort matrix by dim names
scriptInit

Prepare R for an interactive script
subsetByColumnName

Subset a data.frame by column name, allowing differences in cases
wellIndex2position

Translate well index numbers to well positions
uniqueNonNA

Make a vector free of NA and unique
writeLog

Write text as log to a connection
trim

Trim leading and tailing spaces from string
summarizeRows

Summarizing rows/columns by a factor
uniqueLength

Length of unique elements in a vector
verbose

Print messages conditional on the verbose level
whoami

System user name
bedaInfo

Print BEDA project information
applyTopOrIncAndNotExclFilter

Apply isTopOrIncAndNotExcl filter to a matrix
biomicsPstorePath2URL

Translate BiOmics-Pathology pstore path to URL
assertColumnName

Assert whether the required column names exist
assertDesignContrast

Check dimensionality of both design and contrast matrix
bound

Set boundaries for numeric values, or perform a 0-1 normalization.
asNumMatrix

Convert string-valued data frame or matrix into a numeric matrix
assertContrast

Check dimensionality of contrast matrix
allIdentical

Testing whether several objects are all identical with each other
assertDesign

Check dimensionality of design matrix
cbindByRownames

Column bind by rownames
checkFile

Check whether file(s) exist
chosenFew

Print the chosen few items of a long vector
countTokens

Count tokens by splitting strings
compTwoVecs

Compare two vectors by set operations
corByRownames

Calculate correlation coefficients using common rows of the two matrices
cumJaccardIndex

Cumulative Jaccard Index
closeLoggerConnections

Close connections to all loggers This function closes all open connections set up by loggers It is automatically run at the end of the R session (setup by registerLog)
createDir

Create a directory if it does not exist, and then make sure the creation was successful.
columnOverlapCoefficient

Pairwise jaccard/overlap coefficient can be calculated efficiently using matrix Pairwise overlap coefficient of binary matrix by column