SURE-tools 3.7.1__tar.gz → 3.7.2__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.
Files changed (27) hide show
  1. {sure_tools-3.7.1 → sure_tools-3.7.2}/PKG-INFO +1 -1
  2. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE_vae.py +3 -4
  3. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/PKG-INFO +1 -1
  4. {sure_tools-3.7.1 → sure_tools-3.7.2}/setup.py +1 -1
  5. {sure_tools-3.7.1 → sure_tools-3.7.2}/LICENSE +0 -0
  6. {sure_tools-3.7.1 → sure_tools-3.7.2}/README.md +0 -0
  7. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE.py +0 -0
  8. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SUREMO.py +0 -0
  9. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE_nsf.py +0 -0
  10. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/SURE_vanilla.py +0 -0
  11. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/__init__.py +0 -0
  12. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/atac/__init__.py +0 -0
  13. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/atac/utils.py +0 -0
  14. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/dist/__init__.py +0 -0
  15. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/dist/negbinomial.py +0 -0
  16. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/graph/__init__.py +0 -0
  17. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/graph/graph_utils.py +0 -0
  18. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/__init__.py +0 -0
  19. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/custom_mlp.py +0 -0
  20. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/label.py +0 -0
  21. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/queue.py +0 -0
  22. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE/utils/utils.py +0 -0
  23. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/SOURCES.txt +0 -0
  24. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/dependency_links.txt +0 -0
  25. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/requires.txt +0 -0
  26. {sure_tools-3.7.1 → sure_tools-3.7.2}/SURE_tools.egg-info/top_level.txt +0 -0
  27. {sure_tools-3.7.1 → sure_tools-3.7.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SURE-tools
3
- Version: 3.7.1
3
+ Version: 3.7.2
4
4
  Summary: Succinct Representation of Single Cells
5
5
  Home-page: https://github.com/ZengFLab/SURE
6
6
  Author: Feng Zeng
@@ -269,7 +269,6 @@ class SUREVAE(nn.Module):
269
269
  )
270
270
  )
271
271
 
272
- self.encoder_condition_effects = self.decoder_condition_effects
273
272
  '''self.encoder_condition_effects = nn.ModuleList()
274
273
  for condition_size in self.condition_sizes:
275
274
  self.encoder_condition_effects.append(ZeroBiasMLP3(
@@ -479,7 +478,7 @@ class SUREVAE(nn.Module):
479
478
  shift = 0
480
479
  for i, condition_size in enumerate(self.condition_sizes):
481
480
  cs_i = cs[:,shift:(shift+condition_size)]
482
- l,s = self.encoder_condition_effects[i]([cs_i,zns])
481
+ l,s = self.decoder_condition_effects[i]([cs_i,zns])
483
482
  zcs_i = pyro.sample(f'zcs_{i}', dist.Normal(l, s).to_event(1))
484
483
  shift += condition_size
485
484
 
@@ -627,7 +626,7 @@ class SUREVAE(nn.Module):
627
626
  C_batch = cs[idx].to(self.get_device())
628
627
 
629
628
  z_basal = self._get_cell_embedding(X_batch)
630
- dzs,_ = self.encoder_condition_effects[i]([C_batch,z_basal])
629
+ dzs,_ = self.decoder_condition_effects[i]([C_batch,z_basal])
631
630
 
632
631
  A.append(tensor_to_numpy(dzs))
633
632
  pbar.update(1)
@@ -671,7 +670,7 @@ class SUREVAE(nn.Module):
671
670
  shift = 0
672
671
  for i, condition_size in enumerate(self.condition_sizes):
673
672
  C_batch_i = C_batch[:, shift:(shift+condition_size)]
674
- zcs_i,_ = self.encoder_condition_effects[i]([C_batch_i,z_basal])
673
+ zcs_i,_ = self.decoder_condition_effects[i]([C_batch_i,z_basal])
675
674
  zcs += zcs_i
676
675
  shift += condition_size
677
676
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SURE-tools
3
- Version: 3.7.1
3
+ Version: 3.7.2
4
4
  Summary: Succinct Representation of Single Cells
5
5
  Home-page: https://github.com/ZengFLab/SURE
6
6
  Author: Feng Zeng
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name='SURE-tools',
8
- version='3.7.1',
8
+ version='3.7.2',
9
9
  description='Succinct Representation of Single Cells',
10
10
  long_description=long_description,
11
11
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes