mcDETECT 1.0.8__tar.gz → 1.0.9__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mcDETECT
3
- Version: 1.0.8
3
+ Version: 1.0.9
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,2 @@
1
+ __version__ = "1.0.9"
2
+ from .model import mcDETECT
@@ -361,16 +361,16 @@ class mcDETECT:
361
361
  transcripts = self.transcripts[self.transcripts['target'].isin(genes)]
362
362
 
363
363
  # construct bins
364
- x_bins, y_bins = self.construct_grid(grid_len = None)
364
+ x_bins, y_bins = self.construct_grid(grid_len = grid_len)
365
365
 
366
366
  # initialize data
367
367
  X = np.zeros((len(genes), (len(x_bins) - 1) * (len(y_bins) - 1)))
368
368
  global_x, global_y = [], []
369
369
 
370
370
  # coordinates
371
- for i in list(x_bins):
371
+ for i in list(x_bins)[:-1]:
372
372
  center_x = i + 0.5 * grid_len
373
- for j in list(y_bins):
373
+ for j in list(y_bins)[:-1]:
374
374
  center_y = j + 0.5 * grid_len
375
375
  global_x.append(center_x)
376
376
  global_y.append(center_y)
@@ -380,8 +380,8 @@ class mcDETECT:
380
380
  target_gene = transcripts[transcripts['target'] == k]
381
381
  count_gene, _, _ = np.histogram2d(target_gene['global_x'], target_gene['global_y'], bins = [x_bins, y_bins])
382
382
  X[k_idx, :] = count_gene.flatten()
383
- if k_idx % 50 == 0:
384
- print("{} out of {} genes profiled!".format(k_idx + 1, len(genes)))
383
+ if k_idx % 100 == 0:
384
+ print("{} out of {} genes profiled!".format(k_idx, len(genes)))
385
385
 
386
386
  # spot id
387
387
  spot_id = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mcDETECT
3
- Version: 1.0.8
3
+ Version: 1.0.9
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name = "mcDETECT",
5
- version = "1.0.8",
5
+ version = "1.0.9",
6
6
  packages = find_packages(),
7
7
  install_requires = ["anndata", "miniball", "numpy", "pandas", "rtree", "scanpy", "scikit-learn", "scipy", "shapely"],
8
8
  author = "Chenyang Yuan",
@@ -1,2 +0,0 @@
1
- __version__ = "1.0.8"
2
- from .model import mcDETECT
File without changes
File without changes
File without changes
File without changes