| Title: | Unified Benchmarking and Accuracy Evaluation for Single-Cell Multiomics Simulation Methods |
|---|---|
| Description: | A simple and unified evaluation toolkit for benchmarking single-cell and multiomics data simulation methods. Evaluates how realistic simulated data are compared to real biological datasets across three multiomics experimental designs: (i) paired multiomics (simultaneous co-assay from identical cells, e.g. 10x Chromium Multiome, SHARE-seq, SNARE-seq), which unlocks the full Category 6 multiomics integration and cross-modal alignment suite (joint-embedding Batch ASW, Cell-Type ASW, Graph Connectivity, Integration ARI, and Integration NMI); (ii) unpaired multiomics (independent scRNA-seq and scATAC-seq profiled from separate cells of the same tissue), supported through per-modality unimodal evaluation (Categories 1-5, 7, 8) and joint-embedding integration fidelity; and (iii) mosaic multiomics (partial co-measurement where only a subset of cells has both modalities, e.g. DOGMA-seq or mosaic pooling designs), handled by evaluating the paired and unimodal cell fractions across all 8 canonical categories. The toolkit quantifies simulation realism using 56 evaluation measures organized into 8 canonical categories: (1) Distributional Properties: 10 univariate metrics (Wasserstein, KS, MAD, MAE, RMSE, Bhattacharyya, KDE-ISE, Runs statistic, NN mismatch, Inter-dataset silhouette) and 4 bivariate metrics (Fasano-Franceschini 2D KS, 2D EMD, 2D NN mismatch, 2D Inter-dataset silhouette) evaluated across 7 cell-level, 7 feature-level, and 4 bivariate property pairs, (2) Sparsity & Zero-Inflation Dynamics: logistic dropout curve midpoint/slope/R2 (scRNA-seq), quadratic accessibility-sparsity curve RMSE/R2 (scATAC-seq), and posterior excess zero weight discrepancy, (3) Cellular Manifold & Clustering Concordance: MMD, Generative Precision/Recall, Silhouette ASW, Clustering Deviation Index (CDI), Neighborhood Purity, ARI, and NMI (with auxiliary Davies-Bouldin Index), (4) Technical Variation & Batch Mixing Dynamics: Batch Silhouette, PCR R2, CMS, Inverse Simpson Index (ISI), and Cross-Batch F1, (5) Biological Signal & Differential Fidelity: pseudobulk edgeR-QLF null P-value uniformity, accuracy, precision, recall, F1-score, and ROC-AUC across parallel scRNA-seq DE and scATAC-seq DA sub-categories, (6) Multiomics Integration & Alignment: joint-embedding Batch ASW, Cell-Type ASW, Graph Connectivity, Integration ARI, and Integration NMI, (7) Trajectory & Lineage Topology: HVG-filtered dynverse benchmark (Saelens et al., 2019) comprising HIM topology similarity, edge flip similarity, geodesic distance correlation, branch assignment F1, and Random Forest feature importance weighted correlation (wcor_features), (8) Computational Scalability & Efficiency: core-normalized execution runtime (core_seconds) and memory footprint per allocated core (memory_per_core_mib), with automated multi-core scaling and unified memory_mb resource benchmarking. Includes non-linear low-dimensional cell embedding projections (UMAP, t-SNE, PCA) with quantitative cluster separability (Silhouette) and fidelity (ARI) metrics, automated score normalization, leaderboards, and publication visualizations. Interactive GUI exploration is available via the companion \code{scSimEvalStudio} package. |
| Authors: | Kabilan Sakthivel [aut, cre] (ORCID: <https://orcid.org/0009-0002-9422-0938>), Dr Dwijesh Chandra Mishra [aut, ths] (ORCID: <https://orcid.org/0000-0002-3327-6156>), Dr Shashi Bhushan Lal [aut] (ORCID: <https://orcid.org/0000-0002-2958-6178>), Dr Ulavappa Angadi [aut] (ORCID: <https://orcid.org/0000-0003-0012-0179>), Dr Sudhir Srivastava [aut] (ORCID: <https://orcid.org/0000-0003-4990-7693>), Dr Neeraj Budhlakoti [aut] (ORCID: <https://orcid.org/0000-0003-3380-7831>), Dr Krishna Kumar Chaturvedi [aut] (ORCID: <https://orcid.org/0000-0002-6529-5466>), Dr Ranjeet Ranjan Kumar [aut] (ORCID: <https://orcid.org/0000-0002-2279-6340>), Dr Navin Chandra Gupta [aut] (ORCID: <https://orcid.org/0000-0002-6502-448X>), Dr Sharanbasappa [ctb] (ORCID: <https://orcid.org/0000-0002-6571-9070>) |
| Maintainer: | Kabilan Sakthivel <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.99.18 |
| Built: | 2026-11-27 22:33:36 UTC |
| Source: | https://github.com/bioc/scSimEval |
Times an expression and measures change in memory allocation, computing both raw
runtime/memory metrics and core-normalized Category VIII scalability indicators
(core_seconds and memory_per_core_mib).
benchmark_resource_usage(expr, sim_cores = NULL)benchmark_resource_usage(expr, sim_cores = NULL)
expr |
Expression or function to benchmark. |
sim_cores |
Optional positive integer specifying CPU cores used during execution (default |
A named list containing the evaluated expression result and resource metrics:
resultReturn value of expr (or NULL if evaluation errored).
core_secondsTotal CPU core-seconds (elapsed_seconds * cores).
core_hoursTotal CPU core-hours (core_seconds / 3600).
memory_per_core_mibPeak R heap memory per allocated core in MiB.
memory_per_core_gibPeak R heap memory per allocated core in GiB.
memory_per_core_mbPeak R heap memory per allocated core in decimal MB.
memory_per_core_gbPeak R heap memory per allocated core in decimal GB.
elapsed_secondsWall-clock elapsed runtime in seconds.
elapsed_minutesWall-clock elapsed runtime in minutes.
memory_mbPeak R heap memory allocated in MiB.
memory_mibAlias of memory_mb in MiB.
memory_mb_siPeak R heap memory allocated in decimal MB.
sim_coresNormalized integer core count (included only when sim_cores is supplied).
Lannelongue, L., et al. (2021). Green Algorithms. Advanced Science, 8(12), 2100707. Holtgrewe, M., et al. (2015). Bioinformatics, 31(12), 1904–1912.
benchmark_resource_usage({ Sys.sleep(0.01); 1 + 1 })benchmark_resource_usage({ Sys.sleep(0.01); 1 + 1 })
Unified benchmarking runner for multi-dataset and multi-simulator studies.
Manages sparse matrix coercion, SingleCellExperiment conversion,
parallel metric computation, and produces both granular and cross-dataset
aggregated summary tables ready for visualization.
benchmark_simulation_suite( datasets, simulators, compute_bivariate = FALSE, threads = 1L, auto_sparse = TRUE, run_gc = TRUE, save_path = NULL, verbose = TRUE )benchmark_simulation_suite( datasets, simulators, compute_bivariate = FALSE, threads = 1L, auto_sparse = TRUE, run_gc = TRUE, save_path = NULL, verbose = TRUE )
datasets |
Named list of empirical reference datasets ( |
simulators |
Named list of simulator outputs corresponding to |
compute_bivariate |
Logical; compute 2D bivariate tests. Default |
threads |
Integer number of parallel workers. Default |
auto_sparse |
Logical; coerce dense matrices to |
run_gc |
Logical; run |
save_path |
Optional |
verbose |
Logical; print progress logging. Default |
An S3 object of class c("scSimEval_multidataset_benchmark", "scSimEval_consolidated", "list") containing:
Tidy data.frame across all dataset-simulator evaluations.
Cross-dataset averaged fidelity scores formatted for plot_benchmark_bubble_matrix.
Mean, SD, SE, Min, Max, and N_Datasets for each simulator and metric.
Summary table of reference dimensions, sparsity, and cell-type counts.
Alias of dataset_summary.
Character vector of evaluated simulator names.
Character vector of evaluated dataset names.
Logical TRUE.
Integer count of datasets.
Integer count of simulators.
data(example_scrna, package = "scSimEval") refs <- list("CohortA" = example_scrna$ref) sims <- list("Splatter" = list("CohortA" = example_scrna$sim)) res <- benchmark_simulation_suite(refs, sims, verbose = FALSE) print(res) head(res$benchmark_summary_table, 8)data(example_scrna, package = "scSimEval") refs <- list("CohortA" = example_scrna$ref) sims <- list("Splatter" = list("CohortA" = example_scrna$sim)) res <- benchmark_simulation_suite(refs, sims, verbose = FALSE) print(res) head(res$benchmark_summary_table, 8)
Harmonizes, standardizes, and consolidates multiple single-cell simulator evaluation datasets or saved benchmark sessions into a unified multi-dataset benchmark object.
combine_benchmark_results( ..., list_of_benchmarks = NULL, dataset_names = NULL, filter_gold_standard = TRUE, recompute_normalized = TRUE ) append_benchmark_results( ..., list_of_benchmarks = NULL, dataset_names = NULL, filter_gold_standard = TRUE, recompute_normalized = TRUE )combine_benchmark_results( ..., list_of_benchmarks = NULL, dataset_names = NULL, filter_gold_standard = TRUE, recompute_normalized = TRUE ) append_benchmark_results( ..., list_of_benchmarks = NULL, dataset_names = NULL, filter_gold_standard = TRUE, recompute_normalized = TRUE )
... |
One or more benchmark evaluation objects, tidy data frames, or file paths
(ending in |
list_of_benchmarks |
Optional list of benchmark objects or data frames. |
dataset_names |
Optional character vector specifying custom names for each dataset
being combined. If |
filter_gold_standard |
Logical. If |
recompute_normalized |
Logical. If |
When the same simulator (e.g., "scDesign3" or "scMultiSim") is evaluated across
multiple empirical datasets, combine_benchmark_results maintains each distinct dataset
evaluation and provides cross-dataset aggregate fidelity scores across the 48 curated
evaluation metrics. This enables rigorous comparative evaluation and bubble matrix visualization
of average simulator performance across diverse biological contexts.
An S3 object of class c("scSimEval_multidataset_benchmark", "scSimEval_consolidated", "list") containing:
benchmark_summary_table: Tidy data frame of cross-dataset average fidelity scores per simulator and metric (ready for plot_benchmark_bubble_matrix).
granular_benchmark_table: Complete combined data frame preserving individual dataset rows.
dataset_summary_table: Summary table of all combined datasets and simulator counts.
dataset_summary_df: Alias of dataset_summary_table.
cross_dataset_stats: Data frame of mean, SD, SE, and sample count per simulator-metric pair.
methods: Unique simulator names evaluated across all datasets.
datasets: Vector of distinct dataset names.
is_multidataset: Logical indicating whether more than one dataset is included.
n_datasets: Integer number of datasets.
n_simulators: Integer number of unique simulators.
res1 <- list( metrics_summary_table = data.frame( Category = "Distributional Properties", Property = "library_size", Metric = "Wasserstein", Value = 0.22 ) ) res2 <- list( metrics_summary_table = data.frame( Category = "Distributional Properties", Property = "library_size", Metric = "Wasserstein", Value = 0.18 ) ) comb <- combine_benchmark_results( res1, res2, dataset_names = c("Cohort A", "Cohort B"), filter_gold_standard = FALSE, recompute_normalized = FALSE ) print(comb$datasets)res1 <- list( metrics_summary_table = data.frame( Category = "Distributional Properties", Property = "library_size", Metric = "Wasserstein", Value = 0.22 ) ) res2 <- list( metrics_summary_table = data.frame( Category = "Distributional Properties", Property = "library_size", Metric = "Wasserstein", Value = 0.18 ) ) comb <- combine_benchmark_results( res1, res2, dataset_names = c("Cohort A", "Cohort B"), filter_gold_standard = FALSE, recompute_normalized = FALSE ) print(comb$datasets)
Quantifies cumulative CPU work across all allocated processing cores
(;
Lannelongue et al., 2021; Wratten et al., 2021; Grealey et al., 2022).
compute_core_seconds(elapsed_time, time_unit = "seconds", sim_cores = 1L)compute_core_seconds(elapsed_time, time_unit = "seconds", sim_cores = 1L)
elapsed_time |
Numeric elapsed wall-clock runtime. |
time_unit |
Time unit of |
sim_cores |
Positive integer specifying the number of CPU cores allocated (default |
Numeric Core-Seconds ().
Lannelongue, L., Grealey, J., & Inouye, M. (2021). Green Algorithms: Quantifying the carbon footprint of computation. Advanced Science, 8(12), 2100707.
Wratten, L., Wilm, A., & Göke, J. (2021). Reproducible, scalable, and shareable analysis pipelines with bioinformatics workflow managers. Nature Methods, 18, 1161–1168.
Grealey, J., et al. (2022). The Carbon Footprint of Bioinformatics. Molecular Biology and Evolution, 39(3), msac034.
# Single-core run taking 45 seconds compute_core_seconds(elapsed_time = 45, time_unit = "seconds", sim_cores = 1L) # 8-core parallel run taking 2.5 minutes compute_core_seconds(elapsed_time = 2.5, time_unit = "minutes", sim_cores = 8L)# Single-core run taking 45 seconds compute_core_seconds(elapsed_time = 45, time_unit = "seconds", sim_cores = 1L) # 8-core parallel run taking 2.5 minutes compute_core_seconds(elapsed_time = 2.5, time_unit = "minutes", sim_cores = 8L)
Projects empirical biological reference and simulated count matrices into low-dimensional representations (UMAP, t-SNE, or PCA) for side-by-side and multi-method topological benchmarking. Automatically performs library-size normalization, variance-based feature selection, principal component analysis, and optional unsupervised clustering.
compute_dataset_embeddings( reference, simulated, reduction = c("umap", "tsne", "pca"), n_pcs = 30, perplexity = 30, n_neighbors = 15, min_dist = 0.3, seed = 42, cell_types = NULL, batch = NULL )compute_dataset_embeddings( reference, simulated, reduction = c("umap", "tsne", "pca"), n_pcs = 30, perplexity = 30, n_neighbors = 15, min_dist = 0.3, seed = 42, cell_types = NULL, batch = NULL )
reference |
Biological reference |
simulated |
A single simulated count matrix/ |
reduction |
Character string specifying the dimensionality reduction method: |
n_pcs |
Integer specifying the number of principal components to calculate (default: 30). |
perplexity |
Numeric perplexity for t-SNE (default: 30; automatically adapted for small sample sizes). |
n_neighbors |
Integer number of nearest neighbors for UMAP (default: 15). |
min_dist |
Numeric minimum distance parameter for UMAP (default: 0.3). |
seed |
Random seed for reproducibility (default: 42). |
cell_types |
Optional factor or character vector of cell type annotations for reference cells (or named list if per-dataset). |
batch |
Optional factor or character vector of batch annotations. |
A tidy data.frame containing cell coordinates (Dim1, Dim2),
Dataset name, Dataset_Type ("Reference" vs "Simulated"), Cell_Type,
Cluster, Library_Size, Detected_Features, and Batch.
data(example_scrna, package = "scSimEval") emb <- compute_dataset_embeddings( reference = example_scrna$ref, simulated = list("Splatter" = example_scrna$sim), reduction = "umap", cell_types = example_scrna$cell_types ) head(emb)data(example_scrna, package = "scSimEval") emb <- compute_dataset_embeddings( reference = example_scrna$ref, simulated = list("Splatter" = example_scrna$sim), reduction = "umap", cell_types = example_scrna$cell_types ) head(emb)
Computes quantitative cluster separability (Silhouette width), unsupervised cluster recovery (Adjusted Rand Index), and distribution preservation metrics (Mean UMI, Mean detected features, sparsity percentage, and relative percentage error) between reference and simulated datasets.
compute_embedding_quality_metrics( embedding_data, metric_coords = c("Dim1", "Dim2") )compute_embedding_quality_metrics( embedding_data, metric_coords = c("Dim1", "Dim2") )
embedding_data |
A |
metric_coords |
Character vector of the 2 coordinate columns used to compute distances (default: |
A data.frame (with check.names = FALSE) containing one row per dataset with columns:
DatasetDataset label (e.g., "Reference" or simulator name).
RoleDataset role ("Reference" or "Simulated").
Cells (N)Number of cells in the embedding.
Mean SilhouetteMean silhouette width across cell-type labels rounded to 4 decimals (or NA_real_).
ARI (Cluster Fidelity)Adjusted Rand Index between clustering and cell-type labels rounded to 4 decimals (or NA_real_).
Mean Library SizeMean total counts per cell rounded to 1 decimal.
Mean Detected FeaturesMean detected features per cell rounded to 1 decimal.
Library Size Diff (%)Relative percent difference in mean library size vs. Reference (present when a "Reference" row exists).
data(example_scrna, package = "scSimEval") emb <- compute_dataset_embeddings( reference = example_scrna$ref, simulated = list("Splatter" = example_scrna$sim), reduction = "umap", cell_types = example_scrna$cell_types ) compute_embedding_quality_metrics(emb)data(example_scrna, package = "scSimEval") emb <- compute_dataset_embeddings( reference = example_scrna$ref, simulated = list("Splatter" = example_scrna$sim), reduction = "umap", cell_types = example_scrna$cell_types ) compute_embedding_quality_metrics(emb)
Normalizes peak memory consumption by the number of allocated processor cores
(;
Holtgrewe et al., 2015; Boisvert et al., 2012; Chen et al., 2022).
compute_memory_per_core( memory_val, memory_unit = "MiB", sim_cores = 1L, target_unit = c("MiB", "GiB", "MB", "GB") )compute_memory_per_core( memory_val, memory_unit = "MiB", sim_cores = 1L, target_unit = c("MiB", "GiB", "MB", "GB") )
memory_val |
Numeric peak memory consumption. |
memory_unit |
Memory unit of |
sim_cores |
Positive integer specifying the number of CPU cores allocated (default |
target_unit |
Target memory unit: |
Numeric Peak RAM per allocated core in requested target unit.
Holtgrewe, M., Kuchenbecker, L., & Reinert, K. (2015). Methods for the detection and assembly of novel sequence in high-throughput sequencing data. Bioinformatics, 31(12), 1904–1912.
Boisvert, S., Raymond, F., Godzaridis, E., Laviolette, F., & Corbeil, J. (2012). Ray Meta: scalable de novo metagenome assembly and profiling. Genome Biology, 13(12), R122.
Chen, W., et al. (2022). STEPS 4.0: Fast and memory-efficient molecular simulations of neurons at the nanoscale. Frontiers in Neuroinformatics, 16, 883742.
# 4096 MiB peak RAM across 4 CPU cores (reported in MiB/core and GiB/core) compute_memory_per_core(4096, memory_unit = "MiB", sim_cores = 4L, target_unit = "MiB") compute_memory_per_core(4096, memory_unit = "MiB", sim_cores = 4L, target_unit = "GiB")# 4096 MiB peak RAM across 4 CPU cores (reported in MiB/core and GiB/core) compute_memory_per_core(4096, memory_unit = "MiB", sim_cores = 4L, target_unit = "MiB") compute_memory_per_core(4096, memory_unit = "MiB", sim_cores = 4L, target_unit = "GiB")
Computes the overall performance leaderboard ranking simulation methods across all benchmark evaluation metrics. Metrics are first direction-inverted and min-max standardized into fidelity scores in [0, 1] (where 1.0 represents best observed performance). Simulators are then rank-ordered by mean overall fidelity score.
compute_method_leaderboard(benchmark_data)compute_method_leaderboard(benchmark_data)
benchmark_data |
A benchmark data.frame (such as |
A data.frame with columns:
Overall_Rank: Integer rank (1 = top-performing simulator).
Method: Simulator method name.
Average_Fidelity: Formatted percentage string (e.g., "58.5%").
Fidelity_Score: Numeric composite fidelity score in [0, 1] rounded to 4 decimals.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 4), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics" ), 4), Metric = rep(c("KS", "Wasserstein", "ARI", "CMS"), 4), Value = c( 0.10, 0.16, 0.85, 0.88, 0.14, 0.21, 0.79, 0.83, 0.23, 0.34, 0.67, 0.72, 0.31, 0.44, 0.56, 0.62 ), stringsAsFactors = FALSE ) lb <- compute_method_leaderboard(bm_df) print(lb)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 4), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics" ), 4), Metric = rep(c("KS", "Wasserstein", "ARI", "CMS"), 4), Value = c( 0.10, 0.16, 0.85, 0.88, 0.14, 0.21, 0.79, 0.83, 0.23, 0.34, 0.67, 0.72, 0.31, 0.44, 0.56, 0.62 ), stringsAsFactors = FALSE ) lb <- compute_method_leaderboard(bm_df) print(lb)
Compares the non-linear relationship between peak mean accessibility and non-zero proportion (NZP) between reference and simulated scATAC-seq datasets.
evaluate_accessibility_sparsity_curve(ref_data, sim_data, poly_degree = 2)evaluate_accessibility_sparsity_curve(ref_data, sim_data, poly_degree = 2)
ref_data |
Reference count matrix (peaks x cells). |
sim_data |
Simulated count matrix (peaks x cells). |
poly_degree |
Degree of polynomial (default: 2). |
A named list quantifying concordance between reference and simulated accessibility-sparsity curves:
curve_rmseRoot mean squared error between predicted NZP curves over a 100-point grid spanning the reference mean range.
r2_discrepancyAbsolute difference between simulated and reference polynomial values.
ref_r_squaredPolynomial of the reference dataset.
sim_r_squaredPolynomial of the simulated dataset.
data(example_scatac, package = "scSimEval") evaluate_accessibility_sparsity_curve(example_scatac$ref, example_scatac$sim)data(example_scatac, package = "scSimEval") evaluate_accessibility_sparsity_curve(example_scatac$ref, example_scatac$sim)
Evaluates the preservation of Differentially Accessible Regions (DARs) between reference and simulated scATAC-seq datasets using biological replicate pseudobulks and edgeR-QLF (Squair et al., Nature Communications 2021; Teo et al., Nature Communications 2024 / Libra) across standard benchmarking metrics (Duo et al., Genome Biology 2024 / Simpipe).
evaluate_atac_da_fidelity( ref_data, sim_data, ref_celltypes, sim_celltypes, batch_ref = NULL, batch_sim = NULL, binarize = TRUE, fdr_cutoff = 0.05, logfc_cutoff = 0, min_cells = 3, min_reps = 2, threads = 1 )evaluate_atac_da_fidelity( ref_data, sim_data, ref_celltypes, sim_celltypes, batch_ref = NULL, batch_sim = NULL, binarize = TRUE, fdr_cutoff = 0.05, logfc_cutoff = 0, min_cells = 3, min_reps = 2, threads = 1 )
ref_data |
Reference scATAC-seq count matrix (peaks x cells). |
sim_data |
Simulated scATAC-seq count matrix (peaks x cells). |
ref_celltypes |
Factor or character vector of reference cell types. |
sim_celltypes |
Factor or character vector of simulated cell types. |
batch_ref |
Factor or character vector of biological replicate / batch labels for reference cells. |
batch_sim |
Factor or character vector of biological replicate / batch labels for simulated cells. |
binarize |
Logical. If TRUE (default for scATAC-seq), binarizes single-cell counts prior to pseudobulk aggregation. |
fdr_cutoff |
Adjusted p-value significance threshold (default 0.05). |
logfc_cutoff |
Absolute log2 fold-change cutoff (default 0). |
min_cells |
Minimum number of cells per cell type (default 3). |
min_reps |
Minimum number of replicates per group (default 2). |
threads |
Number of CPU threads for parallel pairwise contrast evaluation (default 1). |
Category V is divided into two distinct sub-categories:
Sub-category V-A (scRNA-seq Differential Expression): Computes 6 metrics:
pval_dist_score, accuracy, precision, recall,
f1_score, and auc.
Sub-category V-B (scATAC-seq Differential Accessibility): Computes 6 metrics:
pval_dist_score, accuracy, precision, recall,
f1_score, and auc.
If batch_ref or batch_sim is NULL, the analysis is gracefully skipped,
adhering to the strict rule that single-cell ATAC-seq biological signal evaluation
requires genuine biological replicates to prevent pseudoreplication bias.
A list containing:
da_summary_table |
Tidy summary data.frame with 6 scATAC-seq DA metrics: |
pairwise_results |
Detailed contrast-level data.frame with per-contrast metrics and confusion matrix counts |
pseudobulks_ref |
List of reference pseudobulk matrices per cell type |
pseudobulks_sim |
List of simulated pseudobulk matrices per cell type |
da_results_ref |
List of edgeR-QLF DA results for reference |
da_results_sim |
List of edgeR-QLF DA results for simulation |
data(example_scatac, package = "scSimEval") rep_id <- factor(rep(c("Rep1", "Rep2"), length.out = ncol(example_scatac$ref))) res <- evaluate_atac_da_fidelity( ref_data = example_scatac$ref, sim_data = example_scatac$sim, ref_celltypes = example_scatac$cell_types, sim_celltypes = example_scatac$cell_types, batch_ref = rep_id, batch_sim = rep_id ) res$da_summary_tabledata(example_scatac, package = "scSimEval") rep_id <- factor(rep(c("Rep1", "Rep2"), length.out = ncol(example_scatac$ref))) res <- evaluate_atac_da_fidelity( ref_data = example_scatac$ref, sim_data = example_scatac$sim, ref_celltypes = example_scatac$cell_types, sim_celltypes = example_scatac$cell_types, batch_ref = rep_id, batch_sim = rep_id ) res$da_summary_table
Evaluates how realistically simulated technical batches mix or separate, computing the five canonical Category IV (Technical Variation & Batch Mixing Dynamics) metrics: Batch Silhouette, PC Regression R2, CMS (Cell-Specific Mixing Score), Inverse Simpson Index (ISI), and cross-batch cell type classification macro F1.
evaluate_batch_metrics( data, batch_info, k = NULL, n_pcs = 30, cell_types = NULL, threads = 1, verbose = FALSE )evaluate_batch_metrics( data, batch_info, k = NULL, n_pcs = 30, cell_types = NULL, threads = 1, verbose = FALSE )
data |
Count or log-normalized expression matrix (features x cells). |
batch_info |
Factor or character vector of batch assignments for each cell. |
k |
Neighborhood size k for k-NN graph and mixing metrics. Default is min(table(batch_info))/2. |
n_pcs |
Number of principal components for embedding evaluation. Default is 30. |
cell_types |
Optional factor or character vector of cell types for cross-batch evaluation. |
threads |
Number of CPU threads (default 1). |
verbose |
Logical, whether to print progress. |
A named list of batch metrics:
batch_silhouette |
Average silhouette width using batch labels (lower is better mixed) |
pcr_r2 |
Total variance explained by batch in principal components (PCR) |
cms |
Mean Cell-specific mixing score (CellMixS) |
isi |
Mean Inverse Simpson Index for batch mixing (CellMixS) |
cross_batch_F1 |
Mean cross-batch cell type transfer macro F1 (if cell_types supplied) |
data(example_scrna, package = "scSimEval") evaluate_batch_metrics(example_scrna$ref, example_scrna$batch_info, cell_types = example_scrna$cell_types)data(example_scrna, package = "scSimEval") evaluate_batch_metrics(example_scrna$ref, example_scrna$batch_info, cell_types = example_scrna$cell_types)
Evaluates both unsupervised cluster separation (ASW, DB, Neighborhood Purity, CDI) and supervised concordance against ground truth labels (ARI, NMI).
evaluate_clustering_metrics( data, cluster_info = NULL, pred_clusters = NULL, dist_mat = NULL, cell_types = NULL, ref_data = NULL, ref_cell_types = NULL, batch_info = NULL, threads = 1L )evaluate_clustering_metrics( data, cluster_info = NULL, pred_clusters = NULL, dist_mat = NULL, cell_types = NULL, ref_data = NULL, ref_cell_types = NULL, batch_info = NULL, threads = 1L )
data |
Count or normalized matrix (features x cells). |
cluster_info |
Cluster or cell type labels. |
pred_clusters |
Optional predicted cluster labels (if different from ground truth). If NULL, k-means is automatically run. |
dist_mat |
Optional precomputed distance matrix. |
cell_types |
Optional alias for cluster_info. |
ref_data |
Optional reference data to compute reference clustering quality. |
ref_cell_types |
Optional reference cell type labels (if ref_data has different cells than data). |
batch_info |
Optional batch labels per cell passed to |
threads |
Integer number of parallel CPU threads passed to |
A named list of clustering quality and cluster concordance metrics (keys present depend on inputs):
silhouette_simMean silhouette width across ground-truth labels in simulated data.
silhouetteAlias of silhouette_sim.
davies_bouldinDavies-Bouldin index computed on simulated data.
davies_bouldin_simAlias of davies_bouldin.
neighborhood_purityMean k-nearest-neighbor label purity in simulated data.
silhouette_refMean silhouette width in reference data (present when ref_data is supplied).
davies_bouldin_refDavies-Bouldin index in reference data (present when ref_data is supplied).
cdiNormalized CDI-AIC score from calc_cdi (when finite).
CDI_AICAlias of cdi.
CDI_BICNormalized CDI-BIC score from calc_cdi (when finite).
ariAdjusted Rand Index between pred_clusters (or k-means clusters) and cluster_info.
ARIAlias of ari.
nmiNormalized Mutual Information between pred_clusters and cluster_info.
NMIAlias of nmi.
data <- matrix(stats::rpois(200, lambda = 3), 20, 10) cl <- factor(rep(c("A", "B"), each = 5)) dist_mat <- stats::dist(t(data)) evaluate_clustering_metrics(data, cl)data <- matrix(stats::rpois(200, lambda = 3), 20, 10) cl <- factor(rep(c("A", "B"), each = 5)) dist_mat <- stats::dist(t(data)) evaluate_clustering_metrics(data, cl)
Evaluates the preservation of Differentially Expressed Genes (DEGs) between reference and simulated scRNA-seq datasets using biological replicate pseudobulks and edgeR-QLF (Squair et al., Nature Communications 2021 / Libra) across standard benchmarking metrics (Duo et al., Genome Biology 2024 / Simpipe).
evaluate_deg_fidelity( ref_data, sim_data, ref_celltypes, sim_celltypes, batch_ref = NULL, batch_sim = NULL, fdr_cutoff = 0.05, logfc_cutoff = 0, classifier = c("svm", "knn", "rf"), min_cells = 3, min_reps = 2, threads = 1 ) evaluate_rna_de_fidelity( ref_data, sim_data, ref_celltypes, sim_celltypes, batch_ref = NULL, batch_sim = NULL, fdr_cutoff = 0.05, logfc_cutoff = 0, classifier = c("svm", "knn", "rf"), min_cells = 3, min_reps = 2, threads = 1 )evaluate_deg_fidelity( ref_data, sim_data, ref_celltypes, sim_celltypes, batch_ref = NULL, batch_sim = NULL, fdr_cutoff = 0.05, logfc_cutoff = 0, classifier = c("svm", "knn", "rf"), min_cells = 3, min_reps = 2, threads = 1 ) evaluate_rna_de_fidelity( ref_data, sim_data, ref_celltypes, sim_celltypes, batch_ref = NULL, batch_sim = NULL, fdr_cutoff = 0.05, logfc_cutoff = 0, classifier = c("svm", "knn", "rf"), min_cells = 3, min_reps = 2, threads = 1 )
ref_data |
Reference scRNA-seq count matrix (genes x cells). |
sim_data |
Simulated scRNA-seq count matrix (genes x cells). |
ref_celltypes |
Factor or character vector of reference cell types. |
sim_celltypes |
Factor or character vector of simulated cell types. |
batch_ref |
Factor or character vector of biological replicate / batch labels for reference cells. Required. |
batch_sim |
Factor or character vector of biological replicate / batch labels for simulated cells. Required. |
fdr_cutoff |
Adjusted p-value significance threshold for DEGs (default 0.05). |
logfc_cutoff |
Absolute log2 fold-change cutoff (default 0). |
classifier |
Classifier algorithm for marker gene predictability: "svm" (default), "knn", or "rf". |
min_cells |
Minimum number of cells per cell type (default 3). |
min_reps |
Minimum number of replicates per group (default 2). |
threads |
Number of CPU threads for parallel pairwise contrast evaluation (default 1). |
Category V is divided into two distinct sub-categories:
Sub-category V-A (scRNA-seq Differential Expression): Computes 6 metrics:
pval_dist_score, accuracy, precision, recall,
f1_score, and auc.
Sub-category V-B (scATAC-seq Differential Accessibility): Computes 6 metrics:
pval_dist_score, accuracy, precision, recall,
f1_score, and auc.
If batch_ref or batch_sim is NULL, the analysis is gracefully skipped,
adhering to the strict rule that single-cell biological signal evaluation requires
genuine biological replicates to prevent false positive inflation and pseudoreplication bias.
A list containing:
deg_summary_table |
Tidy summary data.frame with 6 scRNA-seq DE metrics: |
pairwise_results |
Detailed contrast-level data.frame with per-contrast metrics and confusion matrix counts |
pseudobulks_ref |
List of reference pseudobulk matrices per cell type |
pseudobulks_sim |
List of simulated pseudobulk matrices per cell type |
de_results_ref |
List of edgeR-QLF DE results for reference |
de_results_sim |
List of edgeR-QLF DE results for simulation |
ml_classification |
Detailed classification results using simulated pseudobulk DEGs |
data(example_scrna, package = "scSimEval") rep_id <- factor(rep(c("Rep1", "Rep2"), length.out = ncol(example_scrna$ref))) res <- evaluate_deg_fidelity( ref_data = example_scrna$ref, sim_data = example_scrna$sim, ref_celltypes = example_scrna$cell_types, sim_celltypes = example_scrna$cell_types, batch_ref = rep_id, batch_sim = rep_id ) res$deg_summary_tabledata(example_scrna, package = "scSimEval") rep_id <- factor(rep(c("Rep1", "Rep2"), length.out = ncol(example_scrna$ref))) res <- evaluate_deg_fidelity( ref_data = example_scrna$ref, sim_data = example_scrna$sim, ref_celltypes = example_scrna$cell_types, sim_celltypes = example_scrna$cell_types, batch_ref = rep_id, batch_sim = rep_id ) res$deg_summary_table
Orchestrates comprehensive benchmarking across all 8 evaluation categories
using SingleCellExperiment inputs (either a multi-modal SCE containing
an altExp for chromatin accessibility, or a named list of two SCE
objects such as list(RNA = rna_sce, ATAC = atac_sce)). Cell-type and
batch labels are read directly from colData via cell_type_col
and batch_col. Users starting from Seurat objects should
convert via Seurat::as.SingleCellExperiment().
evaluate_multiomics_accuracy( ref_multi, sim_multi, cell_type_col = "cell_type", batch_col = "batch", pairing = c("paired", "unpaired"), memory_mb = NULL, elapsed_time = NULL, time_unit = c("seconds", "minutes"), memory_unit = c("MiB", "MB"), sim_cores = NULL, separate_resources = NULL, feature_pairs = NULL, compute_bivariate = TRUE, threads = 1L, trajectory_num_trees = 10000L, verbose = TRUE )evaluate_multiomics_accuracy( ref_multi, sim_multi, cell_type_col = "cell_type", batch_col = "batch", pairing = c("paired", "unpaired"), memory_mb = NULL, elapsed_time = NULL, time_unit = c("seconds", "minutes"), memory_unit = c("MiB", "MB"), sim_cores = NULL, separate_resources = NULL, feature_pairs = NULL, compute_bivariate = TRUE, threads = 1L, trajectory_num_trees = 10000L, verbose = TRUE )
ref_multi |
Reference multiomics |
sim_multi |
Simulated multiomics |
cell_type_col |
Column name in |
batch_col |
Column name in |
pairing |
Character string specifying |
memory_mb |
Optional numeric peak memory allocation (in |
elapsed_time |
Optional numeric wall-clock runtime (in |
time_unit |
Unit of |
memory_unit |
Unit of |
sim_cores |
Optional positive integer specifying CPU cores used by the simulator. |
separate_resources |
Optional named list (e.g., |
feature_pairs |
Optional 2-column data.frame of linked feature pairs. |
compute_bivariate |
Logical, whether to compute 2D bivariate tests. Default |
threads |
Integer number of CPU threads. Default is |
trajectory_num_trees |
Number of Random Forest trees for Category VII |
verbose |
Logical, whether to print progress messages. Default is |

Multiomics Metric Measurement Capacity (56 Evaluation Measures Suite):
Paired Multiomics (56 Metrics): Dual unimodal properties (Cat I–II), dual clustering (Cat III), dual batch mixing (Cat IV), dual biological signal (Cat V: 6 DE + 6 DA), cross-modal integration & alignment (Cat VI), scRNA trajectory (Cat VII), and scalability (Cat VIII).
Unpaired Multiomics (56 Metrics): Evaluates both modalities independently across Cat I–V, VII, VIII plus population-level joint integration & alignment (Cat VI).
A named list containing:
Master tidy data frame with columns Category, Property, Metric, Value, Modality (and Sim_Cores if provided).
Alias of benchmark_summary_table.
Alias of benchmark_summary_table.
Resolved pairing mode ("paired" or "unpaired").
Full unimodal evaluation output for modality 1.
Full unimodal evaluation output for modality 2.
List with elements m1 and m2 containing Category III results.
Named list of Category IV batch mixing results per modality.
Named list of Category V differential fidelity results per modality.
Category VII dynverse trajectory results inferred from the scRNA-seq layer.
List storing Category VI integration output under correlation.
Normalized Category VIII scalability list supporting both "combined" and "separate" modes.
data(example_multiomics, package = "scSimEval") res <- evaluate_multiomics_accuracy( example_multiomics$ref_multi, example_multiomics$sim_multi, verbose = FALSE ) head(res$benchmark_summary_table, 10)data(example_multiomics, package = "scSimEval") res <- evaluate_multiomics_accuracy( example_multiomics$ref_multi, example_multiomics$sim_multi, verbose = FALSE ) head(res$benchmark_summary_table, 10)
Evaluates the multiomics integration and cross-modal alignment fidelity of simulated
single-cell multiomics data across 5 gold-standard integration metrics extracted from
key single-cell benchmarking suites (scib, scMultiSim, scCross,
Matilda, and scMoMtF):
Batch ASW (batch_asw): Average Silhouette Width evaluating batch mixing within cell types (scib, scMultiSim).
Cell-Type ASW (cell_type_asw): Average Silhouette Width evaluating cell-type bio-conservation in the multiomics space (scCross, scib).
Graph Connectivity (graph_connectivity): Relative size of the largest connected component in the k-NN graph for each cell type (scCross, scMultiSim, scib).
ARI (ari): Adjusted Rand Index comparing joint multiomics clustering against ground-truth cell types (scib, scCross, scMultiSim, Matilda, scMoMtF).
NMI (nmi): Normalized Mutual Information quantifying information concordance between joint clustering and cell types (scib, scCross, scMultiSim, Matilda, scMoMtF).
evaluate_multiomics_integration( ref_multi = NULL, sim_multi, cell_types = NULL, batch_info = NULL, embed = NULL, reduction_name = NULL, n_pcs = 15, k = 30, threads = 1, pairing = NULL, verbose = TRUE )evaluate_multiomics_integration( ref_multi = NULL, sim_multi, cell_types = NULL, batch_info = NULL, embed = NULL, reduction_name = NULL, n_pcs = 15, k = 30, threads = 1, pairing = NULL, verbose = TRUE )
ref_multi |
Optional reference multiomics list of matrices (e.g. |
sim_multi |
Simulated multiomics list of matrices or a matrix representing joint embedding coordinates. |
cell_types |
Optional cell-type vector or list/data.frame of annotations for each cell. |
batch_info |
Optional batch/donor/replicate vector or list/data.frame of annotations for each cell. |
embed |
Optional precomputed joint embedding matrix (cells x dimensions). If NULL, computed automatically from |
reduction_name |
Optional name of the precomputed dimensional reduction to extract from |
n_pcs |
Number of principal components per modality to retain for joint embedding (default 15). |
k |
Number of nearest neighbors for graph-based metrics (default 30). |
threads |
Number of CPU threads for parallel processing (default 1). |
pairing |
Optional pairing mode ( |
verbose |
Logical; whether to print progress messages (default TRUE). |
A list of class scSimEval_integration containing:
metrics |
Named list of the 5 calculated integration metric values (batch_asw, cell_type_asw, graph_connectivity, ari, nmi). |
integration_summary_table |
A tidy data.frame containing the 5 metrics with columns |
embedding |
The joint multiomics embedding matrix used for evaluation. |
data(example_multiomics, package = "scSimEval") ct <- rep(c("A", "B"), each = 50) res <- evaluate_multiomics_integration( sim_multi = example_multiomics$sim_multi, cell_types = ct ) unlist(res[vapply(res, function(x) is.numeric(x) && length(x) == 1L, logical(1))])data(example_multiomics, package = "scSimEval") ct <- rep(c("A", "B"), each = 50) res <- evaluate_multiomics_integration( sim_multi = example_multiomics$sim_multi, cell_types = ct ) unlist(res[vapply(res, function(x) is.numeric(x) && length(x) == 1L, logical(1))])
Orchestrates simultaneous benchmarking across a collection of single-cell
SingleCellExperiment datasets, including paired/unpaired multiomics
and unimodal scRNA-seq or scATAC-seq experiments.
evaluate_multiple_datasets( datasets, pair_by_prefix = TRUE, compute_bivariate = FALSE, threads = 1L, verbose = TRUE )evaluate_multiple_datasets( datasets, pair_by_prefix = TRUE, compute_bivariate = FALSE, threads = 1L, verbose = TRUE )
datasets |
A named list of dataset specifications ( |
pair_by_prefix |
Logical; if |
compute_bivariate |
Logical; whether to compute 2D bivariate tests (default |
threads |
Integer number of CPU threads. Default is |
verbose |
Logical; whether to print progress messages. Default is |
An S3 object of class c("scSimEval_consolidated", "list") containing:
Master tidy data.frame with columns Dataset, Data_Name, Modality, Category, Property, Metric, and Value.
Numeric matrix comparing datasets across all evaluated metric keys.
Data frame summarizing metric counts and mean KS, Wasserstein, and RMSE per dataset.
Named list of detailed per-dataset evaluation outputs.
data(example_scrna, package = "scSimEval") ds <- list("DemoCohort" = list(ref = example_scrna$ref, sim = example_scrna$sim)) res <- evaluate_multiple_datasets(ds, verbose = FALSE) res$dataset_overviewdata(example_scrna, package = "scSimEval") ds <- list("DemoCohort" = list(ref = example_scrna$ref, sim = example_scrna$sim)) res <- evaluate_multiple_datasets(ds, verbose = FALSE) res$dataset_overview
Computes distribution distances, cellular and feature-level properties,
zero-inflation curves, clustering concordance, batch mixing, differential
expression/accessibility fidelity, trajectory topology, and computational
scalability between reference and simulated SingleCellExperiment objects.
Users starting from Seurat objects should convert via
Seurat::as.SingleCellExperiment().
evaluate_simulation_accuracy( ref_sce, sim_sce, cell_type_col = "cell_type", batch_col = "batch", modality = NULL, compute_bivariate = TRUE, threads = 1L, memory_mb = NULL, elapsed_time = NULL, time_unit = c("seconds", "minutes"), memory_unit = c("MiB", "MB"), sim_cores = NULL, trajectory_num_trees = 10000L, include_trajectory = TRUE, include_downstream = TRUE, verbose = TRUE )evaluate_simulation_accuracy( ref_sce, sim_sce, cell_type_col = "cell_type", batch_col = "batch", modality = NULL, compute_bivariate = TRUE, threads = 1L, memory_mb = NULL, elapsed_time = NULL, time_unit = c("seconds", "minutes"), memory_unit = c("MiB", "MB"), sim_cores = NULL, trajectory_num_trees = 10000L, include_trajectory = TRUE, include_downstream = TRUE, verbose = TRUE )
ref_sce |
Reference |
sim_sce |
Simulated |
cell_type_col |
Column name in |
batch_col |
Column name in |
modality |
Optional modality hint ( |
compute_bivariate |
Logical, whether to compute 2D bivariate tests. Default is |
threads |
Integer number of parallel worker threads. Default is |
memory_mb |
Optional numeric peak memory allocation (in |
elapsed_time |
Optional numeric wall-clock elapsed runtime (in |
time_unit |
Unit of |
memory_unit |
Unit of |
sim_cores |
Optional positive integer specifying CPU cores used by the simulator. |
trajectory_num_trees |
Number of Random Forest trees for Category VII |
include_trajectory |
Logical; whether to evaluate Category VII trajectory metrics for scRNA-seq. Default |
include_downstream |
Logical; whether to evaluate Categories III, IV, and V downstream metrics. Default |
verbose |
Logical, whether to print progress messages. Default is |

Metric Measurement Capacity across 4 Analysis Options (56 Evaluation Measures Suite):
Cell-type and batch annotations are retrieved directly from colData(ref_sce) and
colData(sim_sce) using cell_type_col and batch_col.
1. scRNA-seq (44 Metrics): Categories I, II, III, IV, V (DE), VII, and VIII.
2. scATAC-seq (38 Metrics): Categories I, II, III, IV, V (DA), and VIII (trajectory skipped for ATAC).
3. Paired Multiomics (56 Metrics): All 8 categories (I–VIII) via evaluate_multiomics_accuracy.
4. Unpaired Multiomics (56 Metrics): All 8 categories (I–VIII) via evaluate_multiomics_accuracy on unpaired RNA and ATAC populations.
A named list containing tidy summaries and detailed category results:
Data frame with columns Category, Property, Metric, Value (and Sim_Cores if provided).
Named list of per-property univariate metric lists at cell resolution.
Named list of per-property univariate metric lists at feature resolution.
Named list of 2D bivariate metric comparisons.
Category II scRNA-seq dropout curve results, or NULL.
Category II scATAC-seq sparsity curve results, or NULL.
List with ref and sim excess-zero probability weights.
List with mmd and precision_recall generative manifold scores.
List containing cell and feature property vectors extracted from ref_sce.
List containing cell and feature property vectors extracted from sim_sce.
Category IV batch mixing metrics list, or NULL.
Category V pseudobulk DE/DA fidelity results, or NULL.
Category VII dynverse trajectory evaluation results, or NULL.
Normalized Category VIII scalability list (core_seconds, memory_per_core_mib, memory_mb, elapsed_time, sim_cores).
data(example_scrna, package = "scSimEval") res <- evaluate_simulation_accuracy( example_scrna$ref, example_scrna$sim, include_trajectory = FALSE, verbose = FALSE ) head(res$metrics_summary_table, 10)data(example_scrna, package = "scSimEval") res <- evaluate_simulation_accuracy( example_scrna$ref, example_scrna$sim, include_trajectory = FALSE, verbose = FALSE ) head(res$metrics_summary_table, 10)
Evaluates trajectory and lineage preservation using the standardized dynverse benchmarking framework (Saelens et al., Nature Biotechnology, 2019):
Standardized cell outlier QC (3 MADs), low-expression gene filtering
( cells, mean ), and HVG selection (empirical mean-variance decomposition).
Shared HVG PCA projection and Docker-free Minimum Spanning Tree (MST) milestone trajectory inference with continuous cell-to-milestone geodesic distances.
Five complementary trajectory metrics: him (Hamming-Ipsen-Mikhailov similarity),
edge_flip (minimum edge flip similarity), geodesic_correlation,
F1_branches, and wcor_features (ranger Random Forest feature
importance weighted correlation with num_trees = 10000 and 1 percent mtry).
evaluate_trajectory_metrics( ref_data, sim_data, cell_types_ref = NULL, cell_types_sim = NULL, num_trees = 10000L, nmads = 3, min_cell_frac = 0.05, min_mean_expr = 0.02, fdr_threshold = 0.05, bio_var_threshold = 0.5, threads = 1L, seed = 42L, verbose = FALSE )evaluate_trajectory_metrics( ref_data, sim_data, cell_types_ref = NULL, cell_types_sim = NULL, num_trees = 10000L, nmads = 3, min_cell_frac = 0.05, min_mean_expr = 0.02, fdr_threshold = 0.05, bio_var_threshold = 0.5, threads = 1L, seed = 42L, verbose = FALSE )
ref_data |
Reference count matrix or |
sim_data |
Simulated count matrix or |
cell_types_ref |
Optional vector of reference cell types. |
cell_types_sim |
Optional vector of simulated cell types. |
num_trees |
Number of ranger trees per milestone for |
nmads |
MAD cutoff for outlier cell QC (default |
min_cell_frac |
Minimum cell fraction per gene (default |
min_mean_expr |
Minimum average gene count (default |
fdr_threshold |
FDR threshold for HVG selection (default |
bio_var_threshold |
Biological variance threshold for HVG selection (default |
threads |
Number of CPU threads for ranger (default |
seed |
Random seed (default |
verbose |
Logical; print progress messages. |
A named list of Category VII dynverse trajectory accuracy metrics:
Hamming-Ipsen-Mikhailov topology similarity ([0, 1]).
Edge flip topology similarity ([0, 1]).
Spearman correlation of aligned geodesic distances ([0, 1]).
Macro F1 overlap of MST branch assignments ([0, 1]).
Reference-weighted Pearson correlation of Random Forest gene importances ([0, 1]).
Unweighted Pearson correlation of Random Forest gene importances.
Number of HVGs retained for trajectory evaluation.
Inferred reference milestone trajectory object.
Inferred simulated milestone trajectory object.
Cell and HVG filtering summary list.
data(example_scrna, package = "scSimEval") res <- evaluate_trajectory_metrics( example_scrna$ref, example_scrna$sim, cell_types_ref = example_scrna$cell_types, cell_types_sim = example_scrna$cell_types, num_trees = 200L ) unlist(res[c("him", "edge_flip", "geodesic_correlation", "F1_branches", "wcor_features", "n_hvgs")])data(example_scrna, package = "scSimEval") res <- evaluate_trajectory_metrics( example_scrna$ref, example_scrna$sim, cell_types_ref = example_scrna$cell_types, cell_types_sim = example_scrna$cell_types, num_trees = 200L ) unlist(res[c("him", "edge_flip", "geodesic_correlation", "F1_branches", "wcor_features", "n_hvgs")])
Compares empirical logistic dropout trends between reference and simulated scRNA-seq datasets.
evaluate_zero_probability_curve(ref_counts, sim_counts)evaluate_zero_probability_curve(ref_counts, sim_counts)
ref_counts |
Reference count matrix. |
sim_counts |
Simulated count matrix. |
Named numeric vector of curve parameter differences (slope_error, midpoint_error, r2_discrepancy).
data(example_scrna, package = "scSimEval") evaluate_zero_probability_curve(example_scrna$ref, example_scrna$sim)data(example_scrna, package = "scSimEval") evaluate_zero_probability_curve(example_scrna$ref, example_scrna$sim)
A unified paired single-cell multiomics dataset combining example_scrna
(100 HVGs) and example_scatac (100 HVPs) across the exact same 100 balanced
rice bud cells, accompanied by shared cell-type labels, batch annotations, and
empirical computational scalability metrics.
data(example_multiomics)data(example_multiomics)
A list with 5 elements:
Named list of SingleCellExperiment objects: rna (100 HVGs x 100 cells) and atac (100 HVPs x 100 cells), complete with colData and precomputed PCA in reducedDims.
Named list of simulated SingleCellExperiment objects: rna (100 x 100) and atac (100 x 100).
A named factor of shared cell-type identities across 8 Rice Bud cell types for the 100 paired cells.
A named factor of batch annotations (Bud_21, Bud_22) for the 100 paired cells.
A list of empirical scalability metrics: elapsed_time, memory_mb, sim_cores.
Derived from rice bud paired multiomics data (Oryza sativa, GEO accession GSE232863).
data(example_multiomics) names(example_multiomics$ref_multi) names(example_multiomics$sim_multi)data(example_multiomics) names(example_multiomics$ref_multi) names(example_multiomics$sim_multi)
A real, pre-processed paired single-cell RNA-seq and ATAC-seq benchmark dataset of
rice bud tissue (Oryza sativa, GEO accession GSE232863), standardized
using Bioconductor SingleCellExperiment objects.
Contains paired empirical reference profiles (top 100 HVGs x 100 balanced cells for RNA,
top 100 HVPs x 100 identical paired cells for ATAC) covering all 8 biological cell types
equally (12–13 cells per type) and 2 biological batches (Bud_21, Bud_22),
alongside simulated outputs from 6 single-cell multiomics simulators (scMultiSim,
scDesign3, MOSim, scCross, scMoMtF, and Matilda)
and observed scalability benchmarks (runtime in seconds, peak RAM in MiB, and CPU cores).
data(example_rice_bud)data(example_rice_bud)
A list with 4 elements:
List containing dataset name, organism, tissue, pairing mode ("paired"), dimensions, and simulators.
List containing standardized SingleCellExperiment objects:
combined (multi-modal SingleCellExperiment with RNA counts and altExp(combined, "ATAC") sharing identical paired cells and colData),
rna (unimodal SingleCellExperiment for scRNA-seq), and
atac (unimodal SingleCellExperiment for scATAC-seq).
Named list of simulated outputs for 6 simulators: scMultiSim, scDesign3, MOSim, scCross, scMoMtF, and Matilda. Each simulator entry contains combined, rna, and atac SingleCellExperiment objects matching the reference structure.
A data.frame with benchmarked Method, Runtime_Seconds, PeakRAM_MiB, and Sim_Cores.
Gene Expression Omnibus (GEO) GSE232863. Preprocessed via standard rice tissue pipeline.
data(example_rice_bud) example_rice_bud$reference$combined dim(example_rice_bud$reference$rna) dim(example_rice_bud$reference$atac) names(example_rice_bud$simulated) example_rice_bud$scalability_benchmarks res <- evaluate_multiomics_accuracy( ref_multi = list(RNA = example_rice_bud$reference$rna, ATAC = example_rice_bud$reference$atac), sim_multi = list(RNA = example_rice_bud$simulated$scDesign3$rna, ATAC = example_rice_bud$simulated$scDesign3$atac), pairing = "paired", verbose = FALSE ) head(res$benchmark_summary_table, 8)data(example_rice_bud) example_rice_bud$reference$combined dim(example_rice_bud$reference$rna) dim(example_rice_bud$reference$atac) names(example_rice_bud$simulated) example_rice_bud$scalability_benchmarks res <- evaluate_multiomics_accuracy( ref_multi = list(RNA = example_rice_bud$reference$rna, ATAC = example_rice_bud$reference$atac), sim_multi = list(RNA = example_rice_bud$simulated$scDesign3$rna, ATAC = example_rice_bud$simulated$scDesign3$atac), pairing = "paired", verbose = FALSE ) head(res$benchmark_summary_table, 8)
A real, subsampled single-cell ATAC sequencing peak accessibility dataset from
rice bud tissue (Oryza sativa) designed for testing, benchmarking, and
demonstrating evaluation metrics in scSimEval. Contains empirical reference
peak counts and scDesign3-simulated counts across the top 100 highly variable
peaks (HVPs) and the same 100 balanced paired cells as example_scrna.
data(example_scatac)data(example_scatac)
A list with 4 elements:
A SingleCellExperiment object containing reference peak accessibility counts (100 HVPs x 100 cells), cell types and batch annotations in colData, and precomputed PCA in reducedDims.
A SingleCellExperiment object containing simulated peak accessibility counts (100 HVPs x 100 cells), cell types and batch annotations in colData, and precomputed PCA in reducedDims.
A named factor of cell-type identities across 8 Rice Bud cell types for the 100 cells.
A named factor of batch annotations (Bud_21, Bud_22) for the 100 cells.
Derived from rice bud paired multiomics data (Oryza sativa, GEO accession GSE232863).
data(example_scatac) dim(example_scatac$ref) dim(example_scatac$sim) table(example_scatac$batch_info)data(example_scatac) dim(example_scatac$ref) dim(example_scatac$sim) table(example_scatac$batch_info)
A real, subsampled single-cell RNA sequencing dataset from rice bud tissue
(Oryza sativa) designed for testing, benchmarking, and demonstrating
evaluation metrics in scSimEval. Contains empirical reference counts
and scDesign3-simulated counts across the top 100 highly variable genes
(HVGs) and 100 balanced cells covering all 8 biological cell types and 2 batches.
data(example_scrna)data(example_scrna)
A list with 4 elements:
A SingleCellExperiment object containing reference scRNA-seq counts (100 HVGs x 100 cells), cell types and batch annotations in colData, and precomputed PCA in reducedDims.
A SingleCellExperiment object containing simulated scRNA-seq counts (100 HVGs x 100 cells), cell types and batch annotations in colData, and precomputed PCA in reducedDims.
A named factor of cell-type identities across 8 Rice Bud cell types for the 100 cells.
A named factor of batch annotations (Bud_21, Bud_22) for the 100 cells.
Derived from rice bud paired multiomics data (Oryza sativa, GEO accession GSE232863).
data(example_scrna) dim(example_scrna$ref) dim(example_scrna$sim) table(example_scrna$cell_types)data(example_scrna) dim(example_scrna$ref) dim(example_scrna$sim) table(example_scrna$cell_types)
A real, pre-processed unpaired single-cell RNA-seq and ATAC-seq benchmark dataset of
soybean root tissue (Glycine max), standardized using Bioconductor
SingleCellExperiment objects.
Contains independent empirical reference profiles (top 100 HVGs x 100 balanced RNA cells
and top 100 HVPs x 100 independently sampled balanced ATAC cells) covering all 8 biological
cell types (Cortex, Endodermis, Epidermis, Pericycle,
Phloem, Procambium, Root_hair, Xylem; 12–13 cells per type),
alongside simulated outputs from 3 unpaired multiomics simulators (scMultiSim,
scDesign3, and scCross) and observed scalability benchmarks.
data(example_soybean_root)data(example_soybean_root)
A list with 4 elements:
List containing dataset name, organism, tissue, pairing mode ("unpaired"), dimensions, and simulators.
List containing standardized SingleCellExperiment objects:
combined (multi-modal SingleCellExperiment with colData$modality distinguishing independent RNA and ATAC cells across altExp(combined, "ATAC")),
rna (unimodal SingleCellExperiment for scRNA-seq), and
atac (unimodal SingleCellExperiment for scATAC-seq).
Named list of simulated outputs for 3 simulators: scMultiSim, scDesign3, and scCross. Each simulator entry contains combined, rna, and atac SingleCellExperiment objects matching the reference structure.
A data.frame with benchmarked runtime, peak RAM, and CPU cores for RNA, ATAC, and combined execution.
Preprocessed from soybean root single-cell atlas datasets.
data(example_soybean_root) example_soybean_root$reference$combined dim(example_soybean_root$reference$rna) dim(example_soybean_root$reference$atac) names(example_soybean_root$simulated) example_soybean_root$scalability_benchmarks res <- evaluate_multiomics_accuracy( ref_multi = list(RNA = example_soybean_root$reference$rna, ATAC = example_soybean_root$reference$atac), sim_multi = list(RNA = example_soybean_root$simulated$scMultiSim$rna, ATAC = example_soybean_root$simulated$scMultiSim$atac), pairing = "unpaired", verbose = FALSE ) head(res$benchmark_summary_table, 8)data(example_soybean_root) example_soybean_root$reference$combined dim(example_soybean_root$reference$rna) dim(example_soybean_root$reference$atac) names(example_soybean_root$simulated) example_soybean_root$scalability_benchmarks res <- evaluate_multiomics_accuracy( ref_multi = list(RNA = example_soybean_root$reference$rna, ATAC = example_soybean_root$reference$atac), sim_multi = list(RNA = example_soybean_root$simulated$scMultiSim$rna, ATAC = example_soybean_root$simulated$scMultiSim$atac), pairing = "unpaired", verbose = FALSE ) head(res$benchmark_summary_table, 8)
Rescales metric raw scores to a 0-1 range where 1 is always best, taking into account whether the metric is higher-is-better or lower-is-better, naturally bounded, or unbounded.
normalize_bubble_scores(df)normalize_bubble_scores(df)
df |
A data frame of benchmark results containing at least |
The input data frame with Score_Norm populated in [0, 1] (higher is always better).
df <- data.frame( Method = rep(c("scDesign3", "Splatter", "SymSim"), each = 2), Metric = rep(c("KS", "ARI"), 3), Value = c(0.12, 0.85, 0.28, 0.68, 0.41, 0.52), stringsAsFactors = FALSE ) norm_df <- normalize_bubble_scores(df) print(norm_df)df <- data.frame( Method = rep(c("scDesign3", "Splatter", "SymSim"), each = 2), Metric = rep(c("KS", "ARI"), 3), Value = c(0.12, 0.85, 0.28, 0.68, 0.41, 0.52), stringsAsFactors = FALSE ) norm_df <- normalize_bubble_scores(df) print(norm_df)
Produces a multi-dimensional benchmarking bubble matrix comparing simulation methods. Methods appear as rows; evaluation metrics appear as columns grouped under the eight canonical evaluation categories (I-VIII) displayed as colored header strips at the top.
plot_benchmark_bubble_matrix( data, assay_modality = NULL, method_classes = NULL, category_colors = NULL, metrics_order = NULL, methods_order = NULL, rank_methods = TRUE, compact_strips = TRUE, normalize_scores = TRUE, show_missing_dots = TRUE, bubble_size_range = c(2, 7.8), title = NULL, subtitle = NULL, base_size = 11, show_score_labels = FALSE, show_category_bars = TRUE ) plot_bubble_matrix( data, assay_modality = NULL, method_classes = NULL, category_colors = NULL, metrics_order = NULL, methods_order = NULL, rank_methods = TRUE, compact_strips = TRUE, normalize_scores = TRUE, show_missing_dots = TRUE, bubble_size_range = c(2, 7.8), title = NULL, subtitle = NULL, base_size = 11, show_score_labels = FALSE, show_category_bars = TRUE )plot_benchmark_bubble_matrix( data, assay_modality = NULL, method_classes = NULL, category_colors = NULL, metrics_order = NULL, methods_order = NULL, rank_methods = TRUE, compact_strips = TRUE, normalize_scores = TRUE, show_missing_dots = TRUE, bubble_size_range = c(2, 7.8), title = NULL, subtitle = NULL, base_size = 11, show_score_labels = FALSE, show_category_bars = TRUE ) plot_bubble_matrix( data, assay_modality = NULL, method_classes = NULL, category_colors = NULL, metrics_order = NULL, methods_order = NULL, rank_methods = TRUE, compact_strips = TRUE, normalize_scores = TRUE, show_missing_dots = TRUE, bubble_size_range = c(2, 7.8), title = NULL, subtitle = NULL, base_size = 11, show_score_labels = FALSE, show_category_bars = TRUE )
data |
Input data. One of:
|
assay_modality |
Optional character scalar ("all", "RNA", or "ATAC") specifying
the assay modality scope to dynamically format Category V metrics with the appropriate
differential prefix ("DE/DA ", "DE ", or "DA "). If |
method_classes |
Optional named list mapping method names to row group labels. |
category_colors |
Optional named character vector to override the canonical palette. |
metrics_order |
Optional character vector for explicit metric ordering (left to right). |
methods_order |
Optional character vector for explicit method ordering (top to bottom). |
rank_methods |
Logical. Automatically rank methods along the vertical axis by mean overall fidelity score. Default |
compact_strips |
Logical. Use compact two-line facet strip titles for clean horizontal layout. Default |
normalize_scores |
Logical. Normalize raw distances into [0, 1] fidelity scores. Default |
show_missing_dots |
Logical. Show grey dots for missing metric combinations. Default |
bubble_size_range |
Numeric vector of length 2: min and max bubble size. Default |
title |
Character. Main plot title. If |
subtitle |
Character. Plot subtitle. |
base_size |
Numeric. Base font size. Default |
show_score_labels |
Logical. Annotate bubbles with numeric score. Default |
show_category_bars |
Logical. Append a compact horizontal summary bar (normalized
category mean score) at the right end of each category panel. Default |

Bubble encoding:
Size: Normalized fidelity score [0, 1] – larger = better performance.
Fill color: Evaluation category (one of the eight canonical groups).
Circle (standard outline): Standard performance for that metric.
Bold outline circle (shape 21, stroke 1.6): Top-performing simulator for that specific metric.
Small grey dot: Metric not available/computed for that method.
Score normalization is direction-aware: distance/error metrics are inverted so that 1 always means best performance, while concordance/correlation metrics are used directly (higher = better).
A ggplot object rendering the multi-dimensional bubble matrix.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(VIII) Computational Scalability & Efficiency" ), 4), Metric = rep(c("KS", "Wasserstein", "Zero_Prob_RMSE", "Silhouette_ASW", "CMS", "Core_Seconds"), 4), Value = c( 0.11, 0.18, 0.08, 0.82, 0.86, 42, 0.15, 0.22, 0.11, 0.78, 0.81, 68, 0.23, 0.34, 0.17, 0.65, 0.72, 18, 0.31, 0.45, 0.24, 0.56, 0.64, 95 ), stringsAsFactors = FALSE ) p <- plot_benchmark_bubble_matrix(bm_df, base_size = 9.5) + ggplot2::theme(legend.box = "vertical") print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(VIII) Computational Scalability & Efficiency" ), 4), Metric = rep(c("KS", "Wasserstein", "Zero_Prob_RMSE", "Silhouette_ASW", "CMS", "Core_Seconds"), 4), Value = c( 0.11, 0.18, 0.08, 0.82, 0.86, 42, 0.15, 0.22, 0.11, 0.78, 0.81, 68, 0.23, 0.34, 0.17, 0.65, 0.72, 18, 0.31, 0.45, 0.24, 0.56, 0.64, 95 ), stringsAsFactors = FALSE ) p <- plot_benchmark_bubble_matrix(bm_df, base_size = 9.5) + ggplot2::theme(legend.box = "vertical") print(p)
Generates publication-ready faceted barplots comparing simulator methods across all individual evaluation metrics belonging to a specified benchmark category. Each metric is presented in its own sub-panel with exact numeric score labels, direction-awareness indicators (indicating whether higher or lower values are optimal), and standardized or original raw score formulation.
plot_category_metric_bars( benchmark_data, category, score_type = c("normalized", "raw"), palette = NULL, ncol = NULL, base_size = 11 )plot_category_metric_bars( benchmark_data, category, score_type = c("normalized", "raw"), palette = NULL, ncol = NULL, base_size = 11 )
benchmark_data |
A benchmark data.frame (e.g. |
category |
Character. The benchmark category to visualize (e.g., |
score_type |
Character. Either |
palette |
Optional named character vector of simulator colors. |
ncol |
Integer. Optional number of columns in facet layout. Defaults to dynamic layout based on metric count. |
base_size |
Numeric. Base font size. Default |
A ggplot object.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 4), Category = "(I) Distributional Properties", Metric = rep(c("KS", "Wasserstein", "MAD", "RMSE"), 4), Value = c( 0.10, 0.16, 0.12, 0.19, 0.15, 0.22, 0.16, 0.25, 0.23, 0.34, 0.26, 0.36, 0.31, 0.44, 0.35, 0.47 ), stringsAsFactors = FALSE ) p <- plot_category_metric_bars( bm_df, category = "(I) Distributional Properties", base_size = 9.5 ) print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 4), Category = "(I) Distributional Properties", Metric = rep(c("KS", "Wasserstein", "MAD", "RMSE"), 4), Value = c( 0.10, 0.16, 0.12, 0.19, 0.15, 0.22, 0.16, 0.25, 0.23, 0.34, 0.26, 0.36, 0.31, 0.44, 0.35, 0.47 ), stringsAsFactors = FALSE ) p <- plot_category_metric_bars( bm_df, category = "(I) Distributional Properties", base_size = 9.5 ) print(p)
Generates publication-ready comparative visualizations of empirical reference and simulated single-cell datasets across UMAP, t-SNE, or PCA coordinate spaces. Supports side-by-side comparison, comprehensive multi-method facet grids, and co-embedded overlays, with customizable color mappings and themes.
plot_dataset_embeddings( embedding_data, reduction = c("umap", "tsne", "pca"), layout = c("facet", "side_by_side", "overlay"), color_by = c("cell_type", "cluster", "library_size", "dataset", "batch"), selected_methods = NULL, pt_size = 0.8, alpha = 0.75, palette = "Set1", title = NULL, base_size = 12 )plot_dataset_embeddings( embedding_data, reduction = c("umap", "tsne", "pca"), layout = c("facet", "side_by_side", "overlay"), color_by = c("cell_type", "cluster", "library_size", "dataset", "batch"), selected_methods = NULL, pt_size = 0.8, alpha = 0.75, palette = "Set1", title = NULL, base_size = 12 )
embedding_data |
A |
reduction |
Character string specifying reduction used: |
layout |
Character string specifying the comparison layout:
|
color_by |
Feature used for coloring cells: |
selected_methods |
Optional character vector of simulator names to display. If |
pt_size |
Numeric point size (default: 0.8). |
alpha |
Numeric transparency in [0, 1] (default: 0.75). |
palette |
Character string specifying discrete color palette from RColorBrewer (default: |
title |
Optional title character string. If |
base_size |
Base font size for ggplot2 rendering (default: 12). |
A ggplot2 object.
data(example_scrna, package = "scSimEval") emb <- compute_dataset_embeddings( reference = example_scrna$ref, simulated = list("Splatter" = example_scrna$sim), reduction = "umap", cell_types = example_scrna$cell_types ) plot_dataset_embeddings(emb, reduction = "umap", layout = "facet")data(example_scrna, package = "scSimEval") emb <- compute_dataset_embeddings( reference = example_scrna$ref, simulated = list("Splatter" = example_scrna$sim), reduction = "umap", cell_types = example_scrna$cell_types ) plot_dataset_embeddings(emb, reduction = "umap", layout = "facet")
Compares empirical reference and simulated datasets across 18 distributional properties: 7 univariate cell-level properties, 7 univariate feature-level properties, and 4 bivariate property pairs, either as empirical & joint density overlays or as quantile-quantile (Q-Q) concordance plots.
plot_distribution_qc( ref_data, sim_data, layout = c("density", "qq", "comprehensive"), properties = NULL, title = "Data properties", ref_name = "Original", sim_name = "Simulation", palette = NULL, cell_types = NULL, base_size = 9 )plot_distribution_qc( ref_data, sim_data, layout = c("density", "qq", "comprehensive"), properties = NULL, title = "Data properties", ref_name = "Original", sim_name = "Simulation", palette = NULL, cell_types = NULL, base_size = 9 )
ref_data |
Numeric count matrix for empirical reference (features x cells). |
sim_data |
Numeric count matrix for simulated data (features x cells), or a named list
of simulated count matrices representing multiple simulators (e.g. |
layout |
Character. Visualization layout: |
properties |
Optional character vector of specific properties or group keywords
( |
title |
Character. Main plot title. Default |
ref_name |
Character. Label for the empirical reference in the legend. Default |
sim_name |
Character. Label for the simulation if a single matrix is provided. Default |
palette |
Optional named character vector of colors. Default uses warm red for reference and classic steel blue for simulation. |
cell_types |
Optional factor or character vector (retained for backward compatibility). |
base_size |
Numeric. Base font size. Default |

A ggplot or patchwork composite object containing the comparative panels.
data(example_scrna, package = "scSimEval") p <- plot_distribution_qc(example_scrna$ref, example_scrna$sim, base_size = 8.5) print(p)data(example_scrna, package = "scSimEval") p <- plot_distribution_qc(example_scrna$ref, example_scrna$sim, base_size = 8.5) print(p)
Produces a 600 DPI horizontal bar matrix ranking single-cell simulators across the 8 canonical evaluation categories and overall composite performance.
plot_evaluation_summary( data, method_classes = NULL, category_colors = NULL, normalize_scores = TRUE, simulators_order = NULL, show_labels = TRUE, title = "Single-Cell Simulator Evaluation Summary", subtitle = "Average fidelity scores across 8 evaluation categories", base_size = 11 ) plot_benchmark_summary_bars( data, method_classes = NULL, category_colors = NULL, normalize_scores = TRUE, simulators_order = NULL, show_labels = TRUE, title = "Single-Cell Simulator Evaluation Summary", subtitle = "Average fidelity scores across 8 evaluation categories", base_size = 11 ) plot_summary_bars( data, method_classes = NULL, category_colors = NULL, normalize_scores = TRUE, simulators_order = NULL, show_labels = TRUE, title = "Single-Cell Simulator Evaluation Summary", subtitle = "Average fidelity scores across 8 evaluation categories", base_size = 11 )plot_evaluation_summary( data, method_classes = NULL, category_colors = NULL, normalize_scores = TRUE, simulators_order = NULL, show_labels = TRUE, title = "Single-Cell Simulator Evaluation Summary", subtitle = "Average fidelity scores across 8 evaluation categories", base_size = 11 ) plot_benchmark_summary_bars( data, method_classes = NULL, category_colors = NULL, normalize_scores = TRUE, simulators_order = NULL, show_labels = TRUE, title = "Single-Cell Simulator Evaluation Summary", subtitle = "Average fidelity scores across 8 evaluation categories", base_size = 11 ) plot_summary_bars( data, method_classes = NULL, category_colors = NULL, normalize_scores = TRUE, simulators_order = NULL, show_labels = TRUE, title = "Single-Cell Simulator Evaluation Summary", subtitle = "Average fidelity scores across 8 evaluation categories", base_size = 11 )
data |
A benchmark summary data frame, a list containing |
method_classes |
Optional named vector mapping method names to class/category labels
(e.g., |
category_colors |
Optional named vector specifying custom colors for category panels and overall score. |
normalize_scores |
Logical indicating whether to normalize scores to [0, 1] (direction-aware where larger is better). Default is |
simulators_order |
Optional vector specifying a custom ordering of simulators. Default is ranking by descending Overall Score. |
show_labels |
Logical indicating whether to display numerical score labels on/beside each bar. Default is |
title |
Character plot title. Default is |
subtitle |
Character plot subtitle. |
base_size |
Numeric base font size (default 11). |

A ggplot object representing the multi-panel evaluation summary.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 4), Metric = rep(c("KS", "Wasserstein", "Zero_Prob_RMSE", "ARI", "CMS", "DE_F1"), 4), Value = c( 0.10, 0.16, 0.07, 0.85, 0.88, 0.82, 0.14, 0.21, 0.11, 0.79, 0.83, 0.77, 0.23, 0.34, 0.17, 0.67, 0.72, 0.66, 0.31, 0.44, 0.24, 0.56, 0.62, 0.55 ), stringsAsFactors = FALSE ) p <- plot_evaluation_summary(bm_df, base_size = 9.5) print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 4), Metric = rep(c("KS", "Wasserstein", "Zero_Prob_RMSE", "ARI", "CMS", "DE_F1"), 4), Value = c( 0.10, 0.16, 0.07, 0.85, 0.88, 0.82, 0.14, 0.21, 0.11, 0.79, 0.83, 0.77, 0.23, 0.34, 0.17, 0.67, 0.72, 0.66, 0.31, 0.44, 0.24, 0.56, 0.62, 0.55 ), stringsAsFactors = FALSE ) p <- plot_evaluation_summary(bm_df, base_size = 9.5) print(p)
Generates a publication-quality barplot comparing simulator methods on a single evaluation metric, with exact score labels, direction awareness, and performance ranking.
plot_individual_metric_bar( benchmark_data, metric, score_type = c("normalized", "raw"), palette = NULL, base_size = 12 )plot_individual_metric_bar( benchmark_data, metric, score_type = c("normalized", "raw"), palette = NULL, base_size = 12 )
benchmark_data |
A benchmark data.frame or named list containing benchmark tables. |
metric |
Character. The name of the metric to plot (e.g. |
score_type |
Character. Either |
palette |
Optional named character vector of simulator colors. |
base_size |
Numeric. Base font size. Default |
A ggplot object.
bm_df <- data.frame( Method = c("scDesign3", "scMultiSim", "MOSim", "Splatter", "SymSim"), Category = "(I) Distributional Properties", Metric = "KS", Value = c(0.10, 0.14, 0.18, 0.23, 0.31), stringsAsFactors = FALSE ) p <- plot_individual_metric_bar(bm_df, metric = "KS", base_size = 10) print(p)bm_df <- data.frame( Method = c("scDesign3", "scMultiSim", "MOSim", "Splatter", "SymSim"), Category = "(I) Distributional Properties", Metric = "KS", Value = c(0.10, 0.14, 0.18, 0.23, 0.31), stringsAsFactors = FALSE ) p <- plot_individual_metric_bar(bm_df, metric = "KS", base_size = 10) print(p)
Generates 600 DPI boxplots with jittered points showing the distribution of evaluation metric scores across simulated single-cell and multiomics datasets. Supports standardized direction-aligned fidelity scores (where higher is universally superior, resolving metric polarity differences across distance and correlation measures) or original unnormalized raw values with optional direction separation or per-metric faceting.
plot_metric_boxplots( benchmark_data, categories = NULL, metrics = NULL, score_type = c("normalized", "raw"), separate_direction = FALSE, facet_by = c("category", "metric"), palette = NULL, ncol = 4, base_size = 11 )plot_metric_boxplots( benchmark_data, categories = NULL, metrics = NULL, score_type = c("normalized", "raw"), separate_direction = FALSE, facet_by = c("category", "metric"), palette = NULL, ncol = 4, base_size = 11 )
benchmark_data |
A data frame (such as |
categories |
Optional character vector of categories to include. Default |
metrics |
Optional character vector of specific metrics to include. Default |
score_type |
Character. Score formulation: |
separate_direction |
Logical. When |
facet_by |
Character. Facet layout: |
palette |
Optional named character vector of simulator colors. |
ncol |
Integer. Number of columns in facet wrap. Default |
base_size |
Numeric. Base font size. Default |

A ggplot object.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(I) Distributional Properties", "(III) Cellular Manifold & Clustering Concordance", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics" ), 4), Metric = rep(c("KS", "Wasserstein", "RMSE", "ARI", "Silhouette_ASW", "CMS"), 4), Value = c( 0.10, 0.16, 0.19, 0.85, 0.81, 0.88, 0.15, 0.22, 0.25, 0.78, 0.75, 0.82, 0.23, 0.34, 0.36, 0.67, 0.64, 0.72, 0.31, 0.44, 0.47, 0.56, 0.54, 0.63 ), stringsAsFactors = FALSE ) p <- plot_metric_boxplots(bm_df, ncol = 3, base_size = 9.5) print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(I) Distributional Properties", "(III) Cellular Manifold & Clustering Concordance", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics" ), 4), Metric = rep(c("KS", "Wasserstein", "RMSE", "ARI", "Silhouette_ASW", "CMS"), 4), Value = c( 0.10, 0.16, 0.19, 0.85, 0.81, 0.88, 0.15, 0.22, 0.25, 0.78, 0.75, 0.82, 0.23, 0.34, 0.36, 0.67, 0.64, 0.72, 0.31, 0.44, 0.47, 0.56, 0.54, 0.63 ), stringsAsFactors = FALSE ) p <- plot_metric_boxplots(bm_df, ncol = 3, base_size = 9.5) print(p)
Produces a 600 DPI comparative heatmap displaying simulators on the x-axis and evaluated biological/computational measures on the y-axis, grouped by the 8 canonical evaluation categories. Displays standardized relative fidelity or original raw values inside every cell, with explicit optimization-direction arrows (up-arrow = higher is better, down-arrow = lower is better) across all 56 curated evaluation measures (14 Distributional, 5 Sparsity, 8 Cellular Manifold, 5 Batch Mixing, 12 Biological Signal DE/DA, 5 Multiomics Integration, 5 Trajectory, and 2 Scalability).
plot_metric_heatmap( benchmark_data, category = NULL, metrics = NULL, scale_fill = c("relative", "raw"), top_n_properties = NULL, facet_by_category = TRUE, cluster_rows = FALSE, cluster_cols = FALSE, base_size = 10, metric_name = NULL )plot_metric_heatmap( benchmark_data, category = NULL, metrics = NULL, scale_fill = c("relative", "raw"), top_n_properties = NULL, facet_by_category = TRUE, cluster_rows = FALSE, cluster_cols = FALSE, base_size = 10, metric_name = NULL )
benchmark_data |
A tidy benchmark summary table or a named list of benchmark tables. |
category |
Optional character vector to filter by canonical evaluation category. Default |
metrics |
Optional character vector of specific metrics to include. Default |
scale_fill |
Character. Cell label & color mode: |
top_n_properties |
Optional integer. If specified, restricts to top N most variable metrics. Default |
facet_by_category |
Logical. Whether to group rows into vertical category banner panels across all 8 categories. Default |
cluster_rows |
Logical. Hierarchically cluster measures along y-axis. Default |
cluster_cols |
Logical. Hierarchically cluster simulators along x-axis. Default |
base_size |
Numeric. Base font size. Default |
metric_name |
Optional legacy alias for |

A ggplot object.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "MOSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 5), Metric = rep(c("KS", "Wasserstein", "r2_discrepancy", "ari", "cms", "rna_de_f1"), 5), Value = c( 0.10, 0.16, 0.07, 0.85, 0.88, 0.82, 0.14, 0.21, 0.11, 0.79, 0.83, 0.77, 0.18, 0.27, 0.13, 0.74, 0.78, 0.72, 0.23, 0.34, 0.17, 0.67, 0.72, 0.66, 0.31, 0.44, 0.24, 0.56, 0.62, 0.55 ), stringsAsFactors = FALSE ) p <- plot_metric_heatmap(bm_df, base_size = 9.5) print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "MOSim", "Splatter", "SymSim"), each = 6), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 5), Metric = rep(c("KS", "Wasserstein", "r2_discrepancy", "ari", "cms", "rna_de_f1"), 5), Value = c( 0.10, 0.16, 0.07, 0.85, 0.88, 0.82, 0.14, 0.21, 0.11, 0.79, 0.83, 0.77, 0.18, 0.27, 0.13, 0.74, 0.78, 0.72, 0.23, 0.34, 0.17, 0.67, 0.72, 0.66, 0.31, 0.44, 0.24, 0.56, 0.62, 0.55 ), stringsAsFactors = FALSE ) p <- plot_metric_heatmap(bm_df, base_size = 9.5) print(p)
Projects all evaluated benchmark metrics (up to 56 metrics across 8 canonical categories) or simulator performances into a 2D MDS space for benchmarking single-cell simulation methods.
plot_metric_mds( benchmark_data, ordination_by = c("simulators", "summaries"), assay_modality = c("auto", "scRNA-seq", "scATAC-seq", "multiomics"), group_by = c("category", "summary_type"), by_category = FALSE, as_list = FALSE, category = NULL, exclude_categories = NULL, metrics = NULL, normalize_scores = TRUE, palette = NULL, title = NULL, base_size = 11, ncol = 2 )plot_metric_mds( benchmark_data, ordination_by = c("simulators", "summaries"), assay_modality = c("auto", "scRNA-seq", "scATAC-seq", "multiomics"), group_by = c("category", "summary_type"), by_category = FALSE, as_list = FALSE, category = NULL, exclude_categories = NULL, metrics = NULL, normalize_scores = TRUE, palette = NULL, title = NULL, base_size = 11, ncol = 2 )
benchmark_data |
Benchmark summary data.frame, matrix, or list. |
ordination_by |
Character. Either |
assay_modality |
Character string specifying the molecular modality:
|
group_by |
Character. Grouping variable for metric points when |
by_category |
Logical. If |
as_list |
Logical. If |
category |
Optional character vector to filter by evaluation category (e.g. |
exclude_categories |
Optional character vector of categories to exclude from the ordination.
Default is |
metrics |
Optional character vector of specific metrics to include. |
normalize_scores |
Logical. If |
palette |
Optional named character vector of colors. For |
title |
Optional plot title. |
base_size |
Numeric. Base font size. Default |
ncol |
Integer. Number of columns when |
When ordination_by = "summaries", each point represents an evaluated metric annotated
with its optimization-direction arrow (up-arrow = higher raw value better, down-arrow = lower raw value better),
colored by canonical category (I-VIII) or biological level ("gene", "peak",
"features", "cell", "global").
If by_category = TRUE, a multi-panel dashboard is produced showing one MDS ordination per
category (automatically skipping categories with fewer than 3 measures).
A ggplot or patchwork object.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim", "MOSim"), each = 8), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 5), Metric = rep(c("KS", "Wasserstein", "RMSE", "r2_discrepancy", "ari", "silhouette_sim", "cms", "rna_de_f1"), 5), Value = c( 0.10, 0.16, 0.22, 0.07, 0.85, 0.74, 0.88, 0.84, 0.18, 0.20, 0.24, 0.15, 0.82, 0.81, 0.76, 0.79, 0.21, 0.35, 0.31, 0.12, 0.64, 0.70, 0.80, 0.61, 0.34, 0.42, 0.48, 0.26, 0.59, 0.52, 0.61, 0.68, 0.15, 0.29, 0.26, 0.19, 0.75, 0.66, 0.70, 0.77 ), stringsAsFactors = FALSE ) p <- plot_metric_mds(bm_df, base_size = 9.5) print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim", "MOSim"), each = 8), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 5), Metric = rep(c("KS", "Wasserstein", "RMSE", "r2_discrepancy", "ari", "silhouette_sim", "cms", "rna_de_f1"), 5), Value = c( 0.10, 0.16, 0.22, 0.07, 0.85, 0.74, 0.88, 0.84, 0.18, 0.20, 0.24, 0.15, 0.82, 0.81, 0.76, 0.79, 0.21, 0.35, 0.31, 0.12, 0.64, 0.70, 0.80, 0.61, 0.34, 0.42, 0.48, 0.26, 0.59, 0.52, 0.61, 0.68, 0.15, 0.29, 0.26, 0.19, 0.75, 0.66, 0.70, 0.77 ), stringsAsFactors = FALSE ) p <- plot_metric_mds(bm_df, base_size = 9.5) print(p)
Generates a dual-panel PCA dashboard for evaluating single-cell simulation benchmark metrics and methods across all 56 curated evaluation measures.
plot_metric_pca( benchmark_data, panel = c("both", "methods", "loadings"), assay_modality = c("auto", "scRNA-seq", "scATAC-seq", "multiomics"), group_by = c("category", "summary_type"), by_category = FALSE, as_list = FALSE, category = NULL, exclude_categories = NULL, metrics = NULL, normalize_scores = TRUE, palette = NULL, top_n_loadings = 14, base_size = 11 )plot_metric_pca( benchmark_data, panel = c("both", "methods", "loadings"), assay_modality = c("auto", "scRNA-seq", "scATAC-seq", "multiomics"), group_by = c("category", "summary_type"), by_category = FALSE, as_list = FALSE, category = NULL, exclude_categories = NULL, metrics = NULL, normalize_scores = TRUE, palette = NULL, top_n_loadings = 14, base_size = 11 )
benchmark_data |
Benchmark summary data.frame, matrix, or list. |
panel |
Character. Which panel(s) to render: |
assay_modality |
Character string specifying the molecular modality:
|
group_by |
Character. Grouping variable for loading vectors in panel b:
|
by_category |
Logical. If |
as_list |
Logical. If |
category |
Optional character vector to filter by evaluation category. |
exclude_categories |
Optional character vector of categories to exclude (default |
metrics |
Optional character vector of specific metrics to include. |
normalize_scores |
Logical. If |
palette |
Optional named character vector of colors for simulators. |
top_n_loadings |
Integer or |
base_size |
Numeric. Base font size. Default |
All metrics present in benchmark_data (up to all 56 curated evaluation metrics across 8 canonical categories)
are direction-normalized before PCA decomposition so higher values uniformly correspond to higher fidelity.
Panel "both" displays:
Panel a (Methods Ordination): Simulators mapped into PC1 vs PC2 coordinates with solid black crosshairs, centroid markers, and white rounded badge labels with colored borders.
Panel b (PC Loadings Vectors): Directional loading vectors (arrows) radiating from
the origin (0, 0) to loading coordinates (w1, w2), colored by canonical category
or summary type and annotated with optimization-direction arrows (up-arrow / down-arrow).
Pass top_n_loadings = NULL or 56 to render all metric loading vectors.
A ggplot or patchwork object representing the ordination figure.
bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim", "MOSim"), each = 8), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 5), Metric = rep(c("KS", "Wasserstein", "RMSE", "r2_discrepancy", "ari", "silhouette_sim", "cms", "rna_de_f1"), 5), Value = c( 0.10, 0.16, 0.22, 0.07, 0.85, 0.74, 0.88, 0.84, 0.18, 0.20, 0.24, 0.15, 0.82, 0.81, 0.76, 0.79, 0.21, 0.35, 0.31, 0.12, 0.64, 0.70, 0.80, 0.61, 0.34, 0.42, 0.48, 0.26, 0.59, 0.52, 0.61, 0.68, 0.15, 0.29, 0.26, 0.19, 0.75, 0.66, 0.70, 0.77 ), stringsAsFactors = FALSE ) p <- plot_metric_pca(bm_df, base_size = 9.5) print(p)bm_df <- data.frame( Method = rep(c("scDesign3", "scMultiSim", "Splatter", "SymSim", "MOSim"), each = 8), Category = rep(c( "(I) Distributional Properties", "(I) Distributional Properties", "(I) Distributional Properties", "(II) Sparsity & Zero-Inflation Dynamics", "(III) Cellular Manifold & Clustering Concordance", "(III) Cellular Manifold & Clustering Concordance", "(IV) Technical Variation & Batch Mixing Dynamics", "(V) Biological Signal & Differential Fidelity" ), 5), Metric = rep(c("KS", "Wasserstein", "RMSE", "r2_discrepancy", "ari", "silhouette_sim", "cms", "rna_de_f1"), 5), Value = c( 0.10, 0.16, 0.22, 0.07, 0.85, 0.74, 0.88, 0.84, 0.18, 0.20, 0.24, 0.15, 0.82, 0.81, 0.76, 0.79, 0.21, 0.35, 0.31, 0.12, 0.64, 0.70, 0.80, 0.61, 0.34, 0.42, 0.48, 0.26, 0.59, 0.52, 0.61, 0.68, 0.15, 0.29, 0.26, 0.19, 0.75, 0.66, 0.70, 0.77 ), stringsAsFactors = FALSE ) p <- plot_metric_pca(bm_df, base_size = 9.5) print(p)
Evaluates computational resource efficiency across single-cell simulators using
core-normalized Category VIII benchmarks: Core-Seconds (;
Lannelongue et al., 2021; Wratten et al., 2021; Grealey et al., 2022) and Peak RAM per Core
(; Holtgrewe et al., 2015; Boisvert et al., 2012; Chen et al., 2022),
alongside resource tradeoff frontiers, cost footprints, and simulation throughput.
plot_scalability_benchmark( benchmark_data, type = c("composite", "runtime", "memory", "tradeoff", "cost", "throughput", "efficiency"), layout = c("4panel", "6panel"), modality = c("total", "rna", "atac"), cell_count = 1000, palette = NULL, base_size = 11, time_unit = c("core_seconds", "core_hours", "seconds", "minutes"), memory_unit = c("MiB/core", "GiB/core", "MB/core", "GB/core", "MiB", "MB") )plot_scalability_benchmark( benchmark_data, type = c("composite", "runtime", "memory", "tradeoff", "cost", "throughput", "efficiency"), layout = c("4panel", "6panel"), modality = c("total", "rna", "atac"), cell_count = 1000, palette = NULL, base_size = 11, time_unit = c("core_seconds", "core_hours", "seconds", "minutes"), memory_unit = c("MiB/core", "GiB/core", "MB/core", "GB/core", "MiB", "MB") )
benchmark_data |
Benchmark summary table or named list containing Category VIII metrics. |
type |
Character. Visualization type: |
layout |
Character. For composite dashboards: |
modality |
Character string specifying the modality layer to benchmark: |
cell_count |
Integer. Number of cells processed in the benchmark, used to calculate
simulation throughput ( |
palette |
Optional named character vector of simulator colors. |
base_size |
Numeric. Base font size. Default |
time_unit |
Character. Display unit for runtime: |
memory_unit |
Character. Display unit for peak RAM per core: |

A ggplot or patchwork object.
Lannelongue, L., et al. (2021). Green Algorithms: Quantifying the carbon footprint of computation. Advanced Science, 8(12), 2100707.
Holtgrewe, M., et al. (2015). Methods for the detection and assembly of novel sequence. Bioinformatics, 31(12), 1904-1912.
Boisvert, S., et al. (2012). Ray Meta: scalable de novo metagenome assembly. Genome Biology, 13(12), R122.
Chen, W., et al. (2022). STEPS 4.0: Fast and memory-efficient simulations. Frontiers in Neuroinformatics, 16, 883742.
data(example_rice_bud, package = "scSimEval") sb <- example_rice_bud$scalability_benchmarks scal_df <- rbind( data.frame( Method = sb$Method, Category = "(VIII) Computational Scalability & Efficiency", Metric = "Core_Seconds", Value = mapply(compute_core_seconds, sb$Runtime_Seconds, sim_cores = sb$Sim_Cores), Sim_Cores = sb$Sim_Cores, stringsAsFactors = FALSE ), data.frame( Method = sb$Method, Category = "(VIII) Computational Scalability & Efficiency", Metric = "Memory_Per_Core_MiB", Value = mapply(compute_memory_per_core, sb$PeakRAM_MiB, sim_cores = sb$Sim_Cores), Sim_Cores = sb$Sim_Cores, stringsAsFactors = FALSE ) ) p <- plot_scalability_benchmark(scal_df, type = "composite", layout = "4panel", base_size = 9.5) print(p)data(example_rice_bud, package = "scSimEval") sb <- example_rice_bud$scalability_benchmarks scal_df <- rbind( data.frame( Method = sb$Method, Category = "(VIII) Computational Scalability & Efficiency", Metric = "Core_Seconds", Value = mapply(compute_core_seconds, sb$Runtime_Seconds, sim_cores = sb$Sim_Cores), Sim_Cores = sb$Sim_Cores, stringsAsFactors = FALSE ), data.frame( Method = sb$Method, Category = "(VIII) Computational Scalability & Efficiency", Metric = "Memory_Per_Core_MiB", Value = mapply(compute_memory_per_core, sb$PeakRAM_MiB, sim_cores = sb$Sim_Cores), Sim_Cores = sb$Sim_Cores, stringsAsFactors = FALSE ) ) p <- plot_scalability_benchmark(scal_df, type = "composite", layout = "4panel", base_size = 9.5) print(p)