Skip to content

Commit

Permalink
Fix issues with SE/SCE migration (#20).
Browse files Browse the repository at this point in the history
Fix package versions, atleast until all packages are updated
  • Loading branch information
jkanche authored Nov 10, 2023
1 parent b387917 commit 3ed8018
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package_dir =
=src

# Require a min/specific Python version (comma-separated conditions)
# python_requires = >=3.8
python_requires = >=3.8

# Add here dependencies of your project (line-separated), e.g. requests>=2.2,<3.0.
# Version specifiers like >=2.2,<3.0 avoid problems due to API changes in
Expand All @@ -53,7 +53,11 @@ install_requires =
numpy
pandas
scipy
biocpy
biocframe==0.3.20
singlecellexperiment==0.3.3
summarizedexperiment==0.3.7
anndata
mudata

[options.packages.find]
where = src
Expand Down
10 changes: 5 additions & 5 deletions src/rds2py/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ def as_summarized_experiment(

if _cls == "SummarizedExperiment":
return SummarizedExperiment(
assays=robj_asys, rowData=robj_rowdata, colData=robj_coldata
assays=robj_asys, row_data=robj_rowdata, col_data=robj_coldata
)
elif _cls == "SingleCellExperiment":
return SingleCellExperiment(
assays=robj_asys,
rowData=robj_rowdata,
colData=robj_coldata,
alterExps=robj_altExps,
reducedDims=robj_reduced_dims,
row_data=robj_rowdata,
col_data=robj_coldata,
alternative_experiments=robj_altExps,
reduced_dims=robj_reduced_dims,
)
else:
raise TypeError(
Expand Down

0 comments on commit 3ed8018

Please sign in to comment.