Package: spatialHMRF Title: Spatial Domains with a Hidden Markov Random Field Version: 0.1.1 Authors@R: c( person("Qian", "Zhu", role = "aut", comment = "original HMRF method and smfishHmrf implementation"), person("Guo-Cheng", "Yuan", email = "guo-cheng.yuan@mssm.edu", role = "aut"), person("Ruben", "Dries", email = "rubendries@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7650-7754")) ) Description: Finds spatial domains by fitting the hidden Markov random field (HMRF) model of Zhu et al. (2018) : each cell's z-scored expression of spatial genes follows a multivariate Gaussian per domain, and a Potts prior favours domains shared with spatial neighbours. The model is fitted by expectation-maximization with iterated conditional modes over the colour classes of the spatial network, from a k-means start, as in the 'smfishHmrf' package. Colour classes are independent sets, so each update is a sparse matrix product; results equal 'smfishHmrf' on the same inputs. License: MIT + file LICENSE Encoding: UTF-8 URL: https://github.com/drieslab/spatialHMRF BugReports: https://github.com/drieslab/spatialHMRF/issues Depends: R (>= 4.1.0) Imports: igraph (>= 1.5.0), Matrix, stats Suggests: testthat (>= 3.0.0) Config/testthat/edition: 3 Roxygen: list(markdown = TRUE) Config/roxygen2/version: 8.0.0 Config/pak/sysreqs: libglpk-dev libxml2-dev Repository: https://drieslab.r-universe.dev Date/Publication: 2026-11-24 21:51:40 UTC RemoteUrl: https://github.com/drieslab/spatialHMRF RemoteRef: HEAD RemoteSha: 01723b3e2c6c40ca4a8708c539658f1ce01acedb NeedsCompilation: no Packaged: 2026-11-29 03:09:30 UTC; root Author: Qian Zhu [aut] (original HMRF method and smfishHmrf implementation), Guo-Cheng Yuan [aut], Ruben Dries [aut, cre] (ORCID: ) Maintainer: Ruben Dries