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
DESCRIPTION |NEWS
card.svg |card.png
sosta/json (API)

# 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.1(bioc 3.24)sosta-1.4.0(bioc 3.23)

softwarespatialtranscriptomicsvisualization

6.53 score 7 stars 20 scripts 28 exports 118 dependencies

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

TargetResultTimeFilesSyslog
bioc-checksNOTE527
linux-devel-x86_64OK494
source / vignettesOK770
linux-release-x86_64OK516
macos-release-arm64OK442
macos-oldrel-arm64OK311
windows-develOK363
windows-releaseOK368
windows-oldrelOK375
wasm-releaseOK202

Exports:.df2ppp.intensityImage.intensityThreshold.SPE2dfassingCellsToStructuresbinaryImageToSFcellTypeProportionscreatePointPatternTissueestimateReconstructionParametersSPEfindIntensityThresholdgetDimXYmeanShapeMetricsminBoundaryDistancesminCellTypeStructDistnormalizeCoordinatesreconstructShapeDensityreconstructShapeDensityImagereconstructShapeDensitySPEshapeIntensityImageshapeMetricssimulateTissueBlobsspatialCoords2SFSPE2pppstCalculateCurvaturestCalculateShapeCurlstFeatureAxestotalShapeMetricsxyCoordinates

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

01 -- Overview of sosta
Installation | Setup | Introduction | Structure reconstruction | Reconstruction of structures for one image | Reconstruction of structures for all images | Intersection with cells | Structure level metrics | Proportion of cell types within structures | Shape Metrics | Cell level metrics | Distance to structure border | Structure boundary vs FOV boundary | Session Info | References

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

02 -- Reconstruction and analysis of pancreatic islets from IMC data
Installation | Setup | Introduction | Reconstruction of pancreatic islets | Reconstruction of pancreatic islets for one image | Reconstruction of pancreatic islets for all images | Calculation of metrics | Structure metrics | Investigate metrics | Plot structure metrics | Testing using mixed effects models | Model diagnostics | Session Info | References

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