mcDETECT 1.0.7__py3-none-any.whl → 1.0.9__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 +1 -0
- mcDETECT/model.py +5 -5
- {mcdetect-1.0.7.dist-info → mcdetect-1.0.9.dist-info}/METADATA +1 -1
- mcdetect-1.0.9.dist-info/RECORD +7 -0
- mcdetect-1.0.7.dist-info/RECORD +0 -7
- {mcdetect-1.0.7.dist-info → mcdetect-1.0.9.dist-info}/LICENSE +0 -0
- {mcdetect-1.0.7.dist-info → mcdetect-1.0.9.dist-info}/WHEEL +0 -0
- {mcdetect-1.0.7.dist-info → mcdetect-1.0.9.dist-info}/top_level.txt +0 -0
mcDETECT/__init__.py
CHANGED
mcDETECT/model.py
CHANGED
|
@@ -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 =
|
|
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 %
|
|
384
|
-
print("{} out of {} genes profiled!".format(k_idx
|
|
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.
|
|
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,7 @@
|
|
|
1
|
+
mcDETECT/__init__.py,sha256=UWqWQcFd3GZpNzrPhDi09yWjQ0tTDM3QNowIJoncX0s,49
|
|
2
|
+
mcDETECT/model.py,sha256=L9iQyLuvZzXDxL4Zv4xJGo3o2YgbL49UtLXMmVHhxYY,21201
|
|
3
|
+
mcdetect-1.0.9.dist-info/LICENSE,sha256=uxq-shEWOGTIGVnQLmpElILmfCkuUhFZRAMnZUiKvtg,1070
|
|
4
|
+
mcdetect-1.0.9.dist-info/METADATA,sha256=LrZ0PS1uWnrC3xJ2N3w36fJgDdTMQgnzuoKF4j6gpZw,2819
|
|
5
|
+
mcdetect-1.0.9.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
6
|
+
mcdetect-1.0.9.dist-info/top_level.txt,sha256=WwzBojt5U-T2hZ8llO6XgpM9OFIBkWQQldQKu19O8EY,9
|
|
7
|
+
mcdetect-1.0.9.dist-info/RECORD,,
|
mcdetect-1.0.7.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
mcDETECT/__init__.py,sha256=smjxcWMgqIGgbQ47Hx0TRXtiJLHcuXizBk9DTfAZp3s,27
|
|
2
|
-
mcDETECT/model.py,sha256=34shhlCEc8RDb35fsiYqXz3VVzHQNhRcfimvZIf_POw,21190
|
|
3
|
-
mcdetect-1.0.7.dist-info/LICENSE,sha256=uxq-shEWOGTIGVnQLmpElILmfCkuUhFZRAMnZUiKvtg,1070
|
|
4
|
-
mcdetect-1.0.7.dist-info/METADATA,sha256=vegGNyJmoZJWxxIVHgRjB27aEr8xHkPkU6hmuvpwDA8,2819
|
|
5
|
-
mcdetect-1.0.7.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
6
|
-
mcdetect-1.0.7.dist-info/top_level.txt,sha256=WwzBojt5U-T2hZ8llO6XgpM9OFIBkWQQldQKu19O8EY,9
|
|
7
|
-
mcdetect-1.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|