Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -40,11 +40,11 @@ ds = load_dataset("helical-ai/gastrulation_mmusculus",trust_remote_code=True, sp
|
|
40 |
```
|
41 |
observation_columns = [obs for obs in list(ds.features.keys()) if not obs == 'raw_counts']
|
42 |
obs_data = pd.DataFrame(ds.select_columns(observation_columns).data.to_pandas(),columns=observation_columns)
|
43 |
-
lil = lil_matrix((len(ds
|
44 |
-
lil.data = np.array(ds['
|
45 |
-
lil.rows = np.array(ds['
|
46 |
ann_data = ad.AnnData(lil.tocsr(),obs=obs_data)
|
47 |
-
ann_data.var_names = ds
|
48 |
```
|
49 |
|
50 |
### Key metadata
|
|
|
40 |
```
|
41 |
observation_columns = [obs for obs in list(ds.features.keys()) if not obs == 'raw_counts']
|
42 |
obs_data = pd.DataFrame(ds.select_columns(observation_columns).data.to_pandas(),columns=observation_columns)
|
43 |
+
lil = lil_matrix((len(ds),ds[0]['size']))
|
44 |
+
lil.data = np.array(ds['raw_counts'],dtype="object")
|
45 |
+
lil.rows = np.array(ds['rows'],dtype="object")
|
46 |
ann_data = ad.AnnData(lil.tocsr(),obs=obs_data)
|
47 |
+
ann_data.var_names = ds.features['raw_counts'].id.split(",")
|
48 |
```
|
49 |
|
50 |
### Key metadata
|