Package: sbivar 0.99.19

Stijn Hawinkel

sbivar: Test for Spatial Bivariate Association Across Omics Types

The sbivar package implements a suite of tests for Spatial BIVARiate association across omics modalities, with possibly disjoint coordinate sets. Implemented tests are generalized additive models (GAMs), modified t-test, bivariate Moran's I and Gaussian processes (GPs). Both single images and replicated experiments can be analysed.

Authors:Stijn Hawinkel [cre, aut], Wangjun Hu [aut]

sbivar_0.99.19.tar.gz
sbivar_0.99.19.zip(r-4.7)sbivar_0.99.19.zip(r-4.6)sbivar_0.99.19.zip(r-4.5)
sbivar_0.99.19.tgz(r-4.6-x86_64)sbivar_0.99.19.tgz(r-4.6-arm64)sbivar_0.99.19.tgz(r-4.5-x86_64)sbivar_0.99.19.tgz(r-4.5-arm64)
sbivar_0.99.19.tar.gz(r-4.7-arm64)sbivar_0.99.19.tar.gz(r-4.7-x86_64)sbivar_0.99.19.tar.gz(r-4.6-arm64)sbivar_0.99.19.tar.gz(r-4.6-x86_64)
sbivar_0.99.19.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sbivar/json (API)
NEWS

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

Bug tracker:https://github.com/sthawinke/sbivar/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • Vicari - Spatial transcriptomics and metabolomics data of mouse brain

On CRAN:

Conda:

transcriptomicsspatialproteomicsmetabolomicsopenblascpp

4.02 score 15 exports 133 dependencies

Last updated from:3953bc0318. Checks:12 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksNOTE230
linux-devel-arm64NOTE418
linux-devel-x86_64NOTE495
source / vignettesOK638
linux-release-arm64NOTE435
linux-release-x86_64NOTE458
macos-release-arm64NOTE391
macos-release-x86_64NOTE939
macos-oldrel-arm64NOTE388
macos-oldrel-x86_64NOTE493
windows-develNOTE2310
windows-releaseNOTE2182
windows-oldrelNOTE2305
wasm-releaseOK201

Exports:buildNewGridexploreWeightsextractResultsMultifitLinModelsnormMatplotCoordsplotCoordsMultiplotGAMsplotGAMsTopResultsplotPairMultiplotPairSingleplotTopPairsbivarselfNamewriteSbivarToXlsx

Dependencies:abindaskpassBHBiobaseBiocBaseUtilsBiocFileCacheBiocGenericsBiocParallelbitbit64blobbootcachemclassclassIntclicodetoolsconcavemancpp11curlDBIdbplyrDelayedArraydeldirdplyre1071farverfastmapfastmatrixfilelockFNNformatRfutile.loggerfutile.optionsgenericsGenomicRangesggplot2gluegoftestgstatgtablehttr2intervalsIRangesisobandjsonliteKernSmoothlabelinglambda.rlatticelifecyclelme4lmerTestmagickmagrittrMASSMatrixMatrixGenericsmatrixStatsmemoisemgcvminqaMultiAssayExperimentnlmenloptrnumDerivopensslopenxlsxpillarpkgconfigpolyclipproxypurrrR6rappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreformulasRfastrjsonrlangrpartRSQLites2S4ArraysS4VectorsS7scalesSeqinfosfsftimeSingleCellExperimentsmoppixsnowspspacetimeSparseArraySpatialExperimentSpatialPackspatstat.dataspatstat.explorespatstat.geomspatstat.modelspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstarsstringistringrSummarizedExperimentsystensortibbletidyrtidyselectunitsutf8V8vctrsviridisLitewithrwkxtsXVectorziggzipzoo

Vignette of the sbivar package

Rendered fromsbivarVignette.Rmdusingknitr::rmarkdownon Jun 09 2026.

Last update: 2026-06-09
Started: 2025-08-26

Readme and manuals

Help Manual

