SynOmicsBench
SynOmicsBench is a unified benchmarking framework for synthetic data generation (SDG) for clinical transcriptomic cancer cohorts.
Achieving a trade-off between biological utility and patient privacy is critical for secure data sharing when applying transcriptomic clinical datasets to artificial intelligence in precision oncology. Here, we present the SynOmicsBench framework. SynOmicsBench combines standardized preprocessing with multidimensional evaluation, prioritizing downstream biological validation alongside statistical fidelity and attack-based privacy assessment. This work provides a reproducible decision-support tool for method selection and promotes biologically informed, privacy-aware adoption of synthetic data in precision oncology.
Installation
pip install synomicsbench
Python 3.12+ is required.
Quick Start
import pandas as pd
from synomicsbench.processing.preprocessing import DataProcessor
from synomicsbench.processing.metadata import MetaData
from synomicsbench.synthesizer.GaussianCopulasynthesizer import GaussianCopulasynthesizer
from synomicsbench.metrics.fidelity.UnivariateSimilarity import UnivariateSimilarity
# 1. Preprocess
data = pd.read_csv("clinical_transcriptomic_data.csv")
data = DataProcessor.remove_unknown_entities(data, id_column="Patient_ID")
data = DataProcessor.remove_duplications(data, axis=0).reset_index(drop=True)
data = DataProcessor.mice_imputation(data, iterations=10, n_estimators=100)
# 2. Metadata
metadata = MetaData.get_metadata(
data=data,
ordinal_features=["Mstage", "Tx_Start_ECOG", "numPriorTherapies"],
threshold_unique_values=10,
)
# 3. Generate synthetic data
synth = GaussianCopulasynthesizer(output_path="./results", metadata=metadata)
synthetic_data = synth.generate(
data=data,
seed=42,
n_samples=data.shape[0],
output_filename="synthetic_data.csv",
)
# 4. Evaluate
evaluator = UnivariateSimilarity(output_dir="./results/evaluation")
score = evaluator.get_univariate_score(
original_data=data,
synthetic_data=synthetic_data,
metadata=metadata,
save=True,
)
print(f"Univariate Fidelity Score: {score:.4f}")
Documentation
Full documentation, API reference, and benchmarking results: https://trinhthechuong.github.io/SynOmicsBench/
Citation
If you use SynOmicsBench in your research, please cite:
Trinh, T. C., Woillard, J. B., Uguzzoni, G., & Battail, C. (2024). A unified benchmark of synthetic data generation for clinical and transcriptomic cancer data. (Manuscript in preparation)
License
MIT License
Metadata
Release files for synomicsbench 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synomicsbench-1.0.3.tar.gz | 287.8 kB | Without provenance | Details for synomicsbench-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synomicsbench-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for synomicsbench-1.0.3-py3-none-any.whl |
Total release size: 391.4 kB
Release files / synomicsbench-1.0.3.tar.gz
| Download URL | synomicsbench-1.0.3.tar.gz |
|---|---|
| Size | 287.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64ac5e2281a025f43a4db8c5b7951ac3bb9393d9bbf07c06cdda340041521044
|
|
BLAKE2b-256 checksum How to use checksums |
a0ab1c7882c49dc75b3e59a0e00fa198e73ad4a8c8494ee620bbed3eb5a6511d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / synomicsbench-1.0.3-py3-none-any.whl
| Download URL | synomicsbench-1.0.3-py3-none-any.whl |
|---|---|
| Size | 103.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd80c2e8c13ba397f2bd08deb1571def392ff3f61fc519c0868430e3892f61a8
|
|
BLAKE2b-256 checksum How to use checksums |
469a8487f8743134928d3a0bac91d3c0b717106f03802cca006e8b875614ad11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for synomicsbench 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.