From 35b8b801fcc2a8b2267a0362db97c2846633627b Mon Sep 17 00:00:00 2001 From: Michael Vinyard <47393421+mvinyard@users.noreply.github.com> Date: Wed, 6 Jul 2022 02:21:04 -0400 Subject: [PATCH 1/3] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6e8e807..84edc2f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="ArchR_h5ad", - version="0.0.11", + version="0.0.12", python_requires=">3.6.0", author="Michael E. Vinyard - Harvard University - Massachussetts General Hospital - Broad Institute of MIT and Harvard", author_email="mvinyard@broadinstitute.org", From f9fd9a3b04144dea9f62c8a37c5f8913571bdc06 Mon Sep 17 00:00:00 2001 From: mvinyard Date: Wed, 6 Jul 2022 13:31:10 +0000 Subject: [PATCH 2/3] add matching patch for v0.0.12 --- ArchR_h5ad/_compose_adata/_add_obs_var.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArchR_h5ad/_compose_adata/_add_obs_var.py b/ArchR_h5ad/_compose_adata/_add_obs_var.py index f3aef5f..aac4b89 100644 --- a/ArchR_h5ad/_compose_adata/_add_obs_var.py +++ b/ArchR_h5ad/_compose_adata/_add_obs_var.py @@ -16,7 +16,9 @@ def _add_obs(metadata, str_col_keys=["CellNames"]): metadata_dict = {} for key, value in metadata.items(): - if value.shape[0] == 1: + if value is None: + metadata_dict[key] = value + elif value.shape[0] == 1: metadata_dict[key] = value[:][0].decode("utf-8") else: obs_dict[key] = value[:] From 78c45425cc05d9f2a2372e6de8bade9f76436a6e Mon Sep 17 00:00:00 2001 From: Michael Vinyard <47393421+mvinyard@users.noreply.github.com> Date: Wed, 6 Jul 2022 09:31:57 -0400 Subject: [PATCH 3/3] Update README to v0.0.12 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63cf319..917ecb1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A lightweight python package to parse **[`.arrow`]()** files produced by [**Arch ## Installation -Install the last-released ([**`v0.0.11`**](https://pypi.org/project/ArchR-h5ad/0.0.11/)) distrubution from [PYPI](https://pypi.org/project/ArchR-h5ad/): +Install the last-released ([**`v0.0.12`**](https://pypi.org/project/ArchR-h5ad/0.0.12/)) distrubution from [PYPI](https://pypi.org/project/ArchR-h5ad/): ```BASH pip install ArchR_h5ad