Package: CLAMP 0.99.3

Marc Subirana-Granes

CLAMP: Curated Latent-variable Analysis with Molecular Priors

CLAMP performs prior-informed latent variable decomposition of high-dimensional transcriptomic data. It integrates curated gene sets to learn biologically interpretable latent variables, supports file-backed matrices for large datasets, and provides tools for preprocessing, normalization, projection, and evaluation of latent structures. CLAMP is designed to scale to tens of thousands of samples, making it suitable for large public resources such as recount3 and ARCHS4. It enables researchers to uncover biologically meaningful patterns that connect genes, pathways, and complex traits in transcriptomics studies.

Authors:Marc Subirana-Granes [aut, cre], Maria Chikina [aut], National Human Genome Research Institute [fnd], Eunice Kennedy Shriver National Institute of Child Health and Human Development [fnd], National Science Foundation [fnd], National Eye Institute [fnd]

CLAMP_0.99.3.tar.gz
CLAMP_0.99.3.zip(r-4.7)CLAMP_0.99.3.zip(r-4.6)CLAMP_0.99.3.zip(r-4.5)
CLAMP_0.99.3.tgz(r-4.6-x86_64)CLAMP_0.99.3.tgz(r-4.6-arm64)CLAMP_0.99.3.tgz(r-4.5-x86_64)CLAMP_0.99.3.tgz(r-4.5-arm64)
CLAMP_0.99.3.tar.gz(r-4.7-arm64)CLAMP_0.99.3.tar.gz(r-4.7-x86_64)CLAMP_0.99.3.tar.gz(r-4.6-arm64)CLAMP_0.99.3.tar.gz(r-4.6-x86_64)
CLAMP_0.99.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
CLAMP/json (API)

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

Bug tracker:https://github.com/chikinalab/clamp/issues

Pkgdown/docs site:https://chikinalab.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On BioConductor:CLAMP-0.99.3(bioc 3.24)

softwaregeneexpressionrnaseqtranscriptomicsdimensionreductionvisualizationnormalizationpathwayspreprocessinggenepredictiongenetargetopenblascpp

5.60 score 5 stars 16 scripts 40 exports 68 dependencies

Last updated from:1768d3b1bc. Checks:1 NOTE, 11 WARNING, 1 ERROR, 1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksNOTE285
linux-devel-arm64WARNING324
linux-devel-x86_64WARNING357
source / vignettesERROR350
linux-release-arm64WARNING277
linux-release-x86_64WARNING310
macos-release-arm64WARNING172
macos-release-x86_64WARNING340
macos-oldrel-arm64WARNING137
macos-oldrel-x86_64WARNING464
windows-develWARNING313
windows-releaseWARNING270
windows-oldrelWARNING256
wasm-releaseOK205

Exports:allAgainstAllAUCsCLAMPbaseCLAMPdotplotCLAMPdotplotAllCLAMPfullCLAMPfullnVPCLAMPplotTopZCLAMPplotUcleanFBMcompareBscompute_svdcpmCLAMPcpmCLAMPFBMcross_ZYdifferentialLVActivityfilterFBMfindSplineMaxgetChatgetGMTgetMatchedPathwayMatgetMatchedPathwayMatListgetScaleFromSVsgmtListToSparseMatmat_multnum.pconeToOneMaskplotTopZ_ComplexpreprocessCLAMPpreprocessCLAMPFBMprojectCLAMPread_gmtridge_Bselect_clamp_kselect_svd_ksolveUsquashZscoretscalewinsor_topkzscoreCLAMPzscoreCLAMPFBM

