--- viewer: true tags: - datasets - polars - lance --- # Dataset Card for SLAF Dataset ## Dataset Description Single-cell data in SLAF (Sparse Lazy Array Format) format. Contains 317 files with total size 0.68 GB. ## Usage This dataset is in [SLAF (Sparse Lazy Array Format)](https://slaf-project.github.io/slaf/) format, which uses the [Lance](https://lance.org/) table format for storage. You can use it with either the `slafdb` library (for SLAF format) or `pylance` library (for direct Lance access). ### Using SLAF (Recommended) ```bash pip install slafdb ``` ```python hf_path = 'hf://datasets/pavan-ramkumar/test_direct_upload.slaf' from slaf import SLAFArray slaf_array = SLAFArray(hf_path) slaf_array.query("SELECT * FROM cells LIMIT 5") ``` ### Using Lance Directly ```bash pip install pylance ``` ```python import lance hf_path = 'hf://datasets/pavan-ramkumar/test_direct_upload.slaf' ds = lance.dataset(f"{hf_path}/cells.lance") ds.sample(10) ```