This repository contains the bioinformatics code for the AIH study.

## Run order
1. Place the prepared discovery, validation and spatial AnnData objects under `data/intermediate/`.
2. Place saved analysis results and figure-specific input tables under `data/Step3/` and the corresponding `data/Figure*/` folders.
3. Run `code/w.step1.*` data-preparation and scoring scripts as required.
4. Run `code/w.step2.*` for the main figures.
5. Run `code/w.step3.*` for the supplementary figures.
6. Figure outputs are written under `figures/`.

## Data
Raw sequencing data are available from the NGDC Genome Sequence Archive Human database (accession HRA015468; https://ngdc.cncb.ac.cn/gsa-human). Obtain the prepared AnnData objects and saved analysis results through the study data-access arrangements, then place them at the paths listed in `inputs.tsv` and `inputs_step3.tsv`. Patient-level intermediate objects are not included in this repository.

## Software
`software_versions.tsv` lists software versions specified in the manuscript. `software_packages.txt` lists additional packages used by the code.
