Learn R Programming

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

What is ribiosUtils?

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

Run following commands in the R console.

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

History

ribiosUtils is part of the ribios software suite (ribios stands for R interface to BIOS). The package was previously a sub-directory of the ribios project. 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 in 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

11

Version

1.5-6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jitao David Zhang

Last Published

March 6th, 2020

Functions in ribiosUtils (1.5-6)

chosenFew

Print the chosen few items of a long vector
columnOverlapCoefficient

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

Get default font family
fixWidthStr

Shorten strings to strings with a fix width of characters
closeLoggerConnections

cumOverlapCoefficient

Cumulative overlap coefficient
haltifnot

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

Proportion of cumulative sum over sum
dfFactor

Get a factor vector for a data.frame
headhead

head/tail function for matrix or data.frame
cutInterval

Cut a vector of numbers into interval factors.
longdf2matrix

Convert a long-format data frame into matrix
dfFactor2Str

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

Cumulative Jaccard Index
createDir

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

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

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

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

Pairwise overlap coefficient of lists
jaccardIndex

Calculate the Jaccard Index between two vectors
isRocheCompoundID

Tell whether a character string is a Roche compound ID
na.false

Replace NA with FALSE
refactorNum

Sort numeric factor levels by values
pairwiseOverlapDistance

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

Open a device as a file preparing for plotting in the file
qsystem

Quietly runs a system command
rowscale.matrix

Scale a matrix by row
keepMaxStatRow

KEEP ROWS WITH THE MAXIMUM STATISTIC
ofactor

Ordered factor
pairwiseJaccardIndex

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

Case-insensitive match and pmatch
rsetdiff

Reverse setdiff
silencio

Keep silent by suppressing warnings and messages
shortenStr

Shorten strings to a given number of characters
matchColumnName

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

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

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

System user name
verbose

Print messages conditional on the verbose level
headtail

Print head and tail elements of a vector
countTokens

Count tokens by splitting strings
compTwoVecs

Compare two vectors by set operations
identicalMatrix

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

Checks existing directory
isError

Tell whether an object is an error
mmatch

Multiple matching
munion

Operations for multiple sets
pQnormScore

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

Print a decimal number in procent format
naivePairwiseDist

Calculate pairwise distances between each pair of items in a list
overlapCoefficient

Overlap coefficient, also known as Szymkiewicz-Simpson coefficient
relevels

Relevel a factor by a named or unnamed vector.
pAbsLog10Score

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

A temporary directory which (1) every machine in the cluster has access to and (2) has sufficient space
print.BEDAinfo

Print BEDAinfo object
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.
pScore

Transform p-values to continuous scores
ribiosTempfile

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

Remove columns
sortByDimnames

Sort matrix by dim names
reload

Reload a package
libordie

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

Tokenize strings by character
rmat

Remove temporary files at a specified time interval from now
stubborngc

Repeat garbage-collecting until all resource is freed
ribiosUtils

ribiosUtils
relevelsByNotNamedVec

Relevel a factor by a unnamed vector.
removeInvarCol

Remove invariable columns from a data frame or matrix
relevelsByNamedVec

Relevel a factor by a named vector.
replaceColumnName

Replace column names in data.frame
mergeInfreqLevelsByCumsumprop

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

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

Write text as log to a connection
sortAndFilterByCumsumprop

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

Sort data.frame rows by values in specified columns
rocheCore

Extract core identifiers from Roche compound IDs
scriptInit

Prepare R for an interactive script
putColsFirst

Rearrange columns to put some columns to far left
pwencode

Encode a password
pwdecode

Decode password with function implemented with pwencode
rowscale

S3 method for row-scaling
midentical

Multiple identical
qqmsg

Quitely Quit with Messages
setDebug

Functions for command-line Rscript debugging
trim

Trim leading and tailing spaces from string
summarizeRows

Summarizing rows/columns by a factor
uniqueLength

Length of unique elements in a vector
uniqueNonNA

Make a vector free of NA and unique
assertDesign

Check dimensionality of design matrix
asNumMatrix

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

Check dimensionality of contrast matrix
bedaInfo

Print BEDA project information
allIdentical

Testing whether several objects are all identical with each other
checkFile

Check whether file(s) exist
assertColumnName

Assert whether the required column names exist
assertDesignContrast

Check dimensionality of both design and contrast matrix
biomicsPstorePath2URL

Translate BiOmics-Pathology pstore path to URL