Skip to content

Commit

Permalink
Fix parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
LLehner committed Aug 20, 2023
1 parent e256b0b commit edca0d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/spatialdata_io/readers/stereoseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

def stereoseq(
path: str | Path,
dataset_id: str | None,
dataset_id: str = None,
imread_kwargs: Mapping[str, Any] = MappingProxyType({}),
image_models_kwargs: Mapping[str, Any] = MappingProxyType({}),
) -> SpatialData:
Expand Down Expand Up @@ -60,7 +60,7 @@ def stereoseq(

if gef_files:
first_gef_file = gef_files[0]
dataset_id = first_gef_file.split(".")[0]
dataset_id = first_gef_file.split('.')[0]

image_patterns = [
re.compile(r".*" + re.escape(StereoseqKeys.MASK_TIF)),
Expand Down Expand Up @@ -155,12 +155,12 @@ def stereoseq(

# 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][:],
"geneID": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_EXP][StereoseqKeys.GENE_ID][:],
"cellExp": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_EXP][StereoseqKeys.COUNT][:],
"cellExpExon": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_EXP_EXON][:],
"cellID": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.GENE_EXP][StereoseqKeys.CELL_ID][:],
"geneExp": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.GENE_EXP][StereoseqKeys.COUNT][:],
"geneExpExon": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.GENE_EXP_EXON][:],
"cellExpExon": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.CELL_EXP_EXON][:],
"cellID": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.GENE_EXP][StereoseqKeys.CELL_ID][:],
"geneExp": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.GENE_EXP][StereoseqKeys.COUNT][:],
"geneExpExon": cellbin_gef[StereoseqKeys.CELL_BIN][StereoseqKeys.GENE_EXP_EXON][:],
}
cellbin_uns_df = pd.DataFrame(cellbin_uns)

Expand Down

0 comments on commit edca0d9

Please sign in to comment.