Dependencies:bigassertrbigparallelrbigstatsrBiocGenericsbitcirclizecliclueclustercodetoolscolorspaceComplexHeatmapcowplotcpp11crayondigestdoParalleldplyrfarverffflockforeachgenericsGetoptLongggplot2ggrepelglmnetGlobalOptionsgluegtableIRangesirlbaisobanditeratorslabelinglatticelifecyclemagrittrMatrixmatrixStatsparallellypatchworkpillarpkgconfigpngpsR6RColorBrewerRcppRcppArmadilloRcppEigenRhpcBLASctlrjsonrlangrmioRSpectrarsvdS4VectorsS7scalesshapesurvivaltibbletidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Compute all-vs-all AUC matrixallAgainstAllAUCs
Compute AUC using Wilcoxon rank-sum testAUC
Adjust p-values using Benjamini-Hochberg methodBH
Binarize matrix by top-k values per columnbinarizeTop
Cell-type deconvolution matrixcelltypeTargets
CLAMP base matrix factorizationCLAMPbase
Dot plot of top pathways for a single latent variableCLAMPdotplot
Dot plot of pathway-LV associations across all latent variablesCLAMPdotplotAll
Runs the streamlined full CLAMP model.CLAMPfull
Full CLAMP model with prior information and cross-validationCLAMPfullnVP
Plot top genes per LV by Z loadingCLAMPplotTopZ
Plot the U matrix (pathway-LV associations) as a heatmapCLAMPplotU
Clean a Filebacked Big Matrix (FBM) by log-transforming and handling NAscleanFBM
Find common row names between two matrices or data framescommonRows
Compare two sets of factor loadings or embeddingscompareBs
Compute a truncated SVD for a CLAMP input matrixcompute_svd
Compute row-wise sum and sum of squares for a Filebacked Big MatrixcomputeRowStatsFBM
Compute counts-per-million (CPM) for CLAMP pipelinescpmCLAMP
Compute CPM on a file-backed matrix for CLAMP (in-place)cpmCLAMPFBM
Cross-product Z^T Y with FBM or dense matricescross_ZY
Cross-validation AUC for CLAMP latent variables and pathwayscrossVal
Whole-blood reference expression matrixdataWholeBlood
Differential latent-variable activity between sample groupsdifferentialLVActivity
Filter rows of a Filebacked Big Matrix based on mean and variancefilterFBM
Find the location of the maximum of a smoothing splinefindSplineMax
Count number of latent variables exceeding AUC thresholdsgetAUCstats
Compute Chat matrix from prior annotationgetChat
Download and read a GMT file from a URLgetGMT
Subset and filter pathway matrix to match target genesgetMatchedPathwayMat
Subset and filter multiple pathway matrices to match target genesgetMatchedPathwayMat2
Subset and filter multiple pathway matrices to match target genesgetMatchedPathwayMatList
Subset and filter pathway matrix to match target genesgetMatchedPathwayMatOld
Get maximum AUC per latent variablegetMaxAUC
Estimate noise scale from singular values with linear tail extrapolationgetScaleFromSVs
Convert a list of GMT gene sets to a sparse matrixgmtListToSparseMat
Major cell-type annotationsmajorCellTypes
Matrix multiplication with support for FBM objectsmat_mult
Greedy maximum correspondence from correlation matrixmax_correspondence_greedy
Print a concatenated messagemymessage
Estimate number of principal components via elbow or permutation methodnum.pc
One-to-one masking of maximum associationsoneToOneMask
panDB gene-set databasepanDB
Ridge-regularized pseudoinverse via SVDpinv.ridge
ComplexHeatmap visualization of top genes by latent variableplotTopZ_Complex
Preprocess an expression matrix for CLAMPpreprocessCLAMP
Preprocess a bigstatsr FBM for CLAMPpreprocessCLAMPFBM
Project new data into CLAMP latent spaceprojectCLAMP
Read a GMT file into a listread_gmt
Ridge regression update for Bridge_B
Rotate SVD components to make dominant directions positiverotateSVD
Row-wise correlation between two matricesrow_cor
Run elbow method to estimate number of PCsrun_elbow
Run permutation method to estimate number of PCsrun_permutation
Select default number of CLAMP latent variables from an SVDselect_clamp_k
Select default number of components for a CLAMP solver SVDselect_svd_k
Fit the loading matrix Z using sparse regression of prior information UsolveU
Squash extreme z-scoressquashZscore
Row-wise scaling (mean 0, sd 1)tscale
Winsorize matrix columns by capping the top-k valueswinsor_topk
xCell cell-signature matrixxCell
Z-score a filtered expression matrix for CLAMPzscoreCLAMP
Z-score a filtered FBM in-placezscoreCLAMPFBM