Learn R Programming

cobiclust

The goal of cobiclust is to perform a biclustering of over-dispersed count data such as those produced by amplicon-based sequencing for example.

Installation

You can install the released version of cobiclust from CRAN with:

install.packages("cobiclust")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("julieaubert/cobiclust")

Example

This is a basic example which shows you how to perform a biclustering on simulated data:

library(cobiclust)
## basic example code
# npc <- c(50, 40) # nodes per class
# KG <- c(2, 3) # classes
# nm <- npc * KG # nodes
# Z <- diag( KG[1]) \%x\% matrix(1, npc[1], 1)
# W <- diag(KG[2]) \%x\% matrix(1, npc[2], 1)
# L <- 70 * matrix( runif( KG[1] * KG[2]), KG[1], KG[2])
# M_in_expectation <- Z \%*\% L \%*\% t(W)
# size <- 50
# M<-matrix(
#  rnbinom(
#    n = length(as.vector(M_in_expectation)),
#    mu = as.vector(M_in_expectation), size = size)
#  , nm[1], nm[2])
# rownames(M) <- paste("OTU", 1:nrow(M), sep = "_")
# colnames(M) <- paste("S", 1:ncol(M), sep = "_")
# res <- cobiclust(M, K = 2, G = 3, nu_j = rep(1,120), a = 1/size, cvg_lim = 1e-5)

Copy Link

Version

Install

install.packages('cobiclust')

Monthly Downloads

292

Version

0.1.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Julie Aubert

Last Published

February 16th, 2024

Functions in cobiclust (0.1.2)

qu_calculation

Calculate approximate conditional moment of the third hidden layer U
foo_a

Useful function to estimate the parameter a
qukg_calculation

Calculate the approximate conditional moments of the third hidden variable U and its log
selection_criteria

Calculate selection criteria.
summary.cobiclustering

Summary of an object of class Cobiclust
cobiclust

Perform a biclustering adapted to overdispersed count data.
lb_calculation

Calculate the lower bound
penalty

Calculate the BIC penalty
alpha_calculation

Calculate the matrix of interaction terms between groups of species and groups of sample
cobiclustering

Creation of the cobiclustering class.
init_pam

Initialisation of the co-clusters by partitioning around medoids method.
is.cobiclustering

Is an object of class cobiclustering ?