Metadata-Version: 2.4
Name: FEAST-py
Version: 1.1.2
Summary: Spatial Transcriptomics Simulator
Author-email: Yiru CHEN <yiru.22@intl.zju.edu.cn>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: <3.12,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: alphashape>=1.3.1
Requires-Dist: anndata<0.13,>=0.10.8
Requires-Dist: joblib>=1.4.2
Requires-Dist: matplotlib<4,>=3.8
Requires-Dist: numpy<2,>=1.24
Requires-Dist: pandas<3,>=2.0.3
Requires-Dist: POT>=0.9.4
Requires-Dist: scanpy<1.12,>=1.10
Requires-Dist: scikit-learn<2,>=1.3
Requires-Dist: scipy<2,>=1.10
Requires-Dist: seaborn>=0.13.2
Requires-Dist: torch<3,>=2.1
Requires-Dist: tqdm>=4.66.4
Requires-Dist: pydot>=4.0.1
Requires-Dist: pyvinecopulib<1.12,>=0.7.3
Requires-Dist: thin-plate-spline>=1.2.0
Provides-Extra: test
Requires-Dist: pytest<10,>=8; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx<9,>=7.2; extra == "docs"
Requires-Dist: sphinx-rtd-theme<4,>=2.0; extra == "docs"
Requires-Dist: nbsphinx<1,>=0.9; extra == "docs"
Requires-Dist: nbsphinx-link<2,>=1.3; extra == "docs"
Provides-Extra: publication
Requires-Dist: build<2,>=1.2; extra == "publication"
Requires-Dist: pytest<10,>=8; extra == "publication"
Requires-Dist: sphinx<9,>=7.2; extra == "publication"
Requires-Dist: sphinx-rtd-theme<4,>=2.0; extra == "publication"
Requires-Dist: nbsphinx<1,>=0.9; extra == "publication"
Requires-Dist: nbsphinx-link<2,>=1.3; extra == "publication"
Dynamic: license-file

# FEAST | controllable statistical generative modeling of spatial transcriptomics data
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/)

**FEAST** simulates spatial transcriptomics counts by modeling each gene's mean, variance and sparsity. Use a measured slice to generate new counts on the same tissue layout, or design a virtual slice from a spatial blueprint. The package also supports alignment, deconvolution and batch-effect benchmarks.

## Documentation

[FEAST documentation](https://maiziezhoulab.github.io/FEAST/) · [Tutorials](https://maiziezhoulab.github.io/FEAST/tutorials.html) · [API reference](https://maiziezhoulab.github.io/FEAST/api.html)

## Installation

FEAST-py 1.1.2 requires Python 3.11. In a Python 3.11 environment, install the published package and check which copy Python imports.

```bash
python -m pip install "FEAST-py==1.1.2"
python -c "from importlib.metadata import version; import FEAST; print(version('FEAST-py'), FEAST.__file__)"
```

For an editable Conda installation, follow the [source installation guide](https://maiziezhoulab.github.io/FEAST/installation.html).

## Generate a slice

```python
import scanpy as sc
from FEAST import Alteration, simulate

# Supply raw counts in X and XY coordinates in obsm["spatial"].
adata = sc.read_h5ad("your_spatial_data.h5ad")
simulated_adata = simulate(adata, seed=2026)

```

## Tutorials

The six notebooks cover single-slice simulation and GraphST clustering, alignment, deconvolution, scVI batch correction, 2D conditional transfer and 3D atlas transfer. The [tutorial guide](https://github.com/maiziezhoulab/FEAST/blob/v1.1.0/tutorial/README.md) lists the input files and environment for each example.

## Article Reproduction

To recreate the manuscript PDFs from a checkout, follow the [figure reproduction guide](figure_reproduce/reproduce_figures/README.md). The repository includes the plotting inputs for Figures 2–7 and S1–S5, plus the Figure 1 schematic. The [study analysis scripts](figure_reproduce/reproduce_code/) use the external study archive for simulations and method fitting.
