Open-source ecosystem for in vitro and microphysiological systems
Save the DateDecember 1-2, 2026Charlotte, North Carolina12th Annual Regenerative Manufacturing Innovation Consortium (RegMIC) Meeting: A Roadmap for Tissue Organoids and Body-on-a-Chip Manufacturing Standards
← Back to Toward Standardization

Toward Standardization

Lung Fidelity Benchmark Software Methodology

Comprehensive methodology and operating manual for the reference-anchored transcriptomic benchmark used by the Toward Standardization tool.

Primary reference groupGSE165192-Human healthy distal lung tissue
Supported modesBuilt-in demo database, simple user dataset mode, and advanced multi-dataset mode
Main metricsPCA centroid distance, Spearman correlation, and Dolan-Moré robustness summaries

Purpose

This methodology describes the complete workflow behind the Lung Fidelity Benchmark software. The software compares healthy, mock, or untreated lung epithelial cell-culture RNA-seq profiles against a fixed healthy human distal lung tissue reference and reports transcriptomic proximity using PCA centroid distance, Spearman correlation, and robustness summaries across PCA preprocessing choices.

1. Executive Summary

The Lung Fidelity Benchmark software is a reference-anchored transcriptomic benchmarking workflow for lung epithelial culture models. It asks a direct biological question: which two-dimensional or three-dimensional lung epithelial culture system is transcriptomically closest to healthy human distal lung tissue?

The bundled software includes a built-in benchmark database assembled from public bulk RNA-seq datasets. The database contains a healthy human distal lung tissue reference and multiple lung epithelial culture platforms, including primary monolayers, immortalized monolayers, ALI-differentiated epithelium, bronchial organoids, and engineered airway organ tissue equivalents.

The software can be run in demo mode using the bundled database alone, or it can accept a new user dataset and compare the user model against the built-in reference and culture-model database. The analysis uses two primary metrics: PCA centroid distance and sample-wise Spearman correlation. A Dolan-Moré performance profile summarizes the stability of PCA-based rankings across 32 background PCA preprocessing choices.

Core principle

The human tissue reference is used as an anchor for scoring, not as a target that user data are forced to resemble. The workflow reports proximity to the reference while preserving the biological identity of each culture model.

2. Built-In Benchmark Database

The built-in database contains public bulk RNA-seq expression matrices from GEO-derived lung epithelial and distal lung tissue datasets. Only healthy, mock, untreated, or baseline samples are included. This restriction reduces confounding from infection, pharmacologic treatment, or other perturbations.

Dataset or file groupCulture systemFormatRole in benchmark
GSE165192-HumanHuman distal lung tissueTissue referenceHealthy donor distal lung tissue samples from the LAC cohort. This group defines the reference centroid and mean expression profile.
GSE147507_NHBENHBE2D primary monolayerMock primary airway epithelial cells used as a 2D primary baseline.
GSE147507_A549_b1 and b2A5492D immortalized monolayerMock A549 samples represented across two source-file batches.
GSE147507_A549-ACE2_b1 and b2A549-ACE22D immortalized monolayerMock A549-ACE2 samples represented across two source-file batches.
GSE147507_Calu3Calu-32D epithelial monolayerMock Calu-3 epithelial samples.
GSE150819_hBEpChBEpC2D primary monolayerPrimary human bronchial epithelial progenitor cells in monolayer culture.
GSE150819_hBOhBO3D bronchial organoidHuman bronchial organoids representing a structured 3D epithelial model.
GSE150819_A549A5492D immortalized monolayerA549 samples from an independent source dataset.
GSE175779_HBECsALI-HBECsALI polarized epitheliumMock ALI-differentiated primary HBEC cultures from aged nonsmoker donors.
GSE207931 / OTE_b1 and b2OTE3D engineered OTEEngineered airway organ tissue equivalents with epithelial and matrix-associated microenvironmental features.

The database is intentionally not exhaustive. It is a reproducible reference panel that demonstrates how a fixed benchmark and consistent preprocessing can be used to score culture systems and compare new models against a declared human tissue reference.

3. Software Operating Modes

The software supports three run modes. The same analysis engine is used in all modes after the input database has been assembled.

ModeUser inputPurpose
Demo modeNo user dataset required.Runs the full analysis using only the built-in benchmark database. This reproduces the reference-anchored comparison.
Simple user modeOne user expression CSV plus basic model information entered interactively.Adds one new culture model to the benchmark and compares it with the built-in database.
Advanced user modeOne or more expression CSV files plus a sample-level or dataset-level metadata file.Adds multiple user groups, batches, or culture systems and processes them together with the built-in database.

4. Required User Data Format

User-provided expression data must be supplied as CSV files. The first column must be named exactly Gene Symbol. Each additional column must represent one RNA-seq sample. Rows represent genes. Values should be raw counts or count-like non-negative expression values.

Required expression matrix format
Gene Symbol,Sample_1,Sample_2,Sample_3
TP53,120,135,141
EPCAM,500,490,510
KRT8,850,870,860

