pavan-ramkumar's picture
Update README.md
e4185d2 verified
metadata
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) format, which uses the Lance 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)

pip install slafdb
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

pip install pylance
import lance
hf_path = 'hf://datasets/pavan-ramkumar/test_direct_upload.slaf'
ds = lance.dataset(f"{hf_path}/cells.lance")
ds.sample(10)