File size: 969 Bytes
1134b94
c7fb482
26334c5
e4185d2
 
 
1134b94
 
 
d2a08d8
1134b94
 
 
c7fb482
 
d2a08d8
 
c7fb482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d2a08d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
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)
```