4.1 Simple User Mode Metadata

In simple mode, the user provides one expression CSV and answers prompts for the dataset name, culture-system name, culture format, and optional technical batch label. The software then creates metadata automatically and appends the user dataset to the built-in database.

4.2 Advanced User Mode Metadata

In advanced mode, users can provide multiple datasets or multiple culture-system groups. A metadata file should define the group identity, culture format, source file, and technical batch labels. This mode is intended for users who want to compare several new models or multiple experimental batches in one run.

Metadata fieldRequiredDescription
source_fileYesName of the input CSV file.
analysis_groupYesGroup label used for ranking, such as User_Organoid or User_ALI.
culture_systemYesBiological model name shown in reports.
culture_formatYesCulture category, such as 2D monolayer, ALI, organoid, OTE, or tissue.
technical_batchRecommendedBatch label if user samples come from different technical or manufacturing batches. Use single if no batch exists.
geo_accession_or_study_idOptionalGEO accession or local study identifier.
is_referenceOptionalUsually FALSE for user data. The built-in GSE165192-Human reference should remain the default reference.

5. End-to-End Analysis Workflow

The software workflow has two major branches. The first branch generates the main PCA analysis and PCA centroid distances. The second branch generates Spearman correlation scores. A third background branch computes 32 PCA sensitivity distance methods and the Dolan-Moré robustness summaries.

Workflow overview

Input CSV files → gene-symbol harmonization → shared-gene merge → normalization and transformation → PCA centroid distance → Spearman correlation → robustness summaries → figures, tables, and report.

6. Gene Harmonization and Matrix Assembly

  1. All selected CSV files are read from the built-in database and optional user-data folder.
  2. Each file is checked for the required Gene Symbol column.
  3. Expression values are converted to numeric values, and missing values are set to zero.
  4. Gene symbols are cleaned for the paper-exact PCA path by removing whitespace and converting symbols to uppercase.
  5. Duplicate gene symbols within each file are summed.
  6. All datasets are merged on shared gene symbols.
  7. Genes with zero counts across all samples are removed before count-based correction and normalization.

The shared-gene design ensures that every sample, culture model, and user-added dataset is scored in the same molecular feature space.

7. Main PCA Analysis

The main PCA figures follow the paper-exact pipeline. This branch is used for the primary PCA scatter plot and the PCA centroid-distance figure.

Main PCA preprocessing

Raw counts → common genes → ComBat-seq with batch = source_file → TMM normalization → log2(CPM + 1) → remove zero-variance genes → PCA with centering and gene-wise scaling.

7.1 ComBat-seq Correction

ComBat-seq is applied to raw counts using source_file as the batch variable in the paper-exact PCA branch. This reproduces the manuscript PCA workflow and preserves the discrete count scale before downstream normalization.

7.2 TMM Normalization and logCPM Transformation

After ComBat-seq, the adjusted count matrix is normalized with edgeR TMM normalization. This accounts for differences in library size and RNA composition. Values are then transformed to log2(CPM + 1) with a prior count of 1.

7.3 PCA Scaling

Genes with zero variance across samples are removed. PCA is then calculated using centered and scaled expression values, which is equivalent to gene-wise z-scoring before PCA. This prevents high-abundance genes from dominating the PCA solely because of their expression scale.

8. PCA Centroid Distance

Each sample receives PC1 and PC2 coordinates. For each analysis group, the centroid is calculated as the mean PC1 and PC2 coordinate across that group. The GSE165192-Human centroid is treated as the reference centroid.

For every non-reference group, Euclidean distance from the group centroid to the GSE165192-Human centroid is calculated. A smaller distance indicates stronger global transcriptomic proximity to the human distal lung reference.

9. Spearman Correlation Analysis

Spearman correlation provides a complementary gene-level similarity score. It is calculated on TMM-normalized log2(CPM + 1) values without gene-wise z-scoring.

Spearman preprocessing

Raw counts → shared genes → TMM normalization → log2(CPM + 1) → mean GSE165192-Human profile → sample-wise Spearman correlation.

The mean GSE165192-Human reference profile is calculated across all reference samples. Each culture-model sample is then correlated with this mean profile using Spearman correlation across shared genes. Results are summarized by analysis group using mean, standard deviation, and sample count.

10. Background PCA Sensitivity Analysis

The software also calculates 32 background PCA distance methods. These methods are stored as tables and are used for robustness evaluation, but they are not used to generate the main PCA figures.

DimensionChoices
Expression matrixNo batch mitigation; within-culture b1/b2 centering
TransformTMM log2(CPM + 1); quantile-normalized visual sensitivity
Feature setAll shared genes; top 5000 variable genes
PCA scalingNo gene scaling; gene-wise z-score across all samples; reference-based gene z-score; per-sample profile z-score

10.1 Dolan-Moré Performance Profile

