SURE-tools 2.0.8__tar.gz → 2.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.
- {sure_tools-2.0.8 → sure_tools-2.0.9}/PKG-INFO +1 -1
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/SURE.py +2 -2
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE_tools.egg-info/PKG-INFO +1 -1
- {sure_tools-2.0.8 → sure_tools-2.0.9}/setup.py +1 -1
- {sure_tools-2.0.8 → sure_tools-2.0.9}/LICENSE +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/README.md +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/__init__.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/assembly/__init__.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/assembly/assembly.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/assembly/atlas.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/atac/__init__.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/atac/utils.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/codebook/__init__.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/codebook/codebook.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/flow/__init__.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/flow/plot_quiver.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/utils/__init__.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/utils/custom_mlp.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/utils/queue.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE/utils/utils.py +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE_tools.egg-info/SOURCES.txt +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE_tools.egg-info/dependency_links.txt +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE_tools.egg-info/entry_points.txt +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE_tools.egg-info/requires.txt +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/SURE_tools.egg-info/top_level.txt +0 -0
- {sure_tools-2.0.8 → sure_tools-2.0.9}/setup.cfg +0 -0
|
@@ -816,7 +816,7 @@ class SURE(nn.Module):
|
|
|
816
816
|
def _cell_move(self, xs, factor_idx, perturb):
|
|
817
817
|
zns,_ = self.encoder_zn(xs)
|
|
818
818
|
if type(factor_idx) == str:
|
|
819
|
-
factor_idx = np.where(self.cell_factor_names==factor_idx)
|
|
819
|
+
factor_idx = int(np.where(self.cell_factor_names==factor_idx)[0])
|
|
820
820
|
|
|
821
821
|
if perturb.ndim==2:
|
|
822
822
|
ms = self.cell_factor_effect[factor_idx]([zns, perturb])
|
|
@@ -855,7 +855,7 @@ class SURE(nn.Module):
|
|
|
855
855
|
ps = convert_to_tensor(perturb, device=self.get_device())
|
|
856
856
|
|
|
857
857
|
if type(factor_idx) == str:
|
|
858
|
-
factor_idx = np.where(self.cell_factor_names==factor_idx)
|
|
858
|
+
factor_idx = int(np.where(self.cell_factor_names==factor_idx)[0])
|
|
859
859
|
|
|
860
860
|
ms = self.cell_factor_effect[factor_idx]([zs,ps])
|
|
861
861
|
return tensor_to_numpy(ms)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|