SURE-tools 2.1.18__py3-none-any.whl → 2.1.19__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.
- SURE/PerturbFlow.py +4 -4
- {sure_tools-2.1.18.dist-info → sure_tools-2.1.19.dist-info}/METADATA +1 -1
- {sure_tools-2.1.18.dist-info → sure_tools-2.1.19.dist-info}/RECORD +7 -7
- {sure_tools-2.1.18.dist-info → sure_tools-2.1.19.dist-info}/WHEEL +0 -0
- {sure_tools-2.1.18.dist-info → sure_tools-2.1.19.dist-info}/entry_points.txt +0 -0
- {sure_tools-2.1.18.dist-info → sure_tools-2.1.19.dist-info}/licenses/LICENSE +0 -0
- {sure_tools-2.1.18.dist-info → sure_tools-2.1.19.dist-info}/top_level.txt +0 -0
SURE/PerturbFlow.py
CHANGED
|
@@ -663,15 +663,15 @@ class PerturbFlow(nn.Module):
|
|
|
663
663
|
cb = tensor_to_numpy(cb)
|
|
664
664
|
return cb
|
|
665
665
|
|
|
666
|
-
def
|
|
666
|
+
def _get_basal_embedding(self, xs):
|
|
667
667
|
zns, _ = self.encoder_zn(xs)
|
|
668
668
|
return zns
|
|
669
669
|
|
|
670
|
-
def
|
|
670
|
+
def get_basal_embedding(self,
|
|
671
671
|
xs,
|
|
672
672
|
batch_size: int = 1024):
|
|
673
673
|
"""
|
|
674
|
-
Return cells'
|
|
674
|
+
Return cells' basal latent representations
|
|
675
675
|
|
|
676
676
|
Parameters
|
|
677
677
|
----------
|
|
@@ -692,7 +692,7 @@ class PerturbFlow(nn.Module):
|
|
|
692
692
|
Z = []
|
|
693
693
|
with tqdm(total=len(dataloader), desc='', unit='batch') as pbar:
|
|
694
694
|
for X_batch, _ in dataloader:
|
|
695
|
-
zns = self.
|
|
695
|
+
zns = self._get_basal_embedding(X_batch)
|
|
696
696
|
Z.append(tensor_to_numpy(zns))
|
|
697
697
|
pbar.update(1)
|
|
698
698
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
SURE/PerturbFlow.py,sha256=
|
|
1
|
+
SURE/PerturbFlow.py,sha256=9mnIaM9zmFihG5clcPoXyL9nYeKIeuKvb_GHWaKvmGU,50957
|
|
2
2
|
SURE/SURE.py,sha256=6qjf9E9OMBkZQSNnmvornpEa4E203-_rtz5Hs8jNCJA,47472
|
|
3
3
|
SURE/SURE2.py,sha256=8wlnMwb1xuf9QUksNkWdWx5ZWq-xIy9NLx8RdUnE82o,48501
|
|
4
4
|
SURE/__init__.py,sha256=NOJI_K-eCqPgStXXvgl3wIEMp6d8saMTDYLJ7Ga9MqE,293
|
|
@@ -19,9 +19,9 @@ SURE/utils/__init__.py,sha256=Htqv4KqVKcRiaaTBsR-6yZ4LSlbhbzutjNKXGD9-uds,660
|
|
|
19
19
|
SURE/utils/custom_mlp.py,sha256=n0GJj8GKSAqvyokCL_6LugbeedzqLdfBijq24B_I9dA,7113
|
|
20
20
|
SURE/utils/queue.py,sha256=E_5PA5EWcBoGAZj8BkKQnkCK0p4C-4-xcTPqdIXaPXU,1892
|
|
21
21
|
SURE/utils/utils.py,sha256=IUHjDDtYaAYllCWsZyIzqQwaLul6fJRvHRH4vIYcR-c,8462
|
|
22
|
-
sure_tools-2.1.
|
|
23
|
-
sure_tools-2.1.
|
|
24
|
-
sure_tools-2.1.
|
|
25
|
-
sure_tools-2.1.
|
|
26
|
-
sure_tools-2.1.
|
|
27
|
-
sure_tools-2.1.
|
|
22
|
+
sure_tools-2.1.19.dist-info/licenses/LICENSE,sha256=TFHKwmrAViXQbSX5W-NDItkWFjm45HWOeUniDrqmnu0,1065
|
|
23
|
+
sure_tools-2.1.19.dist-info/METADATA,sha256=HeSPFQiQYB3_WzX5MSw9Oe8ek1Foj407SwZNOTiw8vc,2651
|
|
24
|
+
sure_tools-2.1.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
25
|
+
sure_tools-2.1.19.dist-info/entry_points.txt,sha256=-nJI8rVe_qqrR0HmfAODzj-JNfEqCcSsyVh6okSqyHk,83
|
|
26
|
+
sure_tools-2.1.19.dist-info/top_level.txt,sha256=BtFTebdiJeqra4r6mm-uEtwVRFLZ_IjYsQ7OnalrOvY,5
|
|
27
|
+
sure_tools-2.1.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|