mcDETECT 1.0.11__py3-none-any.whl → 1.0.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mcDETECT might be problematic. Click here for more details.

mcDETECT/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.0.11"
1
+ __version__ = "1.0.12"
2
2
  from .model import closest, mcDETECT
mcDETECT/model.py CHANGED
@@ -167,9 +167,7 @@ class mcDETECT:
167
167
  sphere = pd.DataFrame(list(zip(sphere_x, sphere_y, sphere_z, layer_z, sphere_r, sphere_size, sphere_comp, sphere_score)),
168
168
  columns = ["sphere_x", "sphere_y", "sphere_z", "layer_z", "sphere_r", "size", "comp", "in_nucleus"])
169
169
  sphere["gene"] = [j] * sphere.shape[0]
170
- sphere["gene"] = sphere["gene"].astype(str)
171
- sphere["size"] = pd.to_numeric(sphere["size"])
172
- sphere["comp"] = pd.to_numeric(sphere["comp"])
170
+ sphere = sphere.astype({"sphere_x": float, "sphere_y": float, "sphere_z": float, "layer_z": int, "sphere_r": float, "size": float, "comp": float, "in_nucleus": int, "gene": str})
173
171
 
174
172
  # split low- and high-in-nucleus spheres
175
173
  sphere_low = sphere[(sphere["sphere_r"] < self.size_thr) & (sphere["in_nucleus"] < self.in_nucleus_thr[0])]
@@ -347,6 +345,7 @@ class mcDETECT:
347
345
  # construct spatial transcriptome profile
348
346
  adata = anndata.AnnData(X = np.transpose(X), obs = synapse)
349
347
  adata.obs["synapse_id"] = ["syn_{}".format(i) for i in range(synapse.shape[0])]
348
+ adata.obs["synapse_id"] = adata.obs["synapse_id"].astype(str)
350
349
  adata.obs.rename(columns = {"sphere_x": "global_x", "sphere_y": "global_y", "sphere_z": "global_z"}, inplace = True)
351
350
  adata.var["genes"] = genes
352
351
  adata.var_names = genes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mcDETECT
3
- Version: 1.0.11
3
+ Version: 1.0.12
4
4
  Summary: mcDETECT: Decoding 3D Spatial Synaptic Transcriptomes with Subcellular-Resolution Spatial Transcriptomics
5
5
  Home-page: https://github.com/chen-yang-yuan/mcDETECT
6
6
  Author: Chenyang Yuan
@@ -0,0 +1,7 @@
1
+ mcDETECT/__init__.py,sha256=8DC3jJ35kT7b51bP9HtbDsCRc8_vT6nUaXCZBaSM5Tg,59
2
+ mcDETECT/model.py,sha256=pl6BOByor3Czj1UbxQX7_VzBUyNhz1tG_z7IGz2nR80,21462
3
+ mcdetect-1.0.12.dist-info/LICENSE,sha256=uxq-shEWOGTIGVnQLmpElILmfCkuUhFZRAMnZUiKvtg,1070
4
+ mcdetect-1.0.12.dist-info/METADATA,sha256=AJjMolAwV98Px9PioTv0U_iJl0ypTKMFRgSvCQbBkAg,2820
5
+ mcdetect-1.0.12.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
6
+ mcdetect-1.0.12.dist-info/top_level.txt,sha256=WwzBojt5U-T2hZ8llO6XgpM9OFIBkWQQldQKu19O8EY,9
7
+ mcdetect-1.0.12.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- mcDETECT/__init__.py,sha256=tf3P7OfH-LTbgFaCTkG4itCia54VCCsR6yQ0v6mVWEE,59
2
- mcDETECT/model.py,sha256=_xTupdmK0LJrgaFF34Chj3JEl45iKs7T8j-ianfyOcE,21375
3
- mcdetect-1.0.11.dist-info/LICENSE,sha256=uxq-shEWOGTIGVnQLmpElILmfCkuUhFZRAMnZUiKvtg,1070
4
- mcdetect-1.0.11.dist-info/METADATA,sha256=eWBTNSQE9kJACbjBo5zrOM58qotLLkRN1iEC4hBVKe8,2820
5
- mcdetect-1.0.11.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
6
- mcdetect-1.0.11.dist-info/top_level.txt,sha256=WwzBojt5U-T2hZ8llO6XgpM9OFIBkWQQldQKu19O8EY,9
7
- mcdetect-1.0.11.dist-info/RECORD,,