This release is a pre-release and may not be stable for production use.
GIRAFI
Graph-informed random-forest imputation for single-cell proteomics
The GIRAFI method and research are credited to Huan Zhong and the GIRAFI research collaborators. Existing implementation credits include Ziming Wang and the GIRAFI contributors. Junseo Park maintains the Python package and its distribution.
GIRAFI estimates missing protein abundances using empirical protein associations and an optional curated protein interaction prior. Protein-specific random forests use graph-restricted predictors, and graph polishing updates only missing entries. Measured values are preserved.
The package provides Local and Neighbor variants, validation-based selection for dataset completion, and nested masking for reconstruction evaluation.
Installation
Python 3.11 or later is required. The initial distribution is a release candidate:
python -m pip install "girafi==0.1.0rc1"
girafi --help
Python example
Use a CSV matrix with cells in rows, proteins in columns, and cell IDs in the first column. Empty fields and NaN represent missing values; zero is an observed value. This example assumes linear intensities and explicitly disables the PPI prior:
import pandas as pd
from girafi import GIRAFIConfig, GIRAFIPipeline
X = pd.read_csv("expression.csv", index_col=0)
config = GIRAFIConfig.from_dict({
"workflow": "biology",
"input_scale": "linear",
"graph": {"ppi_weight": 0.0},
})
result = GIRAFIPipeline(config).run(X)
result.save("runs/my-analysis")
For log2-transformed input, set input_scale to log2. To use a PPI prior, provide a table with source, target, and optional weight columns with matching protein identifiers, set graph.ppi_weight explicitly, and pass the table to run(X, ppi=ppi).
Workflows and command line
biologyselects a variant using validation masks and then completes the supplied matrix.nestedselects variants within inner validation masks and evaluates reconstruction on held-out outer entries.
girafi run --config config.yaml --matrix expression.csv --out runs/my-analysis
Configurations accept YAML or JSON. Results include resolved settings, selection records, masks, input hashes, and software versions. The source distribution includes the Methods, Configuration, and Validation guides, synthetic examples, and tests. Repository documentation is available on the GIRAFI package branch, subject to repository access.
Reconstruction scores on artificially withheld observations do not establish accuracy at naturally missing entries. Nested entry masking evaluates reconstruction within the supplied cells, rather than prediction for unseen cells. Validation scores from biology are not independent test estimates.
Citation and license
Zhong, H., Chi, S., et al. Recovering biological structure in sparse single-cell proteomics with GIRAFI. bioRxiv (2026). doi:10.64898/2026.05.18.726081.
Please cite the manuscript and report the GIRAFI software version. Publication through a package maintainer's account does not change the method or manuscript authorship. Original implementation attribution is retained in the packaged girafi/provenance.json. The source distribution includes AUTHORS.md and CITATION.cff.
MIT License. Existing copyright and permission notices are retained in the distribution.
Metadata
Release files for girafi 0.1.0rc1
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 |
|---|---|---|---|---|
| girafi-0.1.0rc1.tar.gz | 1.1 MB | With provenance | Details for girafi-0.1.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| girafi-0.1.0rc1-py3-none-any.whl | Python 3 | none | any | Details for girafi-0.1.0rc1-py3-none-any.whl |
Total release size: 1.1 MB
Release files / girafi-0.1.0rc1.tar.gz
| Download URL | girafi-0.1.0rc1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19f41b3fc56c544c6dbcec26b8c1ae2619f73dce57b21eb5c69a32654a922125
|
|
BLAKE2b-256 checksum How to use checksums |
11fc6a7f8dee04af85e9469264a5e5a7de293148f596807a697935d98904c00a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / girafi-0.1.0rc1-py3-none-any.whl
| Download URL | girafi-0.1.0rc1-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
215f4337f8483f495d085496290e47cc826078dc271730068f2012b6c425cff3
|
|
BLAKE2b-256 checksum How to use checksums |
b9f81b63a68999c4239f70bb60108db85751c897308f5636b67385b7e144f54a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for girafi 0.1.0rc1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for girafi-0.1.0rc1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA 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.