Package: sosta 1.5.1

Samuel Gunz

sosta: A package for the analysis of anatomical tissue structures in spatial omics data

sosta (Spatial Omics STructure Analysis) is a package for analyzing spatial omics data to explore tissue organization at the anatomical structure level. It reconstructs anatomically relevant structures based on molecular features or cell types. It further calculates a range of metrics at the structure level to quantitatively describe tissue architecture. The package is designed to integrate with other packages for the analysis of spatial omics data.

Authors:Samuel Gunz [aut, cre], Mark D. Robinson [aut, fnd]

sosta_1.5.1.tar.gz
sosta_1.5.1.zip(r-4.7)sosta_1.5.1.zip(r-4.6)sosta_1.5.1.zip(r-4.5)
sosta_1.5.1.tgz(r-4.6-any)sosta_1.5.1.tgz(r-4.5-any)
sosta_1.5.1.tar.gz(r-4.7-any)sosta_1.5.1.tar.gz(r-4.6-any)
sosta_1.5.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sosta/json (API)
NEWS

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

Bug tracker:https://github.com/sgunz/sosta/issues

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

Datasets:
  • sostaSPE - Example SpatialExperiment Object with Simulated Tissue Images and Point Patterns

On BioConductor:sosta-1.5.0(bioc 3.24)sosta-1.4.0(bioc 3.23)

softwarespatialtranscriptomicsvisualization

6.37 score 7 stars 14 scripts 258 downloads 28 exports 118 dependencies

Last updated from:0c7092a6af. Checks:1 NOTE, 9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksNOTE236
linux-devel-x86_64OK461
source / vignettesOK491
linux-release-x86_64OK442
macos-release-arm64OK345
macos-oldrel-arm64OK259
windows-develOK292
windows-releaseOK369
windows-oldrelOK390
wasm-releaseOK175

Exports:.df2ppp.intensityImage.intensityThreshold.SPE2dfassingCellsToStructuresbinaryImageToSFcellTypeProportionscreatePointPatternTissueestimateReconstructionParametersSPEfindIntensityThresholdgetDimXYmeanShapeMetricsminBoundaryDistancesminCellTypeStructDistnormalizeCoordinatesreconstructShapeDensityreconstructShapeDensityImagereconstructShapeDensitySPEshapeIntensityImageshapeMetricssimulateTissueBlobsspatialCoords2SFSPE2pppstCalculateCurvaturestCalculateShapeCurlstFeatureAxestotalShapeMetricsxyCoordinates

Dependencies:abindaskpassbase64encBiobaseBiocFileCacheBiocGenericsbitbit64bitopsblobbslibcachemclassclassIntclicpp11curlDBIdbplyrDelayedArraydeldirdigestdplyre1071EBImageevaluatefarverfastmapfftwtoolsfilelockfontawesomefsgenericsGenomicRangesggplot2gluegoftestgtablehighrhtmltoolshtmlwidgetshttr2IRangesisobandjpegjquerylibjsonliteKernSmoothknitrlabelinglatticelifecyclelocfitmagickmagrittrMASSMatrixMatrixGenericsmatrixStatsmemoisemimenlmeopensslpatchworkpillarpkgconfigpngpolyclipproxypurrrR6rappdirsRColorBrewerRcppRCurlrjsonrlangrmarkdownRSQLites2S4ArraysS4VectorsS7sassscalesSeqinfosfSingleCellExperimentsmoothrSparseArraySpatialExperimentspatstat.dataspatstat.explorespatstat.geomspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstringistringrSummarizedExperimentsystensorterratibbletidyrtidyselecttifftinytexunitsutf8vctrsviridisLitewithrwkxfunXVectoryaml

01 -- Overview of sosta

Rendered fromStructureReconstructionVignette.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2026-03-23
Started: 2025-03-21

02 -- Reconstruction and analysis of pancreatic islets from IMC data

Rendered fromImcDiabetesIsletsVignette.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2025-04-14
Started: 2025-03-21

Readme and manuals

Help Manual

Help pageTopics
Function to convert 'data.frame' to 'ppp' object.df2ppp
Function to estimate the intensity image of a point pattern.intensityImage
Function to estimate the intensity threshold for the reconstruction of spatial structures.intensityThreshold
Function to convert 'SpatialExperiment' object to a data frame.SPE2df
Function to assign points / coordinates to structuresassingCellsToStructures
Converts a binary matrix to an sf polygonbinaryImageToSF
Calculate the proportion of each cell type within spatial structurescellTypeProportions
Create a Point Pattern on a Simulated Tissue ImagecreatePointPatternTissue
Estimate reconstruction parameters from a set of imagesestimateReconstructionParametersSPE
Estimate the intensity threshold for the reconstruction of spatial structuresfindIntensityThreshold
Function to get the dimension based on dim of y axisgetDimXY
Calculate mean shape metrics of a set of polygonsmeanShapeMetrics
Compute minimum boundary distances for each cell within its corresponding image structuresminBoundaryDistances
Compute minimum distances from each cell types to structure boundaries per structureminCellTypeStructDist
Function to normalize coordinates between zero and one while keep scalingnormalizeCoordinates
Reconstruct polygon from point pattern densityreconstructShapeDensity
Reconstruct structure from spe object with given image idreconstructShapeDensityImage
Reconstruct structure from spatial experiment object per image idreconstructShapeDensitySPE
Intensity plotshapeIntensityImage
Calculate a set of shape metrics of a single polygonshapeMetrics
Simulate Tissue BlobssimulateTissueBlobs
Example SpatialExperiment Object with Simulated Tissue Images and Point PatternssostaSPE
Function to convert spatialCoords to an sf objectspatialCoords2SF
Function to convert spatial coordinates of a 'SpatialExperiment' object to a 'ppp' objectSPE2ppp
Calculate curvature of sf objectstCalculateCurvature
Calculate curl of a polygonstCalculateShapeCurl
Calculate the length of feature axes of a single sf polygonstFeatureAxes
Calculate a set of shape metrics of a set of polygonstotalShapeMetrics
Function to extract x y coordinates from binary imagexyCoordinates