Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.2.0.post1 instead.
Reason given by maintainers: Unpinned dependencies (lightgbm 4.7.0 breaks MICE imputation); use 1.2.0.post1

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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synomicsbench 1.2.0
File Size Uploaded Provenance Actions
synomicsbench-1.2.0.tar.gz 457.6 kB Without provenance Details for synomicsbench-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synomicsbench 1.2.0
File Interpreter ABI Platform Actions
synomicsbench-1.2.0-py3-none-any.whl Python 3 none any Details for synomicsbench-1.2.0-py3-none-any.whl

Total release size: 742.9 kB

Release files / synomicsbench-1.2.0.tar.gz

Download URL synomicsbench-1.2.0.tar.gz
Size 457.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b8a1fd06bcc28913602d25f371d6acc9bace043607b7db56fad0261051fc63b6
BLAKE2b-256 checksum
How to use checksums
4faa1e9aeddfdd106b6b252e5af733edd688c852d40d027cb35786d45fff085c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / synomicsbench-1.2.0-py3-none-any.whl

Download URL synomicsbench-1.2.0-py3-none-any.whl
Size 285.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
329d5c62c9b1863d44fee1fff5003523bfa7118bb1429a2bad9e8e4f4f54e1fd
BLAKE2b-256 checksum
How to use checksums
89e47e66672d73aefb1d3746b454711e34c74af4690bbc598b79d38e28b79045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for synomicsbench 1.2.0

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page