File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments