Skip to content

Commit

Permalink
Update reader
Browse files Browse the repository at this point in the history
  • Loading branch information
LLehner committed Aug 20, 2023
2 parents ca22756 + 0f3f9d6 commit b7b1866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spatialdata_io/readers/stereoseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def stereoseq(
adata.obs[StereoseqKeys.REGION_KEY] = adata.obs[StereoseqKeys.REGION_KEY].astype("category")
adata.obs[StereoseqKeys.INSTANCE_KEY] = adata.obs.index

#add all leftover columns in cellbin which don't fit .obs or .var to uns
# add all leftover columns in cellbin which don't fit .obs or .var to uns
cellbin_uns = {
"geneID": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_EXP][StereoseqKeys.GENE_ID][:],
"cellExp": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_EXP][StereoseqKeys.COUNT][:],
Expand All @@ -166,7 +166,7 @@ def stereoseq(

adata.uns["cellBin_cell_gene_exon_exp"] = cellbin_uns_df
adata.uns["cellBin_blockIndex"] = cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.BLOCK_INDEX][:]
adata.uns["cellBin_blockSize"] = cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.BLOCK_SIZE][:]
adata.uns["cellBin_blockSize"] = cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.BLOCK_SIZE][:]
adata.uns["cellBin_cellTypeList"] = cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_TYPE_LIST][:]

# add cellbin attrs to uns
Expand Down

0 comments on commit b7b1866

Please sign in to comment.