The Rinbix package is a collection of functions that support the In silico research group's bioinformatics toolbox for network and machine learning analysis in bioinformatics (inbix). These functions are grouped roughly into the following categories:
These functions are documented in the package vignettes and reference manual.
Rinbix is a package that is most easily installed through RStudio's Tools->Install Packages... menu. Alternatively, the package can be installed from an R console with:
install.packages("path_to_file/Rinbix-VERSIONSTRING.tar.gz", repos = NULL, type = "source")
or from the command line with:
R CMD INSTALL Rinbix-VERSIONSTRING.tar.gz
Variable and function names are in camelCase. Data frames for case-control data sets are referred to as 'regressionData', 'trainData' and 'testData' and contain subject rows and variables (gene) columns, The last column is special and contains the case-control phenotype, coded 0/1. Due to the bioinformatics application domain and common data mining and machine learning jargon, the following terms are used interchangeably:
This simple example demonstrates a workflow from data simulation to ranked genes. Simulate a differential co-expression data set with 10 genes and 40 subjects.
library(Rinbix) data("scaleFreeNetwork") datasetObj <- createDiffCoexpMatrixNoME(M = 10, N = 40, meanExpression = 7, A = Rinbix::scaleFreeNetwork, randSdNoise = 0.5, sdNoise = 0.05, sampleIndicesInteraction = seq(1:3)) dataset <- as.data.frame(datasetObj$regressionData) colnames(dataset) <- colnames(datasetObj$regressionData) rownames(dataset) <- rownames(datasetObj$regressionData) cat("Simulated genes:", colnames(dataset)[1:3], "\n")
knitr::kable(dataset)
dcgain_snprank_results <- rankDcgainSnprank(dataset)
knitr::kable(dcgain_snprank_results)
regain_snprank_results <- rankRegainSnprank(dataset)
knitr::kable(regain_snprank_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.