Spatial genomics and spatial transcriptomics are helping researchers understand how tumors grow, evolve, and respond to treatment by showing where genetic changes occur within tissues. However, developing and testing new analysis software has been difficult because researchers rarely have datasets where the true genetic alterations are already known.

Researchers from Xi’an Jiaotong University have developed STGBench, an open-source simulation platform that generates realistic spatial DNA and RNA sequencing data with known genetic changes. The new tool provides researchers with a reliable way to evaluate and compare computational methods before applying them to real patient samples.

Overview of the STGBench probabilistic framework for joint spatial DNA–RNA simulation

Schematic overview of STGBench. The workflow proceeds from tissue morphology modeling on a two-dimensional grid, to spatial CNV and SNV mutation field generation, and finally to simulated spatial DNA sequencing outputs and matched spatial gene expression matrices with explicit ground truth.

STGBench consists of three sequential modules. Module 1 constructs a tissue mask on a discrete 2D grid from geometric templates or an image-derived mask. Module 2 generates spatially structured ground-truth mutation fields, including CNV copy number landscapes and SNV/VAF probability fields under boundary, gradient, or nested modes. Module 3 synthesizes pipeline-ready spatial DNA-seq outputs (reads/aligned BAM) and matched spatial gene expression matrices by propagating the mutation fields to read-level variation and transcriptional consequences, enabling end-to-end benchmarking with explicit ground truth.

Many existing simulation tools generate only simplified gene expression tables or DNA data. They often fail to model how genetic alterations influence sequencing reads, making it difficult to benchmark complete analysis pipelines. STGBench addresses these limitations by producing sequencing-level DNA alignment files together with matching RNA expression data.

The software creates virtual tissue samples on a two-dimensional grid. Researchers can design different tissue shapes and introduce realistic genetic alterations, including copy number variations, single nucleotide variants, and spatial mutation patterns. These alterations are then translated into both DNA sequencing reads and RNA expression profiles, closely mimicking real biological samples.

Because the simulated data include a known ground truth, researchers can directly measure how accurately different bioinformatics tools identify genetic changes. The developers demonstrated this by testing several widely used software packages for copy number variation and mutation detection.

The simulations showed that existing analysis tools were able to recover many of the implanted genetic alterations with high accuracy. DNA-based analyses reproduced copy number variation patterns, while RNA-based analyses successfully inferred many of the same genomic changes. The platform also generated realistic sequencing reads that accurately reflected expected mutation frequencies and changes in DNA copy number.

An important advantage of STGBench is that it supports paired DNA and RNA datasets. This allows researchers to evaluate multimodal analysis pipelines that combine genomic and transcriptomic information, an increasingly important strategy for studying cancer biology.

As spatial sequencing technologies continue to advance, benchmarking tools such as STGBench will become increasingly valuable. By providing realistic, customizable datasets with known answers, the platform can help improve computational methods for analyzing tumor evolution, therapeutic resistance, and other complex biological processes before they are applied to clinical research.

Availability – STGBench is open source at https://github.com/Icarus200110/STGBench.

Wang S, Li Y, Wang X, Wang X, Wang T, Yang S, Wang J. (2026) STGBench: sequencing-level spatial DNA-RNA simulation for multimodal and virtual cell-oriented benchmarking of genomic alterations. Briefings in Bioinformatics 27(4): bbag354. [article]

Spatial genomics and spatial transcriptomics are helping researchers understand how tumors grow, evolve, and respond to treatment by showing where genetic changes occur within tissues. However, developing and testing new analysis software has been difficult because researchers rarely have datasets where the true genetic alterations are already known.

Researchers from Xi’an Jiaotong University have developed STGBench, an open-source simulation platform that generates realistic spatial DNA and RNA sequencing data with known genetic changes. The new tool provides researchers with a reliable way to evaluate and compare computational methods before applying them to real patient samples.

Overview of the STGBench probabilistic framework for joint spatial DNA–RNA simulation

Schematic overview of STGBench. The workflow proceeds from tissue morphology modeling on a two-dimensional grid, to spatial CNV and SNV mutation field generation, and finally to simulated spatial DNA sequencing outputs and matched spatial gene expression matrices with explicit ground truth.

STGBench consists of three sequential modules. Module 1 constructs a tissue mask on a discrete 2D grid from geometric templates or an image-derived mask. Module 2 generates spatially structured ground-truth mutation fields, including CNV copy number landscapes and SNV/VAF probability fields under boundary, gradient, or nested modes. Module 3 synthesizes pipeline-ready spatial DNA-seq outputs (reads/aligned BAM) and matched spatial gene expression matrices by propagating the mutation fields to read-level variation and transcriptional consequences, enabling end-to-end benchmarking with explicit ground truth.

Many existing simulation tools generate only simplified gene expression tables or DNA data. They often fail to model how genetic alterations influence sequencing reads, making it difficult to benchmark complete analysis pipelines. STGBench addresses these limitations by producing sequencing-level DNA alignment files together with matching RNA expression data.

The software creates virtual tissue samples on a two-dimensional grid. Researchers can design different tissue shapes and introduce realistic genetic alterations, including copy number variations, single nucleotide variants, and spatial mutation patterns. These alterations are then translated into both DNA sequencing reads and RNA expression profiles, closely mimicking real biological samples.

Because the simulated data include a known ground truth, researchers can directly measure how accurately different bioinformatics tools identify genetic changes. The developers demonstrated this by testing several widely used software packages for copy number variation and mutation detection.

The simulations showed that existing analysis tools were able to recover many of the implanted genetic alterations with high accuracy. DNA-based analyses reproduced copy number variation patterns, while RNA-based analyses successfully inferred many of the same genomic changes. The platform also generated realistic sequencing reads that accurately reflected expected mutation frequencies and changes in DNA copy number.

An important advantage of STGBench is that it supports paired DNA and RNA datasets. This allows researchers to evaluate multimodal analysis pipelines that combine genomic and transcriptomic information, an increasingly important strategy for studying cancer biology.

As spatial sequencing technologies continue to advance, benchmarking tools such as STGBench will become increasingly valuable. By providing realistic, customizable datasets with known answers, the platform can help improve computational methods for analyzing tumor evolution, therapeutic resistance, and other complex biological processes before they are applied to clinical research.

Availability – STGBench is open source at https://github.com/Icarus200110/STGBench.

Wang S, Li Y, Wang X, Wang X, Wang T, Yang S, Wang J. (2026) STGBench: sequencing-level spatial DNA-RNA simulation for multimodal and virtual cell-oriented benchmarking of genomic alterations. Briefings in Bioinformatics 27(4): bbag354. [article]

Submit a Post to the Blog

SUBMIT CONTENT

Subscribe to the RNA-Seq Blog

RNA-Seq Products & Services