luxai commited on
Commit
ba09811
1 Parent(s): a9aea9f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +4 -4
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['train']),ds['train'][0]['size']))
44
- lil.data = np.array(ds['train']['raw_counts'],dtype="object")
45
- lil.rows = np.array(ds['train']['rows'],dtype="object")
46
  ann_data = ad.AnnData(lil.tocsr(),obs=obs_data)
47
- ann_data.var_names = ds['train'].features['raw_counts'].id.split(",")
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