From 3ed801859ea36d5dad07f426baa709f53e4f0a82 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Fri, 10 Nov 2023 10:56:22 -0800 Subject: [PATCH] Fix issues with SE/SCE migration (#20). Fix package versions, atleast until all packages are updated --- setup.cfg | 8 ++++++-- src/rds2py/interface.py | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/setup.cfg b/setup.cfg index b600ef9..80d5076 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 @@ -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 diff --git a/src/rds2py/interface.py b/src/rds2py/interface.py index 062674c..580b377 100644 --- a/src/rds2py/interface.py +++ b/src/rds2py/interface.py @@ -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(