Skip to content

Commit cdc5147

Browse files
committed
a
1 parent 95fb9c4 commit cdc5147

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/usage/load_partial.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Load a partial Xenium dataset from Hugging Face
2+
3+
This example uses the **public demo dataset** and the **v2 loader** that supports `base_url`.
4+
5+
```python
6+
from pyXenium.io.partial_xenium_loader import load_anndata_from_partial
7+
8+
BASE = "https://huggingface.co/datasets/hutaobo/pyxenium-gsm9116572/resolve/main"
9+
10+
adata = load_anndata_from_partial(
11+
base_url=BASE,
12+
analysis_name="analysis.zarr.zip",
13+
cells_name="cells.zarr.zip",
14+
transcripts_name="transcripts.zarr.zip",
15+
# Optional: if you uploaded a 10x MEX triplet under BASE/mex/
16+
# mex_dir=BASE + "/mex",
17+
# mex_matrix_name="matrix.mtx.gz",
18+
# mex_features_name="features.tsv.gz",
19+
# mex_barcodes_name="barcodes.tsv.gz",
20+
build_counts_if_missing=True,
21+
)
22+
print(adata)

0 commit comments

Comments
 (0)