Skip to content

Commit

Permalink
add layer to anndata when running function stereo_to_anndata
Browse files Browse the repository at this point in the history
  • Loading branch information
tanliwei-coder committed Nov 19, 2024
1 parent dfdbe6f commit 5c48347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stereo/io/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,9 @@ def stereo_to_anndata(
for bno, sn in data.sn.items():
sn_list.append([bno, sn])
adata.uns['sn'] = pd.DataFrame(sn_list, columns=['batch', 'sn'])

for key, value in data.layers.items():
adata.layers[key] = deepcopy(value)

for key in data.tl.key_record.keys():
if data.tl.key_record[key]:
Expand Down

0 comments on commit 5c48347

Please sign in to comment.