PASE
PASE estimates molecular associations within individual patients and summarizes them across a single-cell cohort.
Installation
Use Python 3.10 or later in a fresh environment. From this source checkout:
git clone https://github.com/tjw0613-cell/pase-software.git
cd pase-software
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
python -m pip install .
The distribution is named pase-framework, but the Python import is pase.
The unrelated audio package named pase on PyPI uses the same import name;
do not install both in one environment. This source release does not by itself
confirm availability on PyPI.
Five-line example
import pase
adata = pase.datasets.load_gse234933_demo()
res = pase.associate(adata, anchor="LILRB4", target=["MMP14", "MMP9", "SPP1", "APOE"], patient_key="donor", covariates=["log_depth"], cell_mask="myeloid", aggregate="equal", min_cells=30)
print(res.summary())
res.plot_forest()
The bundled GSE234933 subset contains real cells and works without a download.
The four-gene target above illustrates the interface; it is not the current
manuscript's published 15-gene signature. The complete tutorial is
examples/gse234933_quickstart.ipynb.
Install the notebook tools with python -m pip install ".[tutorial]", then run
jupyter lab examples/gse234933_quickstart.ipynb.
Input format
Supply an AnnData object with cells in rows and unique gene names in
adata.var_names. adata.X, or the requested layer, must already contain
transformed expression. For count data, the tutorial uses
log1p(10000 * count / total_counts) with totals calculated before selecting
genes. associate does not normalize raw counts.
| Input | Meaning |
|---|---|
adata.obs["donor"] |
Independent patient ID, with no missing values. Repeated samples from one patient must share an ID. |
adata.obs["log_depth"] |
Numeric covariate; the tutorial uses log1p(total_counts) from the full matrix. |
adata.obs["myeloid"] |
Boolean cell-selection column. Patients with no selected cells remain in the output. |
anchor |
One gene name. |
target |
One gene name, or a list whose within-patient gene z scores are averaged. |
Covariates enter a separate least-squares model for each patient, with an
intercept. Numeric categorical encodings must be supplied explicitly.
Patients absent from the object can be retained using patient_ids.
See the input guide for missing values and eligibility rules.
Outputs and choice of summary
res.patients reports every patient, cell counts, observed correlation,
eligibility, exclusion reasons and, where applicable, weights or shrunken effects.
res.summary() returns one row with the selected method, target, estimate,
interval, P value and status. res.metadata records the analysis settings and
warnings. res.plot_forest() returns a Matplotlib Axes.
aggregate |
What it reports |
|---|---|
"equal" |
Arithmetic mean of eligible patients' observed correlations, with a t interval. Each eligible patient has equal weight. |
"re_hksj" |
REML random-effects mean on the Fisher-z scale, back-transformed for display, with a classical HKSJ interval. It has a different target from the arithmetic mean. |
"eb" |
Individual patient effects shrunk toward the fitted Fisher-z population mean. Conditional intervals exclude uncertainty in fitted population parameters; no cohort P value is returned. |
min_cells=30 is adjustable. min_patients=2 is a technical minimum, not a
validated recommendation for reliable inference. Set a stricter reporting
threshold explicitly, for example min_patients=6. When that threshold is not
met, cohort estimates, intervals and P values are withheld, and the patient
records remain available. A configurable threshold does not establish its
statistical adequacy. See statistical details.
Citation
For this code, cite the authors, PASE software version 1.0.0, and the release URL or version DOI that accompanies the copy used. Machine-readable author information is in CITATION.cff. An earlier analysis archive is available at Zenodo v3; that DOI does not identify this 1.0.0 software release.
Code is distributed under the MIT License. The real-data example retains its source attribution and third-party terms; see THIRD_PARTY_DATA.md.
Metadata
Release files for pase-framework 1.0.0
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 |
|---|---|---|---|---|
| pase_framework-1.0.0.tar.gz | 95.4 kB | With provenance | Details for pase_framework-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pase_framework-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pase_framework-1.0.0-py3-none-any.whl |
Total release size: 166.2 kB
Release files / pase_framework-1.0.0.tar.gz
| Download URL | pase_framework-1.0.0.tar.gz |
|---|---|
| Size | 95.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e448ab66e4d20c0fa6ccc54676cf9d0cbb0244f350d4354d560055d6fd351aa8
|
|
BLAKE2b-256 checksum How to use checksums |
6d75c68834bb0213b130609e7c035ceb6183893a8a1a415d48bf3c4673fb1038
|
| 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 6, 2026.
Transparency logRelease files / pase_framework-1.0.0-py3-none-any.whl
| Download URL | pase_framework-1.0.0-py3-none-any.whl |
|---|---|
| Size | 70.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b78e4de7bf42cffa9cbd5d344adbb430d457f26cbf250df797e6ced38f05156c
|
|
BLAKE2b-256 checksum How to use checksums |
b176291e66a6c1361667506574c22a9abb98f73ba509f50baab4c96440fe1a15
|
| 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 6, 2026.
Transparency logSecurity for pase-framework 1.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pase_framework-1.0.0.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 6, 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.