The Dolan-Moré performance profile summarizes which culture model is closest to the human reference across the 32 background PCA distance methods. For each PCA method, the smallest centroid distance is treated as the best distance. Each model receives a performance ratio equal to its distance divided by the best distance for that method.

A performance ratio of 1 means that the model ranked closest to the human reference for that PCA method. A ratio of 1.1 means that the model was within 10 percent of the best model. The Dolan-Moré curve shows the fraction of PCA methods in which each model is within a given performance-ratio threshold.

11. Software Outputs

OutputDescription
comprehensive_reference_fidelity_report.txtText report with data summary, Spearman rankings, PCA distance rankings, and robustness summaries.
figure_1_spearman_similarityBoxplot with sample-wise Spearman correlations against the human reference mean profile.
figure_2_pca_samplesMain paper-exact PCA scatter plot.
figure_3_pca_centroid_distancesMain paper-exact PCA centroid-distance barplot.
figure_4_two_metric_fidelity_mapCombined map of Spearman correlation and PCA centroid distance.
figure_5_dolan_more_profileDolan-Moré robustness profile across 32 PCA methods.
figure_6_pca_win_countsNumber of PCA sensitivity methods where each model ranked closest.
figure_7_pca_rank_heatmapRank heatmap across all 32 PCA sensitivity methods.
all_pca_methods_centroid_distances.csvCentroid distances for all background PCA methods.
dolan_more_performance_ratios.csvPerformance ratios used to draw the Dolan-Moré profile.

12. Interpretation of Results

A culture model is considered more similar to human distal lung tissue when it has a high Spearman correlation, a low PCA centroid distance, and stable performance across background PCA methods. The two main metrics are complementary. PCA centroid distance reflects global transcriptomic structure, while Spearman correlation reflects rank concordance across genes.

13. Limitations and Recommended Reporting Language

The benchmark database is based on public bulk RNA-seq datasets and should be viewed as a reproducible reference panel, not a complete atlas of all lung culture systems. Cross-study comparisons can be affected by platform, library preparation, alignment, and quantification differences. The main PCA branch follows the paper-exact source-file ComBat-seq procedure, while background PCA distances are retained to assess method sensitivity.

Recommended wording

The analysis used a fixed healthy human distal lung reference. Count matrices were harmonized on shared genes. The main PCA used ComBat-seq-adjusted counts with source_file as batch, followed by TMM normalization, log2(CPM + 1) transformation, and gene-wise scaled PCA. Spearman similarity was calculated using TMM-normalized log2(CPM + 1) values without gene-wise z-scoring. Background PCA sensitivity methods and a Dolan-Moré performance profile were used to assess ranking robustness.

14. How the Software Runs

  1. The user launches the interactive Python script or a PowerShell helper script.
  2. The user selects demo mode, simple user mode, or advanced user mode.
  3. The software copies the built-in database and optional user files into the workspace input folder.
  4. The validation script checks input structure, required columns, numeric values, and metadata consistency.
  5. The R preprocessing script performs gene harmonization, count preparation, ComBat-seq, TMM normalization, and paper-exact PCA score generation.
  6. The Python analysis script computes Spearman scores, PCA distances, background PCA sensitivity distances, Dolan-Moré summaries, figures, and reports.
  7. All outputs are written to the workspace results folder.
Example PowerShell run
cd "D:\lung_fidelity_benchmark_software"
python -m pip install -r requirements.txt
Rscript -e "if (!requireNamespace('BiocManager', quietly=TRUE)) install.packages('BiocManager'); BiocManager::install(c('edgeR','sva'), ask=FALSE, update=FALSE)"
python scripts\00_run_interactive.py

15. Package Structure

Folder layout
lung_fidelity_benchmark_software/
  database/expression/
  database/metadata/
  user_data/place_user_dataset_here/
  scripts/
  docs/
  workspace/input/
  workspace/processed/
  workspace/results/
  requirements.txt
  README.txt
  run_interactive.ps1
  run_demo.ps1

16. Validation and Quality Control

17. Glossary

TermMeaning in this software
ReferenceThe healthy human distal lung tissue group, GSE165192-Human.
Analysis groupThe group used for ranking, such as OTE, hBO, ALI-HBECs, or a user model.
Source fileThe original CSV file name. In the paper-exact PCA branch, source_file is used as the ComBat-seq batch variable.
Culture systemThe biological model name.
Culture formatThe experimental format, such as 2D monolayer, ALI epithelium, organoid, OTE, or tissue reference.
PCA centroid distanceEuclidean distance from a culture-system centroid to the human reference centroid in PC1-PC2 space.
Spearman correlationRank-based correlation between each sample and the mean human reference expression profile.
Dolan-Moré profileRobustness plot showing how consistently each model is close to the best model across PCA methods.

Standards and manufacturing partners

MOSSDO and RegMIC

Connect with the organizations advancing consensus standards, validation, and regenerative manufacturing across the PhysioVerse ecosystem.