cap-anndata 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@ class CapAnnData:
68
68
  if raw:
69
69
  # Check if raw exists first
70
70
  if "raw" not in self._file.keys():
71
- logger.debug("Can't read raw.var since raw layer doesn't exist!")
71
+ logger.warning("Can't read raw.var since raw layer doesn't exist!")
72
72
  return
73
73
 
74
74
  if self._raw is None:
@@ -97,6 +97,10 @@ class CapAnnData:
97
97
 
98
98
  for col in cols_to_read:
99
99
  df[col] = read_elem(h5_group[col])
100
+ if df.column_order.dtype != object:
101
+ # empty DataFrame will have column_order as float64
102
+ # which leads to failure in overwrite method
103
+ df.column_order = df.column_order.astype(object)
100
104
  return df
101
105
 
102
106
  @staticmethod
@@ -190,7 +194,6 @@ class CapAnnData:
190
194
  else:
191
195
  # sparse array
192
196
  self._obsm[entity_name] = ad.experimental.sparse_dataset(entity)
193
- logger.debug(f"obsm={self._obsm}")
194
197
 
195
198
  def obsm_keys(self) -> List[str]:
196
199
  return list(self.obsm.keys())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cap_anndata
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Partial read of AnnData files for low-memory operations with large datasets.
5
5
  Home-page: https://github.com/cellannotation/cap-anndata
6
6
  Author: R. Mukhin, A. Isaev
@@ -0,0 +1,9 @@
1
+ cap_anndata/__init__.py,sha256=4Vex9i79uTgNQZo_yiEuNc0KoLXPs5Awv87KWmDbxzM,143
2
+ cap_anndata/backed_df.py,sha256=Ce74WHzXhebYRORx7yjVJD02XCcF5j1SxvmbTIpwzCA,1418
3
+ cap_anndata/backed_uns.py,sha256=Tfxoz3RgcgENf4SvxFOox9w048K2QmBTh1VbAf4yqVI,854
4
+ cap_anndata/cap_anndata.py,sha256=4mpsJjEgrmJGSVaY0cYp_mM6CTquI9NC-oYXbZxUjH4,7815
5
+ cap_anndata-0.1.1.dist-info/LICENSE,sha256=JAV0w7TBl6wQe9iFcCKjAWgpurym0f-Q0B75zm2PrKw,1560
6
+ cap_anndata-0.1.1.dist-info/METADATA,sha256=7xIKTN7cO4jbenuUTXEXJcJUCFJZwwZPN7VvE5Fp7EE,7123
7
+ cap_anndata-0.1.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
8
+ cap_anndata-0.1.1.dist-info/top_level.txt,sha256=GKi_Uk4LUhXwWBfFCTIyJvEoJqFREt_4uH4CWgeLsg4,12
9
+ cap_anndata-0.1.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- cap_anndata/__init__.py,sha256=4Vex9i79uTgNQZo_yiEuNc0KoLXPs5Awv87KWmDbxzM,143
2
- cap_anndata/backed_df.py,sha256=Ce74WHzXhebYRORx7yjVJD02XCcF5j1SxvmbTIpwzCA,1418
3
- cap_anndata/backed_uns.py,sha256=Tfxoz3RgcgENf4SvxFOox9w048K2QmBTh1VbAf4yqVI,854
4
- cap_anndata/cap_anndata.py,sha256=VyIOKU9U7vR65_tB75DsFCb_EkYw7DgiA43cAk-ouOQ,7627
5
- cap_anndata-0.1.0.dist-info/LICENSE,sha256=JAV0w7TBl6wQe9iFcCKjAWgpurym0f-Q0B75zm2PrKw,1560
6
- cap_anndata-0.1.0.dist-info/METADATA,sha256=8iPDHNrN8fUdLd512yWzZdVrwED-IXjUwASFXq3IlEk,7123
7
- cap_anndata-0.1.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
8
- cap_anndata-0.1.0.dist-info/top_level.txt,sha256=GKi_Uk4LUhXwWBfFCTIyJvEoJqFREt_4uH4CWgeLsg4,12
9
- cap_anndata-0.1.0.dist-info/RECORD,,