<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Genet.</journal-id>
<journal-title>Frontiers in Genetics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Genet.</abbrev-journal-title>
<issn pub-type="epub">1664-8021</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1356709</article-id>
<article-id pub-id-type="doi">10.3389/fgene.2024.1356709</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Genetics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Bayesian hidden mark interaction model for detecting spatially variable genes in imaging-based spatially resolved transcriptomics data</article-title>
<alt-title alt-title-type="left-running-head">Yang et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fgene.2024.1356709">10.3389/fgene.2024.1356709</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Yang</surname>
<given-names>Jie</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2289896/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Jiang</surname>
<given-names>Xi</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1544072/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Jin</surname>
<given-names>Kevin Wang</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2703422/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Shin</surname>
<given-names>Sunyoung</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1553881/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Li</surname>
<given-names>Qiwei</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/895103/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
</contrib-group>
<aff id="aff1">
<sup>1</sup>
<institution>Department of Mathematical Sciences</institution>, <institution>The University of Texas at Dallas</institution>, <addr-line>Richardson</addr-line>, <addr-line>TX</addr-line>, <country>United States</country>
</aff>
<aff id="aff2">
<sup>2</sup>
<institution>Department of Statistics and Data Science</institution>, <institution>Southern Methodist University</institution>, <addr-line>Dallas</addr-line>, <addr-line>TX</addr-line>, <country>United States</country>
</aff>
<aff id="aff3">
<sup>3</sup>
<institution>Program in Computational Biology and Bioinformatics</institution>, <institution>Yale University</institution>, <addr-line>New Haven</addr-line>, <addr-line>CT</addr-line>, <country>United States</country>
</aff>
<aff id="aff4">
<sup>4</sup>
<institution>Department of Mathematics</institution>, <institution>Pohang University of Science and Technology</institution>, <addr-line>Pohang</addr-line>, <country>Republic of Korea</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/258592/overview">Himel Mallick</ext-link>, Cornell University, United States</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2087379/overview">Suvo Chatterjee</ext-link>, Indiana University, United States</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2611397/overview">Boyu Ren</ext-link>, McLean Hospital, United States</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1123110/overview">Xiangyu Luo</ext-link>, Renmin University of China, China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2200778/overview">Piyali Basak</ext-link>, Merck, United States</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Qiwei Li, <email>qiwei.li@utdallas.edu</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>25</day>
<month>04</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>15</volume>
<elocation-id>1356709</elocation-id>
<history>
<date date-type="received">
<day>16</day>
<month>12</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>08</day>
<month>04</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2024 Yang, Jiang, Jin, Shin and Li.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Yang, Jiang, Jin, Shin and Li</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<p>Recent technology breakthroughs in spatially resolved transcriptomics (SRT) have enabled the comprehensive molecular characterization of cells whilst preserving their spatial and gene expression contexts. One of the fundamental questions in analyzing SRT data is the identification of spatially variable genes whose expressions display spatially correlated patterns. Existing approaches are built upon either the Gaussian process-based model, which relies on <italic>ad hoc</italic> kernels, or the energy-based Ising model, which requires gene expression to be measured on a lattice grid. To overcome these potential limitations, we developed a generalized energy-based framework to model gene expression measured from imaging-based SRT platforms, accommodating the irregular spatial distribution of measured cells. Our Bayesian model applies a zero-inflated negative binomial mixture model to dichotomize the raw count data, reducing noise. Additionally, we incorporate a geostatistical mark interaction model with a generalized energy function, where the interaction parameter is used to identify the spatial pattern. Auxiliary variable MCMC algorithms were employed to sample from the posterior distribution with an intractable normalizing constant. We demonstrated the strength of our method on both simulated and real data. Our simulation study showed that our method captured various spatial patterns with high accuracy; moreover, analysis of a seqFISH dataset and a STARmap dataset established that our proposed method is able to identify genes with novel and strong spatial patterns.</p>
</abstract>
<kwd-group>
<kwd>zero-inflated negative binomial mixture model</kwd>
<kwd>bayesian mark interaction model</kwd>
<kwd>spatial transcriptomics</kwd>
<kwd>energy function</kwd>
<kwd>double metropolis-hastings algorithm</kwd>
</kwd-group>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Computational Genomics</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Recent advancements in spatially resolved transcriptomics (SRT) technology have fundamentally transformed our capacity to study cellular behavior at a molecular level, while preserving their spatial and gene expression contexts. This technological leap has opened new avenues for exploring complex biological systems at unprecedented levels of detail and accuracy. <xref ref-type="bibr" rid="B7">Efremova et al. (2020)</xref> and <xref ref-type="bibr" rid="B20">Liao et al. (2021)</xref> found that the positional context of gene expression is important to understanding tissue functionality and pathology changes, which highlights the pivotal role of SRT techniques. Broadly, SRT technologies are categorized into sequencing-based and imaging-based methods based on differences in RNA profiling: sequencing-based and imaging-based. Spatial transcriptomics, one of the next-generation sequencing (NGS) technologies, resolves gene expression profiles at a resolution of 100&#xa0;<italic>&#x3bc;m</italic>. Spatial transcriptomics implemented by the 10x Visium platform achieved 55&#xa0;<italic>&#x3bc;m</italic> resolution, allowing for a detailed study of spatial organization. On the other hand, imaging-based technologies have revolutionized the field of transcriptomics by achieving single-cell resolution, with prominent examples such as sequential fluorescence <italic>in situ</italic> hybridization seqFISH (<xref ref-type="bibr" rid="B28">St&#xe5;hl et al., 2016</xref>), seqFISH&#x2b; (<xref ref-type="bibr" rid="B8">Eng et al., 2019</xref>), and multiplexed error-robust FISH (MERFISH) (<xref ref-type="bibr" rid="B23">Moffitt et al., 2018</xref>). Datasets profiled by SRT technologies have inspired the exploration of the spatial organization of gene expression within tissues. Cohorts with single-cell resolution motivate more biological analysis, such as cell-cell communication analysis <italic>via</italic> CellChat (<xref ref-type="bibr" rid="B15">Jin et al., 2021</xref>), characterization of ligand-receptor interactions between different cell types (<xref ref-type="bibr" rid="B7">Efremova et al., 2020</xref>) and so on. Hence, spatial information provided by imaing-based SRT data makes it more feasible to identify and quantify gene expression in specific regions of a tissue.</p>
<p>One of the most interesting questions arising along the development of SRT techniques is the identification of spatially variable genes (SVGs) whose expressions display spatially correlated patterns. Studies have found that SVGs demarcate clear spatial substructure, and are relevant to disease progression (<xref ref-type="bibr" rid="B31">Svensson et al., 2018</xref>; <xref ref-type="bibr" rid="B13">Hu et al., 2021</xref>). Various methods across different fields have been developed to identify SVGs, each capitalizing on distinct strengths. Trendsceek (<xref ref-type="bibr" rid="B6">Edsg&#xe4;rd et al., 2018</xref>) is built upon marked point processes to rank and evaluate the spatial pattern of each gene; however, it yields unsatisfactory performance (<xref ref-type="bibr" rid="B30">Sun et al., 2020</xref>) and is inhibited from scaling to large-scale data due to the expensive computational cost (<xref ref-type="bibr" rid="B30">Sun et al., 2020</xref>; <xref ref-type="bibr" rid="B5">Dries et al., 2021</xref>). SpatialDE (<xref ref-type="bibr" rid="B31">Svensson et al., 2018</xref>), SPARK (<xref ref-type="bibr" rid="B30">Sun et al., 2020</xref>), and BOOST-GP (<xref ref-type="bibr" rid="B18">Li et al., 2021</xref>) capture spatial correlation patterns by utilizing the Gaussian process. Specifically, SpatialDE models normalized gene expression levels <italic>via</italic> a multivariate Gaussian model with a spatial covariance function characterizing linear and periodic spatial patterns. SPARK models raw counts using a generalized linear spatial model with different periodic and Gaussian kernels. BOOST-GP models raw counts with a Bayesian zero-inflated negative binomial (ZINB) model with a squared exponential kernel covariance matrix. However, the performance of these kernel-based methods relies heavily on the resemblance between the underlying spatial expression patterns and the predefined kernel functions (<xref ref-type="bibr" rid="B14">Jiang et al., 2022</xref>). BinSpect (<xref ref-type="bibr" rid="B5">Dries et al., 2021</xref>), a non-model based method, identifies SVGs through statistical enrichment analysis of spatial network neighbors with binarized gene expression states. SpaGCN (<xref ref-type="bibr" rid="B13">Hu et al., 2021</xref>) defines SVGs as genes as those exhibiting differential expression among spatial domains and employs a deep learning model to identify these domains. BOOST-MI (<xref ref-type="bibr" rid="B14">Jiang et al., 2022</xref>) utilizes an energy-based modified Ising model to identify SVGs exclusively for sequencing-based SRT data, with the limitation that the spatial position of measured spots needs to be on the regular lattice grid. Compared to kernel-based models, energy-based interaction characterization enables the detection of broader types of gene spatial expression patterns.</p>
<p>As mentioned, gene expressions resolved by imaging-based SRT have single-cell resolution, which potentially unearths more biological insights. We aimed to develop a model that can identify SVGs with higher accuracy to be used on data from imaging-based SRT platforms, and uncover more biological mechanisms. Drawing inspiration from the success of energy-based models over kernel-based approaches (<xref ref-type="bibr" rid="B14">Jiang et al., 2022</xref>), we propose a novel joint Bayesian framework model, BOOST-HMI. This model utilizes a recently proposed energy function for mark interaction (<xref ref-type="bibr" rid="B17">Li et al., 2019</xref>). In particular, we adopt a ZINB mixture model to handle the unique data characteristics of SRT, including excess zeros and unknown mean-variance structures. Additionally, our method introduces a latent binary gene expression indicator to distinguish high and low expression states at the cellular level, thereby enhancing the model&#x2019;s robustness against noise. Unlike BOOST-MI, our proposed BOOST-HMI is not constrained by the spatial distribution requirements of sequencing-based SRT data, making it versatile for imaging-based datasets where cells are randomly distributed. Furthermore, BOOST-HMI directly models raw counts within a joint Bayesian framework, addressing uncertainties associated with dichotomization. Our comprehensive simulation studies, covering various scenarios, demonstrate the superior accuracy of BOOST-HMI in detecting SVGs. We also applied our model to two real datasets: a mouse hippocampus seqFISH dataset and a mouse visual cortex STARmap dataset, where it successfully detected more spatial patterns and layer-specific SVGs, potentially unveiling novel biological insights.</p>
<p>The rest of the paper is organized as follows: <xref ref-type="sec" rid="s2">section 2</xref> introduces our ZINB mixture model for identifying SVGs from SRT count data and discusses the extension of the Bayesian mark interaction model to SRT data. In <xref ref-type="sec" rid="s3">section 3</xref>, we describe the Markov chain Monte Carlo (MCMC) algorithms for posterior sampling and the resulting posterior inference. Finally, <xref ref-type="sec" rid="s4">section 4</xref> presents our method&#x2019;s performance on simulated and real SRT datasets, compared with five other methodologies.</p>
</sec>
<sec sec-type="methods" id="s2">
<title>2 Methods</title>
<p>In this section, we introduce a ZINB mixture model for directly modeling the imaging-based SRT count data, and a hidden mark interaction model to quantify the spatial dependency of latent binary gene expression levels. The schematic diagram of BOOST-HMI is shown in <xref ref-type="fig" rid="F1">Figure 1</xref>, and the graphical and hierarchical representations are presented in <xref ref-type="sec" rid="s11">Supplementary Figure S5</xref> and <xref ref-type="sec" rid="s11">Supplementary Table S1</xref>, respectively, in the <xref ref-type="sec" rid="s11">Supplementary Material</xref>.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>The schematic diagram of the proposed BOOST-HMI model.</p>
</caption>
<graphic xlink:href="fgene-15-1356709-g001.tif"/>
</fig>
<p>Before introducing the models, we summarize the SRT data notations as follows. We denote the gene expression raw counts as a <italic>n</italic>-by-<italic>p</italic> matrix <bold>
<italic>Y</italic>
</bold> with each entry <inline-formula id="inf1">
<mml:math id="m1">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="double-struck">N</mml:mi>
</mml:math>
</inline-formula> denoting the number of read counts for gene <italic>j</italic> at cell <italic>i</italic>. Every column <bold>
<italic>y</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> in <bold>
<italic>Y</italic>
</bold> denotes the expression counts across all measured cells for gene <italic>j</italic>, while each row <bold>
<italic>y</italic>
</bold>
<sub>
<italic>i</italic>&#x22c5;</sub> denotes the counts of all genes on cell <italic>i</italic> where <italic>i</italic> &#x3d; 1, &#x2026; , <italic>n</italic>, <italic>j</italic> &#x3d; 1, &#x2026; , <italic>p</italic>. As to geospatial profile, let a <italic>n</italic>-by-2 matrix <italic>T</italic> be the matrix for the spatial location of cells, where each row <inline-formula id="inf2">
<mml:math id="m2">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> records the coordinates of cell <italic>i</italic> in the 2D Cartesian plane.</p>
<sec id="s2-1">
<title>2.1 A ZINB mixture model for modeling gene expression count data</title>
<p>For the majority of SRT techniques, gene expression measurements obtained are in the form of counts. In the context of for imaging-based SRT platforms, gene expressions are collected as the count of barcoded mRNA corresponding to a particular transcript within a single cell (<xref ref-type="bibr" rid="B34">Zhao et al., 2022</xref>). Due to the characteristics of these measurements, observed count data often suffers from over-dispersion and zero-inflation. The negative binomial distribution can effectively account for the mean-variance relationship in the raw counts. Moveover, the gene expression count matrix <bold>
<italic>Y</italic>
</bold> is characterized by an inflated number of zeros, resulting from imaging sensitivity and hybridization efficiency (<xref ref-type="bibr" rid="B34">Zhao et al., 2022</xref>); therefore, we generalized the negative binomial (NB) model to the ZINB model to account for both the over-dispersion and the high sparsity level, i.e.,<disp-formula id="e1">
<mml:math id="m3">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mtext>NB</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mtext>&#x2009;or&#x2009;</mml:mtext>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mtext>ZINB</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(1)</label>
</disp-formula>where parameter <italic>&#x3c0;</italic>
<sub>
<italic>i</italic>
</sub> &#x2208; [0, 1] represents the false zero proportion measured on cell <italic>i</italic>. NB(<italic>&#x3bd;</italic>, <italic>&#x3d5;</italic>) denotes a negative binomial distribution with mean <italic>&#x3bd;</italic> and dispersion parameter <italic>&#x3d5;</italic>. Consequently, the variance is <italic>&#x3bd;</italic> &#x2b; <italic>&#x3bd;</italic>
<sup>2</sup>/<italic>&#x3d5;</italic>. 1/<italic>&#x3d5;</italic> controls the overdispersion scaled by the square of mean <italic>&#x3bd;</italic>
<sup>2</sup>. The probability mass function is <inline-formula id="inf3">
<mml:math id="m4">
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>y</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>y</mml:mi>
<mml:mo>!</mml:mo>
<mml:mi mathvariant="normal">&#x393;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3bd;</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>. Given our particular circumstances, the NB mean is decomposed into two multiplicative effects, the size factor <italic>s</italic>
<sub>
<italic>i</italic>
</sub> and the expression level <italic>&#x3bd;</italic>
<sub>
<italic>ij</italic>
</sub>. The collection of <inline-formula id="inf4">
<mml:math id="m5">
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> reflects nuisance effects across cells. We follow SPARK <xref ref-type="bibr" rid="B30">Sun et al. (2020)</xref>, setting <italic>s</italic>
<sub>
<italic>i</italic>
</sub> proportional to the summation of the total number of read counts across all genes for cell <italic>i</italic>, and combine it with a constraint of <italic>&#x220f;</italic>
<sub>
<italic>i</italic>
</sub>
<italic>s</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; 1, which gives <italic>s</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; <italic>&#x2211;</italic>
<sub>
<italic>j</italic>
</sub>
<italic>y</italic>
<sub>
<italic>ij</italic>
</sub>/<italic>&#x220f;</italic>
<sub>
<italic>i</italic>
</sub> <italic>&#x2211;</italic>
<sub>
<italic>j</italic>
</sub>
<italic>y</italic>
<sub>
<italic>ij</italic>
</sub>. By setting the constraint for <italic>s</italic>
<sub>
<italic>i</italic>
</sub>&#x2019;s, we avoid the identifiability problem between <italic>s</italic>
<sub>
<italic>i</italic>
</sub>&#x2019;s and <italic>&#x3bd;</italic>
<sub>
<italic>ij</italic>
</sub>&#x2019;s.</p>
<p>To denoise the relative expression levels, we aim to partition <italic>&#x3bd;</italic>
<sub>
<italic>ij</italic>
</sub> into two groups by introducing the ZINB mixture model. Dichotomization has been widely applied as a step in the analysis of SRT data. BinSpect (<xref ref-type="bibr" rid="B5">Dries et al., 2021</xref>) and BOOST-MI (<xref ref-type="bibr" rid="B14">Jiang et al., 2022</xref>) discretize the normalized expression levels for each gene into two groups for more robust SVG detection results. Here, we introduce a latent binary gene expression level indicator vector <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> to denote the dichotomized expression profiles of each gene <italic>j</italic>. If <italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub> &#x3d; 1, gene <italic>j</italic> is highly expressed at cell <italic>i</italic>, and if <italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub> &#x3d; 0, gene <italic>j</italic> has low expression at cell <italic>i</italic>. A mixture model is suggested to allow different ZINB model parametrizations for high and low expression levels for gene <italic>j</italic>, in which we assume the raw expression count <italic>y</italic>
<sub>
<italic>ij</italic>
</sub> is generated one of two independent ZINB distributions with different means given the underlying binary indicator <italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub>,<disp-formula id="e2">
<mml:math id="m6">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mtext>ZINB</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mtext>ZINB</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(2)</label>
</disp-formula>where <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub> and <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub>, denote the group mean of read count for highly and lowly expressed genes, respectively. To guarantee that the mean expression level for a highly expressed gene is higher than a lowly expressed gene, we set a constraint for NB distribution mean across two expression levels: <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub> &#x3e; <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub>. <italic>&#x3d5;</italic>
<sub>1<italic>j</italic>
</sub> and <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub> represent the dispersion parameters of the NB model for the highly and lowly expressed gene, respectively.</p>
<p>To complete the model, we specify the following prior distributions: <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub> &#x223c;Ga (<italic>a</italic>
<sub>
<italic>&#x3bc;</italic>
</sub>, <italic>b</italic>
<sub>
<italic>&#x3bc;</italic>
</sub>), s.t. <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub> &#x3e; <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub> &#x3e; 0 and <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3d5;</italic>
<sub>1<italic>j</italic>
</sub> &#x223c;Ga (<italic>a</italic>
<sub>
<italic>&#x3d5;</italic>
</sub>, <italic>b</italic>
<sub>
<italic>&#x3d5;</italic>
</sub>). For prior distribution setting, small values such as <italic>a</italic>
<sub>
<italic>&#x3bc;</italic>
</sub> &#x3d; <italic>a</italic>
<sub>
<italic>&#x3d5;</italic>
</sub> &#x3d; 0.01 and <italic>b</italic>
<sub>
<italic>&#x3bc;</italic>
</sub> &#x3d; <italic>b</italic>
<sub>
<italic>&#x3d5;</italic>
</sub> &#x3d; 0.01 are recommended to impose minimal information (<xref ref-type="bibr" rid="B10">Gelman, 2006</xref>). To create an environment conducive to model fitting, we introduce a latent variable <italic>&#x3b7;</italic>
<sub>
<italic>ij</italic>
</sub> to indicate whether a zero count <italic>y</italic>
<sub>
<italic>ij</italic>
</sub> is from the zero or NB component in Eq. <xref ref-type="disp-formula" rid="e1">1</xref>, and impose a Bernoulli prior <italic>&#x3b7;</italic>
<sub>
<italic>ij</italic>
</sub> &#x223c;Bern(<italic>&#x3c0;</italic>
<sub>
<italic>i</italic>
</sub>), which can be further relaxed by formulating a Beta(<italic>a</italic>
<sub>
<italic>&#x3c0;</italic>
</sub>, <italic>b</italic>
<sub>
<italic>&#x3c0;</italic>
</sub>) hyperprior on <italic>&#x3c0;</italic>
<sub>
<italic>i</italic>
</sub>, leading to a Beta-Bernoulli prior for <italic>&#x3b7;</italic>
<sub>
<italic>ij</italic>
</sub> with expectation <italic>a</italic>
<sub>
<italic>&#x3c0;</italic>
</sub>/(<italic>a</italic>
<sub>
<italic>&#x3c0;</italic>
</sub> &#x2b; <italic>b</italic>
<sub>
<italic>&#x3c0;</italic>
</sub>). For the Bernoulli prior, we recommend the noninformative setting with <italic>&#x3c0;</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; 0.5. Similarly, in Beta-Bernoulli prior, we recommend <italic>a</italic>
<sub>
<italic>&#x3c0;</italic>
</sub> &#x3d; <italic>b</italic>
<sub>
<italic>&#x3c0;</italic>
</sub> &#x3d; 1.</p>
</sec>
<sec id="s2-2">
<title>2.2 A brief review of the Bayesian mark interaction model</title>
<p>Marked point interaction models are statistical models for spatial point pattern analysis with applications across diverse fields such as geostatistics, ecology, material physics, and so on (<xref ref-type="bibr" rid="B6">Edsg&#xe4;rd et al., 2018</xref>; <xref ref-type="bibr" rid="B17">Li et al., 2019</xref>). These models are designed to study the interactions among points with numerical or categorical marks in a planar region. Marked point models are receiving greater and greater focus in biology: for instance, Trendsceek applies the marked point process to identify SVGs (<xref ref-type="bibr" rid="B6">Edsg&#xe4;rd et al., 2018</xref>). The Bayesian mark interaction model, proposed by <xref ref-type="bibr" rid="B17">Li et al. (2019)</xref>, is a full Bayesian model that characterizes spatial correlations among cell types from tumor pathology images.</p>
<p>Let <inline-formula id="inf5">
<mml:math id="m7">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:mspace width="0.3333em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mi>n</mml:mi>
</mml:math>
</inline-formula> be the <italic>x</italic>- and <italic>y</italic>-coordinates of point <italic>i</italic>. Let <italic>G</italic> &#x3d; (<italic>V</italic>, <italic>E</italic>) denote an interaction network with a finite set of points <italic>V</italic> and a set of direct interactions <italic>E</italic>. In the introduced Bayesian mark interaction model, we assume points have categorical marks. Here, we denote <inline-formula id="inf6">
<mml:math id="m8">
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> as the categorical marks of <italic>n</italic> points on the plane. <italic>&#x3be;</italic>
<sub>
<italic>i</italic>
</sub> &#x2208; (1, &#x2026; , <italic>Q</italic>), <italic>Q</italic> &#x2265; 2 are the marks of point <italic>i</italic>.</p>
<p>The Bayesian mark interaction model formulates the pattern of marks <bold>
<italic>&#x3be;</italic>
</bold> <italic>via</italic> the energy function, which is first introduced in statistical mechanics. The energy function has terms to account for both first- and second-order properties of the marked point data. Specifically, to model the interaction energy between two points, an exponential decay function with respect to the distance between the two points is used. Moreover, the Bayesian mark interaction model neglects interaction terms of point pairs from <italic>E</italic> when the corresponding distance is beyond a threshold <italic>c</italic>. Consequently, the model focuses on a sparse network <italic>G</italic>&#x2032; &#x3d; (<italic>V</italic>, <italic>E</italic>&#x2032;), where <italic>E</italic>&#x2032; includes edges joining pairs of points <italic>i</italic> and <italic>i</italic>&#x2032; with distance <italic>d</italic>
<sub>
<italic>ii</italic>&#x2019;</sub> &#x3c; <italic>c</italic>. The setting of the distance threshold is added to avoid the high computation cost incurred when summing over <italic>n</italic> data points and (<italic>n</italic> &#x2212; 1)<italic>n</italic>/2 interacting pairs of points with large <italic>n</italic>. Then, the potential energy of <italic>G</italic>&#x2032; is measured by two addictive terms,<disp-formula id="e3">
<mml:math id="m9">
<mml:mi>V</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">&#x398;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>q</mml:mi>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(3)</label>
</disp-formula>where <italic>q</italic>, <italic>q</italic>&#x2032; &#x2208; {1, &#x2026; , <italic>Q</italic>} are the categories of marks. <inline-formula id="inf7">
<mml:math id="m10">
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> and <inline-formula id="inf8">
<mml:math id="m11">
<mml:mi mathvariant="bold">&#x398;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are defined as first- and second-order intensities. (<italic>i</italic> &#x223c; <italic>i</italic>&#x2032;) denotes the collection of interacting pairs of cells in <italic>G</italic>&#x2032;. <inline-formula id="inf9">
<mml:math id="m12">
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msqrt>
</mml:math>
</inline-formula> denotes the Euclidean distance between point <italic>i</italic> and <italic>i</italic>&#x2032;. <italic>&#x3bb;</italic> is the decay parameter of the distance between two points in the exponential decay function, where a larger <italic>&#x3bb;</italic> makes energy diminish quickly with respect to the increase in point pair distance.</p>
<p>By restricting the interaction effect within radius <italic>c</italic>
<sub>
<italic>d</italic>
</sub>, the Bayesian mark interaction model defines a local energy. According to the fundamental Hammersley-Clifford theorem (<xref ref-type="bibr" rid="B4">Clifford, 1990</xref>), a probability measure with a Markov property exists if we have a locally defined energy, called a Gibbs measure. This measure gives the probability of observing categorical marks associated with their locations in a particular state. We can write the joint probability on marks <bold>
<italic>&#x3be;</italic>
</bold> as,<disp-formula id="e4">
<mml:math id="m13">
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">&#x398;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>V</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">&#x398;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="normal">&#x39e;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>V</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">&#x398;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
</mml:math>
<label>(4)</label>
</disp-formula>which is proportional to the exponential of the negative energy of marks <bold>
<italic>&#x3be;</italic>
</bold> calculated by Eq. <xref ref-type="disp-formula" rid="e3">3</xref>. The denominator is a normalizing constant that needs to sum over the entire space &#x39e; of marks combination consisting of <italic>Q</italic>
<sup>
<italic>n</italic>
</sup> states, which is intractable even for a small size model.</p>
<p>The joint probability (Eq. <xref ref-type="disp-formula" rid="e4">4</xref>) can be considered as the full data likelihood. To interpret the parameters clearly, we write the probability of observing point <italic>i</italic> having mark category <italic>q</italic> conditional on its neighborhood configuration,<disp-formula id="e5">
<mml:math id="m14">
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>q</mml:mi>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">&#x398;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x221d;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>:</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(5)</label>
</disp-formula>where <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x2212;<italic>i</italic>
</sub> denotes the collection of all marks, except the <italic>i</italic>th one. Eq. <xref ref-type="disp-formula" rid="e5">5</xref> shows that the probability of point <italic>i</italic> with mark <italic>q</italic> depends on parameter <italic>&#x3c9;</italic>
<sub>
<italic>q</italic>
</sub>, <italic>&#x3b8;</italic>
<sub>
<italic>qq</italic>&#x2032;</sub>, and the decay parameter <italic>&#x3bb;</italic>. Parameters in Eq. <xref ref-type="disp-formula" rid="e5">5</xref> are interpreted below. Suppose there is no interaction between any two points in the space, i.e., <italic>&#x3b8;</italic>
<sub>
<italic>qq</italic>&#x2032;</sub> &#x3d; 0; then, the conditional probability of point <italic>i</italic> with <italic>&#x3be;</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; <italic>q</italic> is <italic>&#x3c0;</italic>(<italic>&#x3be;</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; <italic>q</italic>&#x7c;&#x22c5;) &#x221d; exp (&#x2212;<italic>&#x3c9;</italic>
<sub>
<italic>q</italic>
</sub>). Therefore, the model parameter <italic>&#x3c9;</italic>
<sub>
<italic>q</italic>
</sub> is related to the abundance of points with mark <italic>q</italic>. Fixing <bold>
<italic>&#x3c9;</italic>
</bold> as equal values, we obtain the conditional probability of point <italic>i</italic> with <italic>&#x3be;</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; <italic>q</italic> is <italic>&#x3c0;</italic>(<italic>&#x3be;</italic>
<sub>
<italic>i</italic>
</sub> &#x3d; <italic>q</italic>&#x7c;&#x22c5;) &#x221d; exp (&#x2212;<italic>&#x2211;</italic>
<sub>
<italic>q</italic>&#x2032;</sub>[<italic>&#x2211;</italic>
<sub>{<italic>i</italic>&#x2032;:(<italic>i</italic>&#x223c;<italic>i</italic>&#x2032;)&#x2208;<italic>E</italic>&#x2032;}</sub>&#x2009;exp (&#x2212;<italic>&#x3bb;d</italic>
<sub>
<italic>ii</italic>&#x2032;</sub>)<italic>I</italic> (<italic>&#x3be;</italic>
<sub>
<italic>i</italic>&#x2032;</sub> &#x3d; <italic>q</italic>&#x2032;)]). The second-order intensity <italic>&#x3b8;</italic>
<sub>
<italic>qq</italic>&#x2032;</sub> quantifies the dependency of mark <italic>q</italic> with the nearby points, with mark <italic>q</italic>&#x2032; scaling by the distance decay function. A detailed parameter interpretation is provided by <xref ref-type="bibr" rid="B17">Li et al. (2019)</xref>.</p>
</sec>
<sec id="s2-3">
<title>2.3 A hidden mark interaction model for identifying SVGs</title>
<p>In <xref ref-type="sec" rid="s2-1">Section 2.1</xref>, we describe how our ZINB mixture model is used to convert read counts <bold>
<italic>y</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> for each gene <italic>j</italic> into their corresponding hidden binary states <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>. This dichotomization process allows us to represent gene expression in a binary format. We then treat the spatial distribution of cells as a two-dimensional point process, with the binary gene expressions <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> serving as the markers of these points. This setup enables us to effectively use the mark interaction model to assess the spatial correlations among these markers. In the context of SVG detection <italic>via</italic> the energy-based approach such as outlined by <xref ref-type="bibr" rid="B14">Jiang et al. (2022)</xref>, the core concept involves quantifying the interactions between spots or cells of high and low expression levels for a given gene <italic>j</italic>, designated by <italic>q</italic> &#x3d; 1 and 0, respectively. To streamline the energy function presented in Eq. <xref ref-type="disp-formula" rid="e5">5</xref>, we only focus on the second-order intensity, <italic>&#x3b8;</italic>
<sub>12</sub>, hereafter referred to as <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub>, while omitting self-interaction terms, <italic>&#x3b8;</italic>
<sub>11</sub> and <italic>&#x3b8;</italic>
<sub>22</sub>. In other words, interactions between the neighboring points with the same marks are excluded. This adjustment notably simplifies model complexity, rendering the negative energy function used in BOOST-MI a special case of the proposed BOOST-HMI, assuming <italic>&#x3bb;</italic> &#x3d; 0 and <italic>c</italic>
<sub>
<italic>d</italic>
</sub> is chosen to match the distance between adjacent spots or cells. For simplicity, as outlined in <xref ref-type="sec" rid="s2-2">Section 2.2</xref>, we treat the decay parameter <italic>&#x3bb;</italic> as a pre-defined hyperparameter <italic>&#x3bb;</italic>
<sub>0</sub>. Within this framework, the energy function can be expressed as follows:<disp-formula id="e6">
<mml:math id="m15">
<mml:mi>V</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2260;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(6)</label>
</disp-formula>
</p>
<p>To interpret the model parameters, we provide the conditional probability of observing a high-expression level <italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub> &#x3d; 1 of gene <italic>j</italic> at cell <italic>i</italic>, given the expression levels of other cells for gene <italic>j</italic>:<disp-formula id="e7">
<mml:math id="m16">
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x221d;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(7)</label>
</disp-formula>As introduced in <xref ref-type="sec" rid="s2-2">Section 2.2</xref>, the model parameters <inline-formula id="inf10">
<mml:math id="m17">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> represent the first-order property, and <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> reflects the second-order property of the spatial distribution of marks. Specifically, model parameters <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3c9;</italic>
<sub>1<italic>j</italic>
</sub> are related to the abundance of cells with low and high expression levels of gene <italic>j</italic>, respectively. From Eq. <xref ref-type="disp-formula" rid="e7">7</xref>, when <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> &#x3d; 0, it follows that <italic>&#x3c0;</italic>(<italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub> &#x3d; 1&#x7c;&#x22c5;) &#x221d; exp (&#x2212;<italic>&#x3c9;</italic>
<sub>1<italic>j</italic>
</sub>) and <italic>&#x3c0;</italic>(<italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub> &#x3d; 0&#x7c;&#x22c5;) &#x221d; exp (&#x2212;<italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub>). This means the conditional distribution of <italic>&#x3be;</italic>
<sub>
<italic>ij</italic>
</sub> for any given cell is independent of the states of all other cells, thereby generating a completely random expression pattern indicative of a non-SVG. If the interaction parameter <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> between highly and lowly expressed cells is positive, then Eq. <xref ref-type="disp-formula" rid="e7">7</xref> becomes a decreasing function with respect to the number of lowly expressed neighbors <italic>&#x2211;</italic>
<sub>
<italic>i</italic>&#x223c;<italic>i</italic>&#x2032;</sub>
<italic>I</italic> (<italic>&#x3be;</italic>
<sub>
<italic>i</italic>&#x2032;<italic>j</italic>
</sub> &#x3d; 0). This implies that a cell <italic>i</italic> is more likely to be in the highly expressed group when there are fewer low expressed cells in the surrounding area. In other words, a positive <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> suggests that the gene expression level at cell <italic>i</italic> tends to be the same with the majority of its neighboring cells, leading to a repulsion pattern. Conversely, a negative <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> indicates an attraction pattern, where cells of differing expression levels are more likely to be adjacent. Both the attraction and repulsion patterns are characteristic of SVGs. It is important to recognize that the energy functions used in BOOST-HMI and BOOST-MI differ in their signs. As a result, <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> assumes opposite meanings between these two models. Parameter <italic>&#x3bb;</italic>
<sub>0</sub> controls the change of interaction strength between a pair of points with respect to their distance. A larger <italic>&#x3bb;</italic>
<sub>0</sub> causes the interaction between 2&#xa0;cells to diminish faster, resulting in a smaller interactive neighborhood for each cell. As a hyperparameter, <italic>&#x3bb;</italic>
<sub>0</sub> needs to be set appropriately to reflect the interaction neighborhood for cells.</p>
<p>An identifiability problem arises when adding a nonzero constant to <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3c9;</italic>
<sub>1<italic>j</italic>
</sub>, as it causes the joint probability <italic>&#x3c0;</italic>(<bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>&#x7c;&#x22c5;) to remain invariant. Therefore, we constrain <italic>&#x3c9;</italic>
<sub>1<italic>j</italic>
</sub> &#x3d; 1 and establish prior distributions for <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> to complete the parameter model settings for the hidden mark interaction model: <inline-formula id="inf11">
<mml:math id="m18">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mtext>N</mml:mtext>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf12">
<mml:math id="m19">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mtext>N</mml:mtext>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>. The recommended hyperparameter setting is discussed in <xref ref-type="sec" rid="s4-1">Section 4.1</xref>.</p>
</sec>
</sec>
<sec id="s3">
<title>3 Model fitting</title>
<p>In this section, we introduce the MCMC algorithm for model fitting and posterior inference. Our model space consists of (<bold>
<italic>M</italic>
</bold>, <bold>&#x3a6;</bold>, <bold>
<italic>H</italic>
</bold>, <bold>&#x39e;</bold>, <bold>
<italic>&#x3c9;</italic>
</bold>
<sub>0</sub>, <bold>
<italic>&#x3b8;</italic>
</bold>) with the underlying grouped gene expression levels <inline-formula id="inf13">
<mml:math id="m20">
<mml:mi mathvariant="bold-italic">M</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, the dispersion parameters <inline-formula id="inf14">
<mml:math id="m21">
<mml:mi mathvariant="bold">&#x3a6;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, the extra zero indicators <inline-formula id="inf15">
<mml:math id="m22">
<mml:mi mathvariant="bold-italic">H</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, the binary expression level indicators <inline-formula id="inf16">
<mml:math id="m23">
<mml:mi mathvariant="bold">&#x39e;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, the first-order intensity parameter <inline-formula id="inf17">
<mml:math id="m24">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>01</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> and the interaction parameter <inline-formula id="inf18">
<mml:math id="m25">
<mml:mi mathvariant="bold-italic">&#x3b8;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> in the mark interaction model. Each gene is examined independently by BOOST-HMI. We give the full posterior distribution for gene <italic>j</italic> as,<disp-formula id="e8">
<mml:math id="m26">
<mml:mtable class="aligned">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x221d;</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:munder>
<mml:mrow>
<mml:mo>&#x220f;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:munder>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:munderover accentunder="false" accent="true">
<mml:mrow>
<mml:mo>&#x220f;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
</mml:mtable>
<mml:mo>.</mml:mo>
</mml:math>
<label>(8)</label>
</disp-formula>
</p>
<p>Our primary aim was to infer <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> and <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>, which define the Gibbs probability measure based on the local energy function. We provide estimation and inference on first-order intensity <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub>, which represents the abundance of lowly expressed levels of gene <italic>j</italic>, and the second-order intensity <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub>, which captures the spatial correlation between two expression levels. The estimated latent gene expression level indicator provides a robust estimation of the spatial organization of marks.</p>
<sec id="s3-1">
<title>3.1 MCMC algorithms</title>
<p>We estimate <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub>, <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3d5;</italic>
<sub>1<italic>j</italic>
</sub> using the random walk Metropolis-Hastings (RWMH) algorithm. <bold>
<italic>&#x3b7;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> and <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> are estimated with a Gibbs sampler. The Gibbs probability measure for the distribution of latent gene expression indicator <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> in Eq. <xref ref-type="disp-formula" rid="e7">7</xref> omits an intractable normalizing constant <inline-formula id="inf19">
<mml:math id="m27">
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>H</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, which makes the Metropolis-Hastings algorithm infeasible. For instance, to model a gene expression profile with <italic>n</italic> &#x3d; 257 cells, we need to traverse 2<sup>257</sup> &#x2248; 2.3 &#xd7; 10<sup>77</sup> different arrangements of <bold>
<italic>&#x3be;</italic>
</bold> for every gene, which is a heavy computational burden. To overcome this issue, we use the double Metropolis-Hastings (DMH) algorithm proposed by Liang et al. <xref ref-type="bibr" rid="B19">Liang (2010)</xref> to estimate <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> by canceling the intractable normalizing constant. The DMH is an efficient auxiliary variable MCMC algorithm. In contrast to other auxiliary MCMC algorithms, it does not require drawing the auxiliary variables from a perfect sampler, which usually increases computational cost (<xref ref-type="bibr" rid="B24">M&#xf8;ller et al., 2006</xref>). The full details of MCMC algorithms is described in Section S1 of the <xref ref-type="sec" rid="s11">Supplementary Material</xref>.</p>
</sec>
<sec id="s3-2">
<title>3.2 Posterior inference</title>
<p>Posterior inference of parameters <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub>, <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3d5;</italic>
<sub>1<italic>j</italic>
</sub>, <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub>, and <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> is obtained by averaging the MCMC posterior samples after burn-in. We are interested in identifying the SVGs by summarizing the interaction parameter <bold>
<italic>&#x3b8;</italic>
</bold>. As stated in <xref ref-type="sec" rid="s2-3">Section 2.3</xref>, investigating whether <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> is positive or negative is of great importance to inferring the spatial expression pattern of gene <italic>j</italic>. To test if gene <italic>j</italic> demonstrates an attraction pattern, we applied hypothesis testing <inline-formula id="inf20">
<mml:math id="m28">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2265;</mml:mo>
<mml:mn>0</mml:mn>
</mml:math>
</inline-formula> versus <inline-formula id="inf21">
<mml:math id="m29">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0</mml:mn>
</mml:math>
</inline-formula>. To test repulsion pattern, the hypothesis testing is <inline-formula id="inf22">
<mml:math id="m30">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mn>0</mml:mn>
</mml:math>
</inline-formula> versus <inline-formula id="inf23">
<mml:math id="m31">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3e;</mml:mo>
<mml:mn>0</mml:mn>
</mml:math>
</inline-formula>. If there is strong evidence to reject the null hypothesis <inline-formula id="inf24">
<mml:math id="m32">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, we conclude that gene <italic>j</italic> is an SVG. The Bayes factor (BF) is computed to infer whether <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> is positive or negative with statistical significance from the MCMC algorithm results. The Bayes factor measures the favorability of <inline-formula id="inf25">
<mml:math id="m33">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> as<disp-formula id="e9">
<mml:math id="m34">
<mml:msub>
<mml:mrow>
<mml:mtext>BF</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c0;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2248;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2265;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>&#x2009;for&#x2009;attraction,&#x2009;</mml:mtext>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3e;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>&#x2009;for&#x2009;repulsion,&#x2009;</mml:mtext>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(9)</label>
</disp-formula>where <italic>u</italic> indexes the iteration and <italic>U</italic> is the total number of iterations after burn-in. The larger the BF<sub>
<italic>j</italic>
</sub>, the more likely gene <italic>j</italic> is an SVG with an attraction pattern. The smaller the BF<sub>
<italic>j</italic>
</sub>, the more likely gene <italic>j</italic> is an SVG with a repulsion pattern.</p>
<p>Another important parameter in our model is the latent gene expression level indicator <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>. We summarize the posterior distribution of <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub> <italic>via maximum-a-posteriori</italic> (MAP) estimates, which is the mode of the posterior distribution. A more comprehensive summary of <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>&#x2019;s is based on their marginal posterior probabilities of inclusion (PPI), where <inline-formula id="inf26">
<mml:math id="m35">
<mml:msub>
<mml:mrow>
<mml:mtext>PPI</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>/</mml:mo>
<mml:mi>U</mml:mi>
</mml:math>
</inline-formula>. Then, the latent expression indicator indicates a high expression spot when PPIs are greater than a threshold <italic>c</italic>
<sub>
<italic>p</italic>
</sub>:<disp-formula id="equ1">
<mml:math id="m36">
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>PPI</mml:mtext>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>PPI</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>PPI</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>
</p>
</sec>
</sec>
<sec sec-type="results" id="s4">
<title>4 Results</title>
<sec id="s4-1">
<title>4.1 Simulation study</title>
<p>We generated simulated data to evaluate the ability of BOOST-HMI to identify SVGs and provided a comparison with five competing methods: SpatialDE (<xref ref-type="bibr" rid="B31">Svensson et al., 2018</xref>), SPARK (<xref ref-type="bibr" rid="B30">Sun et al., 2020</xref>), SPARK-X (<xref ref-type="bibr" rid="B35">Zhu et al., 2021</xref>), BinSpect (<xref ref-type="bibr" rid="B5">Dries et al., 2021</xref>), and BOOST-GP (<xref ref-type="bibr" rid="B18">Li et al., 2021</xref>).</p>
<p>Spatial locations of simulated data were from the geospatial profile of the mouse hippocampus dataset field 43 (<xref ref-type="bibr" rid="B27">Shah et al., 2016</xref>) with <italic>n</italic> &#x3d; 257 cells, which we present in <xref ref-type="sec" rid="s4-2">Section 4.2</xref>. To generate the expression counts for gene <italic>j</italic>, the latent gene expression level indicators <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>&#x2019;s were first generated based on Eq. <xref ref-type="disp-formula" rid="e7">7</xref> with three different values of <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> &#x2208; {1.4, 1, 0.6} and the fixed value of <italic>&#x3c9;</italic>
<sub>1<italic>j</italic>
</sub> &#x3d; 1. These three values of <bold>
<italic>&#x3c9;</italic>
</bold>
<sub>
<italic>j</italic>
</sub> correspond to approximately 60%, 50%, and 40% lowly-expressed cells in <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>. Additionally, we set four different values of <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> &#x2208; {&#x2212;2.5, &#x2212;1.2, 1.9, 3.2} to generate SVGs with various patterns of attraction or repulsion. These values correspond to strong attraction, weak attraction, weak repulsion, and strong repulsion patterns, respectively. For the non-SVG, <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> &#x3d; 0 which indicates complete randomness and no spatial correlation. The distance threshold <italic>c</italic>
<sub>
<italic>d</italic>
</sub> and decay parameter <italic>&#x3bb;</italic>
<sub>0</sub> were set as 0.15 and 20, respectively. We then simulated gene expression data from a ZINB model with three different group-mean ratios <italic>R</italic> &#x2208; {2, 5, 10} between high and low expression:<disp-formula id="equ2">
<mml:math id="m37">
<mml:mtable class="aligned">
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mtext>NB</mml:mtext>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mi>r</mml:mi>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:mtext>NB</mml:mtext>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3be;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mi>I</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="1em"/>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</disp-formula>where the underlying baseline expression levels <italic>&#x3b2;</italic>
<sub>0</sub> &#x3d; 10. In the simulation study, size factors <inline-formula id="inf27">
<mml:math id="m38">
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> were generated from log-N (0, 0.2<sup>2</sup>), and dispersion parameters <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3d5;</italic>
<sub>1<italic>j</italic>
</sub> in the NB model are generated from an exponential distribution Exp (1/10). Further, to imitate high sparsity and account for medium sparsity in real SRT data, we created three sets of sparsity levels, 0%&#x2013;10%, 10%&#x2013;20%, and 30%&#x2013;40%, and generated extra zero parameters <bold>
<italic>&#x3b7;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>&#x2019;s correspondingly. Extra zeros were randomly selected and imputed into the generated gene expression count data. Thus, we considered three group-mean ratios and three sparsity levels, which is 3 &#xd7; 3 &#x3d; 9 scenarios in total. For each scenario, we simulated 30 replicates with <italic>p</italic> &#x3d; 100 genes in each replicate, 10 out of which were SVGs.</p>
<p>Before estimating the parameters using BOOST-HMI, we specified the prior distributions. Non-informative gamma priors were specified for <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub>, <italic>&#x3bc;</italic>
<sub>1<italic>j</italic>
</sub>, <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3d5;</italic>
<sub>1<italic>j</italic>
</sub>, i.e., <italic>&#x3bc;</italic>
<sub>0<italic>j</italic>
</sub> &#x223c;Ga (<italic>a</italic>
<sub>
<italic>&#x3bc;</italic>
</sub>, <italic>b</italic>
<sub>
<italic>&#x3bc;</italic>
</sub>) and <italic>&#x3d5;</italic>
<sub>0<italic>j</italic>
</sub> &#x223c;Ga (<italic>a</italic>
<sub>
<italic>&#x3d5;</italic>
</sub>, <italic>b</italic>
<sub>
<italic>&#x3d5;</italic>
</sub>). We set <italic>a</italic>
<sub>
<italic>&#x3bc;</italic>
</sub>, <italic>b</italic>
<sub>
<italic>&#x3bc;</italic>
</sub>, <italic>a</italic>
<sub>
<italic>&#x3d5;</italic>
</sub>, and <italic>b</italic>
<sub>
<italic>&#x3d5;</italic>
</sub> to 0.01, which produced a gamma distribution with mean one and variance 100. Priors for <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> and <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> were set to control the gene expression abundance and gene expression pattern, <inline-formula id="inf28">
<mml:math id="m39">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mtext>N</mml:mtext>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf29">
<mml:math id="m40">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x223c;</mml:mo>
<mml:mtext>N</mml:mtext>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>. In the simulation study and real data analysis, we set <italic>&#x3c4;</italic>
<sub>
<italic>&#x3c9;</italic>
</sub> &#x3d; 0.5, where the prior distribution of <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub> indicates that the latent proportion of low expression cells ranges from 1% to 100% with a probability of 95%. <italic>&#x3c4;</italic>
<sub>
<italic>&#x3b8;</italic>
</sub> was set to 3.5 such that the prior for <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> guarantees that <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> falls within &#x2212;6 to 6 with a probability of 92%. For hyperparameters in the energy function, we set the distance threshold <italic>c</italic>
<sub>
<italic>d</italic>
</sub> &#x3d; 0.15 and expected the relationship of decay parameter <italic>&#x3bb;</italic>
<sub>0</sub> and <italic>c</italic>
<sub>
<italic>d</italic>
</sub> to be exp (&#x2212;<italic>&#x3bb;</italic>
<sub>0</sub>
<italic>c</italic>
<sub>
<italic>d</italic>
</sub>) &#x3d; 0.05, which specifies the range of exponential decay function exp (&#x2212;<italic>&#x3bb;</italic>
<sub>0</sub>
<italic>d</italic>
<sub>
<italic>ii</italic>&#x2032;</sub>) to be [0.05, 1] as <italic>c</italic>
<sub>
<italic>d</italic>
</sub> &#x2265; <italic>d</italic>
<sub>
<italic>ii</italic>&#x2019;</sub> &#x2265; 0; therefore, we set <italic>&#x3bb;</italic>
<sub>0</sub> as 20 correspondingly. As for the setting of the MCMC algorithm, we implemented BOOST-HMI in a gene-wise fashion. For each gene, we initialized model parameters by randomly drawing from their prior distributions. The MCMC algorithm is iterated <italic>U</italic> &#x3d; 10, 000 times after 10,000-iteration burn-in. The algorithm was implemented in <monospace>R</monospace> and <monospace>Rcpp</monospace>. As mentioned in <xref ref-type="sec" rid="s3-2">Section 3.2</xref>, BOOST-HMI identifies SVGs based on Bayes Factors (BFs). In our study, we select a BF threshold of 10, which indicates strong evidence in favor of the <inline-formula id="inf30">
<mml:math id="m41">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<xref ref-type="bibr" rid="B16">Kass and Raftery, 1995</xref>).</p>
<p>We implemented the other five competing methods with their default settings. BOOST-GP selects SVGs using Bayes factors. SpatialDE, BinSpect, SPARK, and SPARK-X, use <italic>p</italic>-values to select SVGs. To control type-I error rate, the Benjamini&#x2013;Hochberg (BH) (<xref ref-type="bibr" rid="B1">Benjamini and Hochberg, 1995</xref>) procedure was used to adjust <italic>p</italic>-values from SpatialDE and BinSpect. We specifically avoided adjusting <italic>p</italic>-values from SPARK and SPARK-X since its raw <italic>p</italic>-values are calibrated by the Cauchy combination rule (<xref ref-type="bibr" rid="B22">Liu et al., 2019</xref>; <xref ref-type="bibr" rid="B30">Sun et al., 2020</xref>). For <italic>p</italic>-values, the threshold was set to 0.05.</p>
<p>Our task is to evaluate the ability of each method to correctly identify underlying SVGs from the simulated dataset, which can be defined as a binary classification problem; therefore, to evaluate the performance of the five methods, we employed two performance metrics for binary classification problems: First, we used the area under the curve (AUC) (<xref ref-type="bibr" rid="B2">Bradley, 1997</xref>) of the receiver operating characteristic (ROC) (<xref ref-type="bibr" rid="B9">Fukunaga, 2013</xref>). The ROC is a plot of the true positive rate against the false positive rate for different classification thresholds. The AUC is a single value ranging from 0 to 1, with a higher value indicating better classification performance.</p>
<p>
<xref ref-type="fig" rid="F2">Figure 2</xref> displays a boxplot of AUCs calculated by the aforementioned seven methods over 30 replicates across nine scenarios. It clearly suggests that BOOST-HMI achieves superior performance compared to the other methods, especially when there was high sparsity. BinSpect-kmeans and BinSpect-rank showed competitive performance when there was no zero-inflation, i.e., when the sparsity level was between 0% and 10%, regardless of the different group ratios; however, these methods showed decreasing AUCs as sparsity level increased. SPARK and SpatialDE suffered from a limited ability to detect SVGs from low expression variability or high zero-inflation scenarios. Between SPARK and SpatialDE, the simulation study showed that SPARK has better SVG detection power over SpatialDE, which is consistent with the conclusion drawn by <xref ref-type="bibr" rid="B30">Sun et al. (2020)</xref> and <xref ref-type="bibr" rid="B14">Jiang et al. (2022)</xref>. In summary, BOOST-HMI achieved satisfactory performance and is robust against different group expression level ratios and sparsity levels.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Simulation study: The boxplots of AUCs achieved by BOOST-HMI, SPARK, SPARK-X, SpatialDE, BinSpect-kmeans, BinSpect-rank, and BOOST-GP across nine scenarios.</p>
</caption>
<graphic xlink:href="fgene-15-1356709-g002.tif"/>
</fig>
<p>The second metric we used is the Matthews correlation coefficient (MCC). MCC is a summary value that examines the binary classification performance under a specific cutoff, i.e., BF or <italic>p</italic>-value thresholds for our study. It has values ranging from &#x2212;1 to 1, incorporating true positives, true negatives, false positives and false negatives. A larger MCC value, such as 1, corresponds to an excellent classifier, while a negative MCC indicates a strong disagreement between prediction and observation. <xref ref-type="table" rid="T1">Table 1</xref> summarizes the average MCCs obtained in the simulation study across the five methods. The result is consistent with our conclusion from our analysis of the AUC: BOOST-HMI achieved the highest power under high zero-inflation, while all other six methods suffered from the high number of false zeros. In the scenario without zero inflation, BinSpect-kmeans stood out, and BinSpect-rank, SPARK, and BOOST-HMI showed competitive performance in identifying SVGs.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Simulation study: The averaged MCCs, with standard deviations in parentheses, achieved by BOOST-HMI, BinSpect-kmeans, BinSpect-rank, SPARK, and SpatialDE across nine scenarios.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center"/>
<th colspan="3" align="center">0%&#x2013;10% zeros</th>
</tr>
<tr>
<th align="left"/>
<th align="center">
<italic>R</italic> &#x3d; 2</th>
<th align="center">
<italic>R</italic> &#x3d; 5</th>
<th align="center">
<italic>R</italic> &#x3d; 10</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">BinSpect-kmeans</td>
<td align="center">0.182 (0.159)</td>
<td align="center">0.653 (0.118)</td>
<td align="center">0.714 (0.085)</td>
</tr>
<tr>
<td align="center">BinSpect-rank</td>
<td align="center">0.199 (0.193)</td>
<td align="center">0.476 (0.123)</td>
<td align="center">0.488 (0.139)</td>
</tr>
<tr>
<td align="center">SPARK</td>
<td align="center">0.255 (0.162)</td>
<td align="center">0.502 (0.164)</td>
<td align="center">0.524 (0.153)</td>
</tr>
<tr>
<td align="center">SPARK-X</td>
<td align="center">0.324 (0.153)</td>
<td align="center">0.279 (0.152)</td>
<td align="center">0.324 (0.153)</td>
</tr>
<tr>
<td align="center">SpatialDE</td>
<td align="center">0.009 (0.111)</td>
<td align="center">&#x2212;0.009 (0.063)</td>
<td align="center">0.027 (0.109)</td>
</tr>
<tr>
<td align="center">BOOST-GP</td>
<td align="center">0.012 (0.060)</td>
<td align="center">0.012 (0.060)</td>
<td align="center">0.000 (0.000)</td>
</tr>
<tr>
<td align="center">BOOST-HMI</td>
<td align="center">0.231 (0.141)</td>
<td align="center">0.449 (0.084)</td>
<td align="center">0.510 (0.063)</td>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th colspan="4" align="center">10%&#x2013;20% zeros</th>
</tr>
<tr>
<th align="left"/>
<th align="center">
<italic>R</italic> &#x3d; 2</th>
<th align="center">
<italic>R</italic> &#x3d; 5</th>
<th align="center">
<italic>R</italic> &#x3d; 10</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">BinSpect-kmeans</td>
<td align="center">0.007 (0.092)</td>
<td align="center">0.121 (0.134)</td>
<td align="center">0.601 (0.142)</td>
</tr>
<tr>
<td align="center">BinSpect-rank</td>
<td align="center">0.173 (0.166)</td>
<td align="center">0.482 (0.120)</td>
<td align="center">0.537 (0.153)</td>
</tr>
<tr>
<td align="center">SPARK</td>
<td align="center">0.113 (0.146)</td>
<td align="center">0.271 (0.153)</td>
<td align="center">0.373 (0.123)</td>
</tr>
<tr>
<td align="center">SPARK-X</td>
<td align="center">0.284 (0.144)</td>
<td align="center">0.224 (0.137)</td>
<td align="center">0.284 (0.144)</td>
</tr>
<tr>
<td align="center">SpatialDE</td>
<td align="center">&#x2212;0.039 (0.043)</td>
<td align="center">0.005 (0.093)</td>
<td align="center">0.031 (0.120)</td>
</tr>
<tr>
<td align="center">BOOST-GP</td>
<td align="center">0.000 (0.000)</td>
<td align="center">0.000 (0.000)</td>
<td align="center">0.000 (0.000)</td>
</tr>
<tr>
<td align="center">BOOST-HMI</td>
<td align="center">0.160 (0.176)</td>
<td align="center">0.433 (0.091)</td>
<td align="center">0.473 (0.065)</td>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th colspan="4" align="center">30%&#x2013;40% zeros</th>
</tr>
<tr>
<th align="left"/>
<th align="center">
<italic>R</italic> &#x3d; 2</th>
<th align="center">
<italic>R</italic> &#x3d; 5</th>
<th align="center">
<italic>R</italic> &#x3d; 10</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">BinSpect-kmeans</td>
<td align="center">0.002 (0.086)</td>
<td align="center">0.005 (0.083)</td>
<td align="center">&#x2212;0.006 (0.105)</td>
</tr>
<tr>
<td align="center">BinSpect-rank</td>
<td align="center">0.060 (0.139)</td>
<td align="center">0.243 (0.157)</td>
<td align="center">0.226 (0.142)</td>
</tr>
<tr>
<td align="center">SPARK</td>
<td align="center">0.014 (0.103)</td>
<td align="center">0.133 (0.150)</td>
<td align="center">0.144 (0.155)</td>
</tr>
<tr>
<td align="center">SPARK-X</td>
<td align="center">0.114 (0.134)</td>
<td align="center">0.182 (0.136)</td>
<td align="center">0.186 (0.131)</td>
</tr>
<tr>
<td align="center">SpatialDE</td>
<td align="center">&#x2212;0.016 (0.071)</td>
<td align="center">&#x2212;0.001 (0.097)</td>
<td align="center">0.016 (0.110)</td>
</tr>
<tr>
<td align="center">BOOST-GP</td>
<td align="center">&#x2212;0.001 (0.007)</td>
<td align="center">0.012 (0.060)</td>
<td align="center">0.000 (0.000)</td>
</tr>
<tr>
<td align="center">BOOST-HMI</td>
<td align="center">0.098 (0.158)</td>
<td align="center">0.406 (0.088)</td>
<td align="center">0.427 (0.088)</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We further expanded our evaluation of BOOST-HMI&#x2019;s effectiveness through comprehensive analyses using simulated data. These investigations, detailed in the <xref ref-type="sec" rid="s11">Supplementary Material</xref>, encompass a scalability test (Section S2), a sensitivity analysis (Section S3), an examination of performance under model mis-specification (Section S4), and an assessment of statistical power and false discovery control (Section S5).</p>
</sec>
<sec id="s4-2">
<title>4.2 Application to the mouse hippocampus seqFISH data</title>
<p>The mouse hippocampus dataset is a public seqFISH dataset with 21 field replicates collected on a third coronal section (<xref ref-type="bibr" rid="B27">Shah et al., 2016</xref>). Following SpatialDE and SPARK protocols, we analyzed the field 43 dataset, which contains <italic>p</italic> &#x3d; 249 genes measured on 257 cells with spatial location preserved. Out of 249 genes, 214 were selected from a list of transcription factors and signaling pathway components, and the remaining 35 were selected from cell identity markers. Quality control was performed following SPARK protocol (<xref ref-type="bibr" rid="B30">Sun et al., 2020</xref>) and the original study. We filtered out cells with <italic>x</italic>- or <italic>y</italic>-axis values exceeding 203&#x2013;822 pixels to tackle border artifacts. After filtering, <italic>n</italic> &#x3d; 131 cells were included for the following analysis. We excluded SpatialDE due to its unsatisfactory performance in SVG detection in the simulation study. Prior settings, MCMC algorithm implementation, and significance criteria were identical to what was described in <xref ref-type="sec" rid="s4-1">Section 4.1</xref>. Five independent MCMC chains were sampled and diagnosed for algorithm convergence. Algorithm convergence was checked based on the BF vector. BFs from five chains were highly correlated with Pearson correlation coefficients ranging from 0.90 to 0.99. We further checked algorithm convergence using the potential scale reduction factor (PSRF) (<xref ref-type="bibr" rid="B11">Gelman and Rubin, 1992</xref>; <xref ref-type="bibr" rid="B3">Brooks and Gelman, 1998</xref>) on posterior samples of <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub>&#x2019;s and <italic>&#x3c9;</italic>
<sub>0<italic>j</italic>
</sub>&#x2019;s. If multiple chains converge to the target posterior distribution, the PSRF will be close to one. In our analysis, the PSRFs were below 1.2, suggesting convergence of the MCMC algorithms. Posterior samples obtained from the quintuplet of MCMC chains were amalgamated for subsequent analysis. Concerning efficiency, we report the execution times of our method compared to others in <xref ref-type="sec" rid="s11">Supplementary Table S2</xref> of the <xref ref-type="sec" rid="s11">Supplementary Material</xref>.</p>
<p>As detailed in <xref ref-type="sec" rid="s2-1">Section 2.1</xref>, the variance of a NB distribution is given by <italic>&#x3bd;</italic> &#x2b; <italic>&#x3bd;</italic>
<sup>2</sup>/<italic>&#x3d5;</italic>, with <italic>&#x3bd;</italic> and <italic>&#x3d5;</italic> representing the mean and dispersion parameters, respectively. A low <italic>&#x3d5;</italic> value suggests significant over-dispersion, whereas <italic>&#x3d5;</italic> &#x2192; <italic>&#x221e;</italic> implies that the mean and variance are equal. This relationship allows us to deduce over-dispersion from the posterior distribution of <italic>&#x3d5;</italic>
<sub>
<italic>j</italic>
</sub>. Furthermore, we introduced a latent binary variable <italic>&#x3b7;</italic>
<sub>
<italic>ij</italic>
</sub> to distinguish whether a zero count <italic>y</italic>
<sub>
<italic>ij</italic>
</sub> originates from the zero or NB component. The posterior probability of <italic>&#x3b7;</italic>
<sub>
<italic>ij</italic>
</sub> enables us to identify zero-inflation. In our analysis, we found that the average posterior mean for <italic>&#x3d5;</italic>
<sub>
<italic>j</italic>
</sub> was 14.237, with the <italic>&#x3d5;</italic>
<sub>
<italic>j</italic>
</sub>&#x2019;s for 95% of the genes ranging from 1.577 to 89.164. This evidence strongly supports the existence of over-dispersion. Moreover, the average posterior mean of <italic>&#x3b7;</italic>
<sub>
<italic>ij</italic>
</sub> for zero counts was 0.9425. This indicates that approximately 94.25% of the zeros are attributable to the zero component, thereby underscoring the presence of zero-inflation. Among the <italic>p</italic> &#x3d; 249 genes analyzed in the mouse hippocampus dataset, SPARK identified 17 SVGs, while BOOST-HMI detected 22 SVGs. Notably, BOOST-HMI successfully detected 16 cell identity markers previously presented by <xref ref-type="bibr" rid="B27">Shah et al. (2016)</xref>, whereas SPARK identified 14 markers. In comparison, BinSpect-kmeans and BinSpect-rank were more aggressive, respectively identifying 38 and 44 SVGs. A Venn diagram in <xref ref-type="fig" rid="F3">Figure 3D</xref> showcases the overlap of SVGs identified by the four methods. Among them, BOOST-HMI and SPARK shared 12 SVGs in common. Only one SVG detected by BinSpect-kmeans overlapped with that from BOOST-HMI, and none overlapped with that from SPARK. None of the SVGs detected by BinSpect-rank were detected by either SPARK or BOOST-HMI. We further visualized the spatial pattern for each SVG using the marginal PPI of the posterior samples of the hidden gene expression indicator <bold>
<italic>&#x3be;</italic>
</bold>
<sub>&#x22c5;<italic>j</italic>
</sub>. <xref ref-type="sec" rid="s11">Supplementary Figure S12</xref> visualizes the posterior distributions of <italic>&#x3b8;</italic>
<sub>
<italic>j</italic>
</sub> of those identified SVGs by BOOST-HMI or SPARK. <xref ref-type="sec" rid="s11">Supplementary Figure S13</xref> displays the relative gene expression levels for each SVG. <xref ref-type="fig" rid="F3">Figure 3A</xref> displays the spatial patterns of SVGs detected by SPARK and BOOST-HMI, while <xref ref-type="sec" rid="s11">Supplementary Figures S6, S7</xref> in the <xref ref-type="sec" rid="s11">Supplementary Material</xref> depict the spatial patterns for SVGs detected by BinSpect-kmeans and BinSpect-rank, respectively. Among the 12 common SVGs identified by SPARK and BOOST-HMI, strong spatial repulsion patterns between high- and low expression genes are evident across 131 cells. Notably, a larger Bayes factor (shown in parentheses) indicates a stronger spatial pattern; genes <italic>Foxo1</italic>, <italic>sst</italic>, <italic>mog</italic>, <italic>myl14</italic>, and <italic>ndnf</italic> exhibited clear spatial patterns between polarized estimated hidden indicators. SPARK detected five unique SVGs, as <xref ref-type="fig" rid="F3">Figure 3B</xref> shows, for which the PPIs of the estimated hidden expression indicators are close to 0.5. BOOST-HMI identified ten unique SVGs, as displayed in <xref ref-type="fig" rid="F3">Figure 3C</xref>. Among these, seven genes, such as gene <italic>Zfp423</italic>, <italic>slc5a7</italic> and <italic>palvb</italic>, demonstrated either high or low expression in the majority of cells. The remaining three unique SVGs, <italic>Zic3</italic>, <italic>Mnat1</italic>, and <italic>slc17a7</italic> delineated three distinct patterns, which may be related to novel biological mechanisms. <xref ref-type="bibr" rid="B21">Lim et al. (2007)</xref> previously highlighted the crucial role of <italic>Zic3</italic> in preserving pluripotency in embryonic stem cells, while <xref ref-type="bibr" rid="B12">Herman and El-Hodiri (2002)</xref> demonstrated that mutations in <italic>Zic3</italic> are linked to developmental abnormalities such as laterality defects, congenital heart disease, and neural tube defects.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Mouse hippocampus seqFISH data: <bold>(A)</bold> Spatial distribution of hidden gene expressions <bold>
<italic>&#x3be;</italic>
</bold>
<sup>MAP</sup> of the 12 SVGs detected by both SPARK and BOOST-HMI. <bold>(B)</bold> Spatial distribution of hidden gene expressions <bold>
<italic>&#x3be;</italic>
</bold>
<sup>MAP</sup> of the five SVGs detected by SPARK only. <bold>(C)</bold> Spatial distribution of hidden gene expressions <bold>
<italic>&#x3be;</italic>
</bold>
<sup>MAP</sup> of the ten SVGs detected by BOOST-HMI only. <bold>(D)</bold> Venn diagram of the overlap across SVGs identified by all four methods. <bold>(E)</bold> Enriched GO terms associated with SVGs detected by BOOST-HMI. <bold>(F)</bold> Boxplot of Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic> values for SVGs across the four methods.</p>
</caption>
<graphic xlink:href="fgene-15-1356709-g003.tif"/>
</fig>
<p>In addition to visualizing spatial patterns, we quantified the degree of spatial attraction or repulsion pattern in gene expression across different cells using the spatial autocorrelation tests Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic>. Moran&#x2019;s <italic>I</italic> quantifies the spatial clustering or dispersion by standardizing the spatial autocovariance, yielding a correlation coefficient ranging from &#x2212;1 to 1. A positive Moran&#x2019;s <italic>I</italic> value corresponds to a spatial clustering pattern where the variable tends to have similar values to its neighboring cells. A Moran&#x2019;s <italic>I</italic> value close to 0 suggests a random spatial distribution of the data, while a negative value corresponds to a dispersion pattern, where the variable value tends to be dissimilar from its neighbors. To assess the spatial patterns exhibited by the SVGs, Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic> values were calculated for each SVG identified by at least one of the four methods. Moran&#x2019;s <italic>I</italic> for each gene <italic>j</italic> was calculated by the following formula:<disp-formula id="equ3">
<mml:math id="m42">
<mml:msup>
<mml:mrow>
<mml:mtext>Moran</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mtext>s</mml:mtext>
<mml:mtext mathvariant="italic">I</mml:mtext>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
</disp-formula>where <inline-formula id="inf31">
<mml:math id="m43">
<mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>A</mml:mi>
<mml:mo>/</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> is the connectivity spatial weight between cell <italic>i</italic> and <italic>h</italic>. Spatial weight is a decay factor of the distance between 2&#xa0;cells; in our study, we set <italic>A</italic> &#x3d; 1, m &#x3d; 1. <italic>y</italic>
<sub>
<italic>ij</italic>
</sub> and <italic>y</italic>
<sub>
<italic>hj</italic>
</sub> are the gene expression count of cell <italic>i</italic> and cell&#xa0;<italic>h</italic>, and <inline-formula id="inf32">
<mml:math id="m44">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is the mean expression of gene <italic>j</italic>. Similar to Moran&#x2019;s <italic>I</italic>, Geary&#x2019;s <italic>C</italic> measures the spatial similarity or dissimilarity between neighboring cells, and is calculated with the following formula:<disp-formula id="equ4">
<mml:math id="m45">
<mml:msup>
<mml:mrow>
<mml:mtext>Geary</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mtext>s</mml:mtext>
<mml:mtext mathvariant="italic">C</mml:mtext>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>Geary&#x2019;s <italic>C</italic> ranges from 0 to 2, where a value close to 0 indicates a spatial attraction pattern, one corresponds to complete randomness, and two implies a spatial repulsion pattern. To ensure uniform interpretation of Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic>, following <xref ref-type="bibr" rid="B13">Hu et al. (2021)</xref>, we scaled Geary&#x2019;s <italic>C</italic> to the range [&#x2212;1, 1]. The distributions of these values are depicted in <xref ref-type="fig" rid="F3">Figure 3F</xref>. Remarkably, over 75% of Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic> values were positive, compellingly indicating the presence of spatial patterns associated with the SVGs across the four methods implemented. Moreover, SVGs from BOOST-HMI and SPARK exhibited the highest Moran&#x2019;s <italic>I</italic> values, while SVGs from SPARK demonstrated the highest Geary&#x2019;s <italic>C</italic> values.</p>
<p>To explore the relevant biological functions of identified SVGs, we conducted gene ontology (GO) enrichment analysis using the <monospace>R</monospace> package <monospace>clusterProfiler</monospace> (<xref ref-type="bibr" rid="B33">Yu et al., 2012</xref>). As mentioned, 214 genes were selected from a list of transcription factors and signaling pathway components. As a result, genes in the background set enriched 4,622 GO terms and 10,285 relations. <xref ref-type="fig" rid="F3">Figure 3E</xref> depicts the biological processes enriched by SVGs that were detected by BOOST-HMI, such as a smoothened signaling pathway (GO: 0007224), regulation of neural precursor cell proliferation (GO: 20000177), and cellular response to stress (GO: 0033554). Moreover, gene <italic>Foxo1</italic> enriched three significant GO terms, which may inspire further research work on <italic>Foxo1</italic> regulation in the mouse hippocampus. <italic>Mnat1</italic>, one of the SVGs, enriched cellular response to stress. Several studies have found that <italic>Mnat1</italic> is associated with various disease progression and regulation. <xref ref-type="bibr" rid="B26">Qiu et al. (2020)</xref> found that <italic>Mnat1</italic>, which was detected only by BOOST-HMI, contributes to the progression of osteosarcoma, and <xref ref-type="bibr" rid="B36">Zou et al. (2020)</xref> reported that decreased <italic>Mnat1</italic> expression induces degradation of an important regulator of necroptosis in endothelial cells from samples with Alzheimer&#x2019;s disease.</p>
</sec>
<sec id="s4-3">
<title>4.3 Application to the mouse visual cortex STARmap data</title>
<p>The second real dataset we analyzed is a STARmap dataset, which profiles the mouse visual cortex from the hippocampus to the corpus callosum, spanning six neocortical layers at single-cell resolution (<xref ref-type="bibr" rid="B32">Wang et al., 2018</xref>). The STARmap dataset measures the expression of 1,020 genes in 1,549 cells, including non-neuron cells such as endothelial, oligodendrocytes, astrocytes, and neuron cells, i.e., parvalbumin-expressing, vasoactive intestinal peptide-expressing, and somatostatin-expressing interneurons. <xref ref-type="fig" rid="F4">Figure 4A</xref> depicts the layer structure and distribution of cell types within the tissue section as presented in the original study (<xref ref-type="bibr" rid="B32">Wang et al., 2018</xref>). Moreover, the STARmap dataset is highly sparse with nearly 79% zero counts. To address potential sources of variability, we performed three quality control steps: 1) cells with fewer than 100 read counts detected were filtered out; 2) genes with more than 90% zero counts were filtered out; 3) genes whose maximum count is smaller than ten were removed. After quality control, the gene expression profile measured the expression of <italic>p</italic> &#x3d; 107 genes in <italic>n</italic> &#x3d; 1, 523 cells.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Mouse visual cortex STARmap data: <bold>(A)</bold> Voronoi diagrams of layer structures and cell type distribution. <bold>(B)</bold> Spatial distribution of the average hidden gene expressions <bold>
<italic>&#x3be;</italic>
</bold>
<sup>MAP</sup> of the six SVG patterns detected by SPARK. <bold>(C)</bold> Spatial distribution of the average hidden gene expressions <bold>
<italic>&#x3be;</italic>
</bold>
<sup>MAP</sup> of the five SVG patterns detected by BOOST-HMI. <bold>(D)</bold> Venn diagram of the overlap across SVGs identified by all four methods. <bold>(E)</bold> Enriched GO terms associated with SVGs detected by BOOST-HMI. <bold>(F)</bold> Boxplot of Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic> values for SVGs across the four methods.</p>
</caption>
<graphic xlink:href="fgene-15-1356709-g004.tif"/>
</fig>
<p>SPARK, BinSpect-kmeans, and BinSpect-rank were implemented with the same parameter settings as the simulation study. As for BOOST-HMI, we set the distance threshold <italic>c</italic>
<sub>
<italic>d</italic>
</sub> &#x3d; 0.05 and the decay parameter <italic>&#x3bb;</italic>
<sub>0</sub> &#x3d; 60 to satisfy the dependency exp (&#x2212;<italic>&#x3bb;</italic>
<sub>0</sub>
<italic>c</italic>
<sub>
<italic>d</italic>
</sub>) &#x3d; 0.05. We ran four independent MCMC chains with the same prior specifications and parameter settings as the simulation study, and made posterior inferences after integrating the posterior samples across the four chains. Concerning efficiency, we report the execution times of our method compared to others in <xref ref-type="sec" rid="s11">Supplementary Table S2</xref> of the <xref ref-type="sec" rid="s11">Supplementary Material</xref>.</p>
<p>As <xref ref-type="fig" rid="F4">Figure 4D</xref> shows, SPARK detected 99 SVGs, while BOOST-HMI detected 64 SVGs. Both BinSpect-kmeans and BinSpect-rank detected 101 SVGs. SPARK, BinSpect-kmeans, and BinSpect-rank detected 94 SVGs in common. Compared to other methods, BOOST-HMI was conservative, detecting 59 common SVGs with the other three methods. To further investigate the spatial patterns of detected SVGs, we visualized the estimated hidden gene expression indicator for each SVG, annotated with the corresponding Bayes factor, in <xref ref-type="sec" rid="s11">Supplementary Figures S8&#x2013;S11</xref> of the <xref ref-type="sec" rid="s11">Supplementary Material</xref>. <xref ref-type="sec" rid="s11">Supplementary Figure S14</xref> displays the average relative gene expression levels across SPARK and BOOST-HMI-identified SVGs in each cluster. Analysis of the detected genes reveals a noteworthy observation: all four methods identify SVGs associated with layer structures, such as <italic>Apod</italic>, <italic>Apoe</italic>, and <italic>Egr1</italic>, which exhibit high expression in layer L6 and HPC. In contrast, SVGs exclusively detected by the other three methods either lack a clear layer structure or are estimated to be lowly expressed across the entire tissue section, which suggests that BOOST-HMI can detect SVGs with clear spatial patterns and address potential falsification. This conclusion is strongly supported by corroborating evidence from both calculations of Moran&#x2019;s <italic>I</italic> and Geary&#x2019;s <italic>C</italic>. <xref ref-type="fig" rid="F4">Figure 4F</xref> demonstrates that SVGs detected by BOOST-HMI show stronger spatial autocorrelation than those identified by the other three methods. To delve deeper into the identified spatial patterns, we performed agglomerative hierarchical clustering on the SVGs detected by SPARK and BOOST-HMI, as shown in <xref ref-type="fig" rid="F4">Figure 4C</xref>. SVGs detected by SPARK were grouped into six clustered, while those detected by BOOST-HMI formed five clusters. Pattern I, II, III and IV from SPARK and BOOST-HMI demonstrate a similar spatial pattern. Spatial pattern V from BOOST-HMI delineates layers L1, L2/3, and L4, while pattern V from SPARK is associated with layer L6. Pattern VI from SPARK highlights a fraction of cells in layer L1.</p>
<p>To gain insights into biological processes, molecular function, and cellular components, GO enrichment analysis was performed on SVGs identified by BOOST-HMI. <xref ref-type="fig" rid="F4">Figure 4E</xref> shows that SVGs detected by BOOST-HMI are implicated in biological processes such as the cellular developmental process and anatomical structure development. Additionally, these SVGs are associated with cellular components such as protein-containing complexes as well as molecular functions such as DNA binding. Notably, the gene <italic>Bcl6</italic> significantly enriched the cellular developmental process. <xref ref-type="bibr" rid="B25">Nurieva et al. (2009)</xref> found that <italic>Bcl6</italic> functions as a regulator of T follicular helper cell differentiation and B cell-mediated immunity. Our findings have the potential to inspire further novel biological insights.</p>
</sec>
</sec>
<sec sec-type="conclusion" id="s5">
<title>5 Conclusion</title>
<p>This paper introduces BOOST-HMI, a novel method for identifying SVGs in imaging-based SRT datasets. By integrating gene expression data with spatial location, BOOST-HMI employs a ZINB mixture model to effectively handle the excessive zeros typical in SRT data. Additionally, it uses a hidden Bayesian mark interaction model to accurately quantify spatial dependencies in gene expressions.</p>
<p>Our approach is adaptable for analyzing sequencing-based SRT data. We validated BOOST-HMI through a simulation study and analysis of two real datasets, demonstrating its effectiveness across various SRT technologies and tissue sections. The simulation results showed that BOOST-HMI is particularly adept at identifying SVGs in data with high sparsity levels, between 30% and 40%. When analyzing the mouse hippocampus seqFISH data, BOOST-HMI achieved comparable results to SPARK, with the identified SVGs exhibiting stronger spatial patterns as quantified by Moran&#x2032;s<italic>I</italic> and Geary&#x2032;s<italic>C</italic>. Moreover, the SVGs identified were enriched in biologically relevant GO terms, such as smoothened signaling pathways and regulation of neural precursor cell proliferation, offering avenues for further biological investigation.</p>
<p>Further analysis of the mouse visual cortex STARmap dataset revealed that BOOST-HMI can identify SVGs with spatial patterns aligning with the underlying cell structure of the tissue. Additionally, GO enrichment analysis indicated that these SVGs are linked to cellular developmental processes, underscoring the potential for novel biological insights.</p>
<p>While our method assumes homogeneity in spatial patterns across tissue sections, this may not hold true for all cases. Future work will aim to generalize BOOST-HMI to accommodate heterogeneous spatial patterns, enhancing its practicality. Another focus will be on scaling the model to accommodate the growing size of SRT datasets, such as those generated by advanced technologies like Slide-seqV2, which can resolve over 19,600 genes from around 23,000 cells (<xref ref-type="bibr" rid="B29">Stickels et al., 2021</xref>). Enhanced scalability will enable BOOST-HMI to analyze datasets from various technologies like HDST, Slide-seqV2, and others, potentially leading to more groundbreaking biological discoveries.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/<xref ref-type="sec" rid="s11">Supplementary Material</xref>, further inquiries can be directed to the corresponding author.</p>
</sec>
<sec id="s7">
<title>Author contributions</title>
<p>JY: Data curation, Investigation, Methodology, Software, Visualization, Writing&#x2013;original draft, Writing&#x2013;review and editing. XJ: Conceptualization, Data curation, Investigation, Methodology, Writing&#x2013;original draft, Writing&#x2013;review and editing. KJ: Writing&#x2013;review and editing. SS: Supervision, Writing&#x2013;review and editing. QL: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing&#x2013;original draft, Writing&#x2013;review and editing.</p>
</sec>
<sec sec-type="funding-information" id="s8">
<title>Funding</title>
<p>The author(s) declare financial support was received for the research, authorship, and/or publication of this article. This work was supported by the National Science Foundation (2113674, 2210912) and the National Institutes of Health (1R01GM141519). SS was supported in part by Korean NRF grant funded by the Korea government (MSIT) (RS-2023-00243012, RS-2023-00219980), POSTECH Basic Science Research Institute Fund (Korean NRF grant 2021R1A6A1A10042944), and POSCO HOLDINGS grant 2023Q033.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<sec id="s11">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fgene.2024.1356709/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fgene.2024.1356709/full&#x23;supplementary-material</ext-link>
</p>
<supplementary-material xlink:href="DataSheet1.PDF" id="SM1" mimetype="application/PDF" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Benjamini</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Hochberg</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>1995</year>). <article-title>Controlling the false discovery rate: a practical and powerful approach to multiple testing</article-title>. <source>J. R. Stat. Soc. Ser. B Methodol.</source> <volume>57</volume>, <fpage>289</fpage>&#x2013;<lpage>300</lpage>. <pub-id pub-id-type="doi">10.1111/j.2517-6161.1995.tb02031.x</pub-id>
</citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bradley</surname>
<given-names>A. P.</given-names>
</name>
</person-group> (<year>1997</year>). <article-title>The use of the area under the ROC curve in the evaluation of machine learning algorithms</article-title>. <source>Pattern Recognit.</source> <volume>30</volume>, <fpage>1145</fpage>&#x2013;<lpage>1159</lpage>. <pub-id pub-id-type="doi">10.1016/s0031-3203(96)00142-2</pub-id>
</citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Brooks</surname>
<given-names>S. P.</given-names>
</name>
<name>
<surname>Gelman</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>1998</year>). <article-title>General methods for monitoring convergence of iterative simulations</article-title>. <source>J. Comput. Graph. Statistics</source> <volume>7</volume>, <fpage>434</fpage>&#x2013;<lpage>455</lpage>. <pub-id pub-id-type="doi">10.2307/1390675</pub-id>
</citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Clifford</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>1990</year>). <article-title>Markov random fields in statistics</article-title>. <source>Disord. Phys. Syst. A volume honour John M. Hammersley</source>, <fpage>19</fpage>&#x2013;<lpage>32</lpage>.</citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Dries</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Dong</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Eng</surname>
<given-names>C.-H. L.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>K.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>Giotto: a toolbox for integrative analysis and visualization of spatial expression data</article-title>. <source>Genome Biol.</source> <volume>22</volume>, <fpage>78</fpage>&#x2013;<lpage>31</lpage>. <pub-id pub-id-type="doi">10.1186/s13059-021-02286-2</pub-id>
</citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Edsg&#xe4;rd</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Johnsson</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Sandberg</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Identification of spatial expression trends in single-cell gene expression data</article-title>. <source>Nat. Methods</source> <volume>15</volume>, <fpage>339</fpage>&#x2013;<lpage>342</lpage>. <pub-id pub-id-type="doi">10.1038/nmeth.4634</pub-id>
</citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Efremova</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Vento-Tormo</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Teichmann</surname>
<given-names>S. A.</given-names>
</name>
<name>
<surname>Vento-Tormo</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>CellPhoneDB: inferring cell&#x2013;cell communication from combined expression of multi-subunit ligand&#x2013;receptor complexes</article-title>. <source>Nat. Protoc.</source> <volume>15</volume>, <fpage>1484</fpage>&#x2013;<lpage>1506</lpage>. <pub-id pub-id-type="doi">10.1038/s41596-020-0292-x</pub-id>
</citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Eng</surname>
<given-names>C.-H. L.</given-names>
</name>
<name>
<surname>Lawson</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Dries</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Koulena</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Takei</surname>
<given-names>Y.</given-names>
</name>
<etal/>
</person-group> (<year>2019</year>). <article-title>Transcriptome-scale super-resolved imaging in tissues by RNA seqFISH</article-title>. <source>Nature</source> <volume>568</volume>, <fpage>235</fpage>&#x2013;<lpage>239</lpage>. <pub-id pub-id-type="doi">10.1038/s41586-019-1049-y</pub-id>
</citation>
</ref>
<ref id="B9">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Fukunaga</surname>
<given-names>K.</given-names>
</name>
</person-group> (<year>2013</year>). <source>Introduction to statistical pattern recognition</source>. <publisher-name>Elsevier</publisher-name>.</citation>
</ref>
<ref id="B10">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Gelman</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2006</year>). <source>Prior distributions for variance parameters in hierarchical models</source>. <comment>(comment on article by browne and draper)</comment>.</citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gelman</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Rubin</surname>
<given-names>D. B.</given-names>
</name>
</person-group> (<year>1992</year>). <article-title>Inference from iterative simulation using multiple sequences</article-title>. <source>Stat. Sci.</source> <volume>7</volume>, <fpage>457</fpage>&#x2013;<lpage>472</lpage>. <pub-id pub-id-type="doi">10.1214/ss/1177011136</pub-id>
</citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Herman</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>El-Hodiri</surname>
<given-names>H.</given-names>
</name>
</person-group> (<year>2002</year>). <article-title>The role of ZIC3 in vertebrate development</article-title>. <source>Cytogenet. genome Res.</source> <volume>99</volume>, <fpage>229</fpage>&#x2013;<lpage>235</lpage>. <pub-id pub-id-type="doi">10.1159/000071598</pub-id>
</citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Coleman</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Schroeder</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Ma</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Irwin</surname>
<given-names>D. J.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>SpaGCN: integrating gene expression, spatial location and histology to identify spatial domains and spatially variable genes by graph convolutional network</article-title>. <source>Nat. Methods</source> <volume>18</volume>, <fpage>1342</fpage>&#x2013;<lpage>1351</lpage>. <pub-id pub-id-type="doi">10.1038/s41592-021-01255-8</pub-id>
</citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jiang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Xiao</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Q.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>A Bayesian modified ising model for identifying spatially variable genes from spatial transcriptomics data</article-title>. <source>Statistics Med.</source> <volume>41</volume>, <fpage>4647</fpage>&#x2013;<lpage>4665</lpage>. <pub-id pub-id-type="doi">10.1002/sim.9530</pub-id>
</citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jin</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Guerrero-Juarez</surname>
<given-names>C. F.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Chang</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Ramos</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Kuan</surname>
<given-names>C.-H.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>Inference and analysis of cell-cell communication using CellChat</article-title>. <source>Nat. Commun.</source> <volume>12</volume>, <fpage>1088</fpage>&#x2013;<lpage>1120</lpage>. <pub-id pub-id-type="doi">10.1038/s41467-021-21246-9</pub-id>
</citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kass</surname>
<given-names>R. E.</given-names>
</name>
<name>
<surname>Raftery</surname>
<given-names>A. E.</given-names>
</name>
</person-group> (<year>1995</year>). <article-title>Bayes factors</article-title>. <source>J. Am. Stat. Assoc.</source> <volume>90</volume>, <fpage>773</fpage>&#x2013;<lpage>795</lpage>. <pub-id pub-id-type="doi">10.2307/2291091</pub-id>
</citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Liang</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Xiao</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>A Bayesian mark interaction model for analysis of tumor pathology images</article-title>. <source>Ann. Appl. Statistics</source> <volume>13</volume>, <fpage>1708</fpage>&#x2013;<lpage>1732</lpage>. <pub-id pub-id-type="doi">10.1214/19-AOAS1254</pub-id>
</citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Xie</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Xiao</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Bayesian modeling of spatial molecular profiling data via Gaussian process</article-title>. <source>Bioinformatics</source> <volume>37</volume>, <fpage>4129</fpage>&#x2013;<lpage>4136</lpage>. <pub-id pub-id-type="doi">10.1093/bioinformatics/btab455</pub-id>
</citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liang</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>A double Metropolis&#x2013;Hastings sampler for spatial models with intractable normalizing constants</article-title>. <source>J. Stat. Comput. Simul.</source> <volume>80</volume>, <fpage>1007</fpage>&#x2013;<lpage>1022</lpage>. <pub-id pub-id-type="doi">10.1080/00949650902882162</pub-id>
</citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liao</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Lu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Shao</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Fan</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Uncovering an organ&#x2019;s molecular architecture at single-cell resolution by spatially resolved transcriptomics</article-title>. <source>Trends Biotechnol.</source> <volume>39</volume>, <fpage>43</fpage>&#x2013;<lpage>58</lpage>. <pub-id pub-id-type="doi">10.1016/j.tibtech.2020.05.006</pub-id>
</citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lim</surname>
<given-names>L. S.</given-names>
</name>
<name>
<surname>Loh</surname>
<given-names>Y.-H.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>Y.</given-names>
</name>
<etal/>
</person-group> (<year>2007</year>). <article-title>Zic3 is required for maintenance of pluripotency in embryonic stem cells</article-title>. <source>Mol. Biol. Cell</source> <volume>18</volume>, <fpage>1348</fpage>&#x2013;<lpage>1358</lpage>. <pub-id pub-id-type="doi">10.1091/mbc.e06-07-0624</pub-id>
</citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Morrison</surname>
<given-names>A. C.</given-names>
</name>
<name>
<surname>Boerwinkle</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Lin</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>ACAT: a fast and powerful p value combination method for rare-variant analysis in sequencing studies</article-title>. <source>Am. J. Hum. Genet.</source> <volume>104</volume>, <fpage>410</fpage>&#x2013;<lpage>421</lpage>. <pub-id pub-id-type="doi">10.1016/j.ajhg.2019.01.002</pub-id>
</citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Moffitt</surname>
<given-names>J. R.</given-names>
</name>
<name>
<surname>Bambah-Mukku</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Eichhorn</surname>
<given-names>S. W.</given-names>
</name>
<name>
<surname>Vaughn</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Shekhar</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Perez</surname>
<given-names>J. D.</given-names>
</name>
<etal/>
</person-group> (<year>2018</year>). <article-title>Molecular, spatial, and functional single-cell profiling of the hypothalamic preoptic region</article-title>. <source>Science</source> <volume>362</volume>, <fpage>eaau5324</fpage>. <pub-id pub-id-type="doi">10.1126/science.aau5324</pub-id>
</citation>
</ref>
<ref id="B24">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>M&#xf8;ller</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Pettitt</surname>
<given-names>A. N.</given-names>
</name>
<name>
<surname>Reeves</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Berthelsen</surname>
<given-names>K. K.</given-names>
</name>
</person-group> (<year>2006</year>). <article-title>An efficient Markov chain Monte Carlo method for distributions with intractable normalising constants</article-title>. <source>Biometrika</source> <volume>93</volume>, <fpage>451</fpage>&#x2013;<lpage>458</lpage>. <pub-id pub-id-type="doi">10.1093/biomet/93.2.451</pub-id>
</citation>
</ref>
<ref id="B25">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nurieva</surname>
<given-names>R. I.</given-names>
</name>
<name>
<surname>Chung</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Martinez</surname>
<given-names>G. J.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>X. O.</given-names>
</name>
<name>
<surname>Tanaka</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Matskevitch</surname>
<given-names>T. D.</given-names>
</name>
<etal/>
</person-group> (<year>2009</year>). <article-title>Bcl6 mediates the development of T follicular helper cells</article-title>. <source>Science</source> <volume>325</volume>, <fpage>1001</fpage>&#x2013;<lpage>1005</lpage>. <pub-id pub-id-type="doi">10.1126/science.1176676</pub-id>
</citation>
</ref>
<ref id="B26">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Qiu</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Su</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Shen</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Qi</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Wu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>K.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <article-title>MNAT1 promotes proliferation and the chemo-resistance of osteosarcoma cell to cisplatin through regulating PI3K/Akt/mTOR pathway</article-title>. <source>BMC Cancer</source> <volume>20</volume>, <fpage>1187</fpage>&#x2013;<lpage>1212</lpage>. <pub-id pub-id-type="doi">10.1186/s12885-020-07687-3</pub-id>
</citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shah</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Lubeck</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Cai</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>
<italic>In situ</italic> transcription profiling of single cells reveals spatial organization of cells in the mouse hippocampus</article-title>. <source>Neuron</source> <volume>92</volume>, <fpage>342</fpage>&#x2013;<lpage>357</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2016.10.001</pub-id>
</citation>
</ref>
<ref id="B28">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>St&#xe5;hl</surname>
<given-names>P. L.</given-names>
</name>
<name>
<surname>Salm&#xe9;n</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Vickovic</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Lundmark</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Navarro</surname>
<given-names>J. F.</given-names>
</name>
<name>
<surname>Magnusson</surname>
<given-names>J.</given-names>
</name>
<etal/>
</person-group> (<year>2016</year>). <article-title>Visualization and analysis of gene expression in tissue sections by spatial transcriptomics</article-title>. <source>Science</source> <volume>353</volume>, <fpage>78</fpage>&#x2013;<lpage>82</lpage>. <pub-id pub-id-type="doi">10.1126/science.aaf2403</pub-id>
</citation>
</ref>
<ref id="B29">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Stickels</surname>
<given-names>R. R.</given-names>
</name>
<name>
<surname>Murray</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Kumar</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Marshall</surname>
<given-names>J. L.</given-names>
</name>
<name>
<surname>Di Bella</surname>
<given-names>D. J.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>Highly sensitive spatial transcriptomics at near-cellular resolution with Slide-seqV2</article-title>. <source>Nat. Biotechnol.</source> <volume>39</volume>, <fpage>313</fpage>&#x2013;<lpage>319</lpage>. <pub-id pub-id-type="doi">10.1038/s41587-020-0739-1</pub-id>
</citation>
</ref>
<ref id="B30">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sun</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Statistical analysis of spatial expression patterns for spatially resolved transcriptomic studies</article-title>. <source>Nat. Methods</source> <volume>17</volume>, <fpage>193</fpage>&#x2013;<lpage>200</lpage>. <pub-id pub-id-type="doi">10.1038/s41592-019-0701-7</pub-id>
</citation>
</ref>
<ref id="B31">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Svensson</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Teichmann</surname>
<given-names>S. A.</given-names>
</name>
<name>
<surname>Stegle</surname>
<given-names>O.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>SpatialDE: identification of spatially variable genes</article-title>. <source>Nat. Methods</source> <volume>15</volume>, <fpage>343</fpage>&#x2013;<lpage>346</lpage>. <pub-id pub-id-type="doi">10.1038/nmeth.4636</pub-id>
</citation>
</ref>
<ref id="B32">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Allen</surname>
<given-names>W. E.</given-names>
</name>
<name>
<surname>Wright</surname>
<given-names>M. A.</given-names>
</name>
<name>
<surname>Sylwestrak</surname>
<given-names>E. L.</given-names>
</name>
<name>
<surname>Samusik</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Vesuna</surname>
<given-names>S.</given-names>
</name>
<etal/>
</person-group> (<year>2018</year>). <article-title>Three-dimensional intact-tissue sequencing of single-cell transcriptional states</article-title>. <source>Science</source> <volume>361</volume>, <fpage>eaat5691</fpage>. <pub-id pub-id-type="doi">10.1126/science.aat5691</pub-id>
</citation>
</ref>
<ref id="B33">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yu</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>L.-G.</given-names>
</name>
<name>
<surname>Han</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>He</surname>
<given-names>Q.-Y.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>clusterProfiler: an R package for comparing biological themes among gene clusters</article-title>. <source>Omics A J. Integr. Biol.</source> <volume>16</volume>, <fpage>284</fpage>&#x2013;<lpage>287</lpage>. <pub-id pub-id-type="doi">10.1089/omi.2011.0118</pub-id>
</citation>
</ref>
<ref id="B34">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhao</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Ma</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Modeling zero inflation is not necessary for spatial transcriptomics</article-title>. <source>Genome Biol.</source> <volume>23</volume>, <fpage>118</fpage>. <pub-id pub-id-type="doi">10.1186/s13059-022-02684-0</pub-id>
</citation>
</ref>
<ref id="B35">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>SPARK-X: non-parametric modeling enables scalable and robust detection of spatial expression patterns for large spatial transcriptomic studies</article-title>. <source>Genome Biol.</source> <volume>22</volume>, <fpage>184</fpage>. <pub-id pub-id-type="doi">10.1186/s13059-021-02404-0</pub-id>
</citation>
</ref>
<ref id="B36">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zou</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Mifflin</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Hu</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Shan</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>H.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <article-title>Reduction of mNAT1/hNAT2 contributes to cerebral endothelial necroptosis and a<italic>&#x3b2;</italic> accumulation in Alzheimer&#x2019;s disease</article-title>. <source>Cell Rep.</source> <volume>33</volume>, <fpage>108447</fpage>. <pub-id pub-id-type="doi">10.1016/j.celrep.2020.108447</pub-id>
</citation>
</ref>
</ref-list>
</back>
</article>