Package: RCM 1.21.0

Stijn Hawinkel

RCM: Fit row-column association models with the negative binomial distribution for the microbiome

Combine ideas of log-linear analysis of contingency table, flexible response function estimation and empirical Bayes dispersion estimation for explorative visualization of microbiome datasets. The package includes unconstrained as well as constrained analysis. In addition, diagnostic plot to detect lack of fit are available.

Authors:Stijn Hawinkel [cre, aut]

RCM_1.21.0.tar.gz
RCM_1.21.0.zip(r-4.5)RCM_1.21.0.zip(r-4.4)RCM_1.21.0.zip(r-4.3)
RCM_1.21.0.tgz(r-4.4-any)RCM_1.21.0.tgz(r-4.3-any)
RCM_1.21.0.tar.gz(r-4.5-noble)RCM_1.21.0.tar.gz(r-4.4-noble)
RCM_1.21.0.tgz(r-4.4-emscripten)RCM_1.21.0.tgz(r-4.3-emscripten)
RCM.pdf |RCM.html
RCM/json (API)
NEWS

# Install 'RCM' in R:
install.packages('RCM', repos = c('https://bioc.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/centerforstatistics-ugent/rcm/issues

Datasets:
  • Zeller - Microbiomes of colorectal cancer patients and healthy controls

On BioConductor:RCM-1.21.0(bioc 3.20)RCM-1.20.0(bioc 3.19)

bioconductor-package

10 exports 0.61 score 89 dependencies 15 mentions

Last updated 2 months agofrom:192270fcb3

Exports:addOrthProjectioncheckAliasextractCoordgetDevianceResinertialiksplotRespFunRCMRCM_NBresidualPlot

Dependencies:ade4alabamaapeaskpassBiobaseBiocGenericsbiomformatBiostringscliclustercodetoolscolorspacecpp11crayoncurldata.tableDBIdigestedgeRfansifarverforeachGenomeInfoDbGenomeInfoDbDataggplot2gluegtablehttrigraphIRangesisobanditeratorsjsonlitelabelinglatticelifecyclelimmalocfitmagrittrMASSMatrixmgcvmimemulttestmunsellnleqslvnlmenumDerivopensslpermutephyloseqpillarpixmappkgconfigplyrquadprogquantmodR6RColorBrewerRcppRcppArmadilloreshape2rhdf5rhdf5filtersRhdf5librlangS4VectorsscalesspstatmodstringistringrsurvivalsystensortibbletseriesTTRUCSC.utilsutf8vctrsveganVGAMviridisLitewithrxtsXVectorzlibbioczoo

Manual for the RCM pacakage

Rendered fromRCMvignette.Rmdusingknitr::rmarkdownon Jun 30 2024.

Last update: 2021-10-26
Started: 2017-12-14

Readme and manuals

Help Manual

Help pageTopics
This function adds orthogonal projections to a given plotaddOrthProjection
An auxiliary R function to 'array' multiply an array with a vector, kindly provided by Joris Meysarrayprod
A function to build a centering matrix based on a dataframebuildCentMat
A function to build the confounder matricesbuildConfMat
buildConfMat.characterbuildConfMat.character
buildConfMat.data.framebuildConfMat.data.frame
A function to build the covariate matrix of the constraintsbuildCovMat
A function to build the design matrixbuildDesign
Check for alias structures in a dataframe, and throw an error when one is foundcheckAlias
Constrained correspondence analysis with adapted powersconstrCorresp
Replace missing entries in X by their expectation to set their contribution to the estimating equations to zerocorrectXMissingness
A function to extract deviances for all dimension, including after filtering on confoundersdeviances
A function that returns the value of the partial derivative of the log-likelihood ratio to alpha, keeping the response functions fixeddLR_nb
A score function for the column components of the independence model (mean relative abundances)dNBabundsOld
A score function for the row components of the independence model (library sizes)dNBlibSizes
The score function of the response function for 1 taxon at the timedNBllcol_constr
The score function of the general response functiondNBllcol_constr_noLab
Estimation of the parameters of a third degree GLMdNBllcolNP
A score function for the estimation of the column scores in an unconstrained RC(M) modeldNBllcolOld
A score function of the NB for the row scoresdNBllrow
A score function for the psi of a given dimensiondNBpsis
A function that returns the coordinates of an ellipseellipseCoord
Estimate the overdispersionestDisp
A function to estimate the taxon-wise NB-paramsestNBparams
A function to estimate the NB-params ignoring the taxon labelsestNBparamsNoLab
Estimate the taxon-wise response functions non-parametricallyestNPresp
A function to extract plotting coordinates, either for plot.RCM or to export to other plotting softwareextractCoord
A function to extract a matrix of expected values for any dimension of the fitextractE
Filters out the effect of known confounders. This is done by fitting interactions of every taxon with the levels of the confounders. It returns a modified offset matrix for the remainder of the fitting procedure.filterConfounders
A function to calculate the matrix of deviance residuals.getDevianceRes
ACalculate the matrix of deviance residualsgetDevMat
A function to extract the influence for a given parameter indexgetInflCol
Extract the influence of all observations on a given row scoregetInflRow
Integrate the spline of an vgam objectgetInt
Extract the logged likelihood of every countgetLogLik
A function to construct a model matrix of a certain degreegetModelMat
Return a matrix of row scoresgetRowMat
Gram-Schmidt orthogonalization of vectorsGramSchmidt
Define linear equality constraints for env. gradientheq_nb
The jacobian of the linear equality constraintsheq_nb_jac
Functions to indent the plot to include the entire labelsindentPlot
Calculate the log-likelihoods of all possible modelsinertia
Jacobian of the constrained analysis with linear response function.JacCol_constr
The jacobian of the response function without taxon labelsJacCol_constr_noLab
Calculate the log-likelihoods of all possible modelsliks
Get the value of the log-likelihood ratio of alphaLR_nb
A function that returns the Jacobian of the likelihood ratioLR_nb_Jac
Calculate the components of the influence functionsNBalphaInfl
The influence function for the column scoresNBcolInfl
Jacobian for the column components of the independence modelNBjacobianAbundsOld
Jacobian function for the estimation of a third degree GLMNBjacobianColNP
Jacobian for the estimation of the column scoresNBjacobianColOld
Jacobian for the raw components of the independence modelNBjacobianLibSizes
Jacobian for the psi of a given dimensionNBjacobianPsi
A jacobian function of the NB for the row scoresNBjacobianRow
The influence function for the psisNBpsiInfl
The influence function for the row scoresNBrowInfl
Plot RC(M) ordination result with the help of ggplot2plot.RCM
Plot the non-parametric response functionsplotRespFun
Wrapper function for the RCM() functionRCM RCM,matrix-method RCM,phyloseq-method
Fit the RC(M) model with the negative binomial distribution.RCM_NB
Make residual plotsresidualPlot
Calculates the Jacobian of the parametric response functionsrespFunJacMat
Derivative of the Lagrangian of the parametric response functionrespFunScoreMat
A function to efficiently row multiply a matrix and a vectorrowMultiply
A small auxiliary function for the length of the lambdasseq_k
Trim based on confounders to avoid taxa with only zero countstrimOnConfounders
Microbiomes of colorectal cancer patients and healthy controlsZeller