Help pageTopics
Add columns with feature names to a matrix by splitting rownames, and remove rownamesaddFeatureColumn
Construct the nxnxg/2 array of derivatives for a nxn matrix to the g/2 covariance matrix parameters.arrayDeriv
Multiply an array with a matrixarrayMatProd
Find traces of all inner products of matrices composing arrays A and B yielding a pxp matrixarrayProd2tr
Find traces of all inner products of matrices composing arrays A and B, after transposing the second yielding a pxp matrixarrayProdTr
Extract an assay, and transposeassayT
A wrapper for Matrix::bdiag maintaining namesbdiagn
Construct cross-blocks of alternative covariance matrices at different length scalesbuildAltSigmas
Build a 3-slice array of covariance-parameter derivativesbuildDerivArray
Build a new grid covering the convex hull around two coordinate matricesbuildNewGrid
Build the SAC matrix for a Gaussian processbuildSigmaGp
Build a weight matrix for bivariate Moran's IbuildWeightMat
An analytical p-value combination method using the Cauchy distribution.CCT
Check input of matrices and listscheckInputSingle
Find all cross-correlations for a list of matricescorrelationsMulti
Evaluate a variogram on a set of distancesevalVariogram
Visualize different weighting functionsexploreWeights
Is there any double underscore in the character vector?findDoubleUnderScore
Fit a GAM model to a single variablefitGAM
Fit a Gaussian process (GP) to a single outcome vectorfitGP
Fit a linear model for an individual feature pairfitLinModel
Fit linear models on measures calculated for replicated images, and extract the resultsextractResultsMulti fitLinModels
Fit GAMs to all columns of a dataframe, as a wrapper for fitGAMfitManyGAMs
A wrapper to fit GPs on all columns of a matrixfitManyGPs
Fit GAMs and find correlations and standard error for data listsGAMsMulti
Fit univariate GAMs and test bivariate combinationsGAMsSingle
Construct the SAC part of the covariance matrix using the Gaussian covariance kernel,GaussKernel
Approximate variance of the spatial covariance numeratorgetApproxVar
Get all categrocial variables from a dataframegetDiscreteVars
Return feature names from a listgetFeaturesList
Construct the size variablegetSize
Extract coordinate matrixgetSpatialCoords
Extract data matrixgetX
Fit Gaussian processes (GPs) if needed, and perform score testsGPsSingle
Make unique namesmakeNames
Make a list of offsetsmakeOffset
Convert z-value to p-valuemakePval
Estimate variograms using Matheron's binning estimator for many features at once, and evaluatematheronVariograms
Perform modified t-tests for all pairsModTtestSingle
Find all Moran's I statistics for a list of matricesMoransIMulti
Calculate bivariate Moran's I between two modality matrix, with variance and p-valueMoransISingle
Move two sets of coordinates to 0-1. without shifting them with respect to each othermoveTwoCoords
Normalize a data matrix, and ensure correct column namesnormMat
Plot the coordinates of two omics modalitiesplotCoords plotCoordsMulti
Plot the fitted splines, and the correlation between themplotGAMs plotGAMsTopResults
Plot a feature pairplotPairMulti plotPairSingle plotPairSingleVectors plotTopPair
Print a message for the current iterationprintIteration
Print feature progressprintProgress
Replace the left hand side of a formula by a fixed stringreplaceLhs
Spatial bivariate association analysissbivar sbivar,list-method sbivar,matrix-method sbivar,MultiAssayExperiment-method sbivar,SpatialExperiment-method
Estimate measures of bivariate spatial association for multiple imagessbivarMulti
Test for bivariate spatial association in a single imagesbivarSingle
Wrapper to normalize, select feature and scalescaleHelpFun
Scale to [-1,1] rangescaleMinusOne
Scale to [0,1] rangescaleZeroOne
Name a character vector after itselfselfName
Split a SpatialExperiment object into imagessplitSpatialExperiment
Split a stringsund
Test for correlation between the predictions of two GAM modelstestGAM
Perform a score test on the bivariate spatial association in a Gaussian process.testGP
Find trace of a matrix, of traces of an arraytr
Return predictions of a GAM, along with the factored coefficient covariancevcovPredGam
Spatial transcriptomics and metabolomics data of mouse brainVicari
Write _sbivar_ results to an excel worksheetwriteSbivarToXlsx