SURE-tools 4.9.2__tar.gz → 4.9.4__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-4.9.2 → sure_tools-4.9.4}/PKG-INFO +1 -1
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE_nsf.py +4 -4
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE_tools.egg-info/PKG-INFO +1 -1
- {sure_tools-4.9.2 → sure_tools-4.9.4}/setup.py +1 -1
- {sure_tools-4.9.2 → sure_tools-4.9.4}/LICENSE +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/README.md +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SUREMO.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE_nsf_bk.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE_vae.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE_vae2.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE_vae_vanilla.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/SURE_vanilla.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/__init__.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/atac/__init__.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/atac/utils.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/dist/__init__.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/dist/negbinomial.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/graph/__init__.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/graph/graph_utils.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/utils/__init__.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/utils/custom_mlp.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/utils/label.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/utils/queue.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE/utils/utils.py +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE_tools.egg-info/SOURCES.txt +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE_tools.egg-info/dependency_links.txt +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE_tools.egg-info/requires.txt +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/SURE_tools.egg-info/top_level.txt +0 -0
- {sure_tools-4.9.2 → sure_tools-4.9.4}/setup.cfg +0 -0
|
@@ -81,7 +81,7 @@ def mask_matrix(matrix, mask_ratio=0.3, mask_value=0):
|
|
|
81
81
|
return masked_matrix
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
class
|
|
84
|
+
class SURENF(nn.Module):
|
|
85
85
|
"""SUccinct REpresentation of single-omics cells
|
|
86
86
|
|
|
87
87
|
Parameters
|
|
@@ -722,7 +722,7 @@ class SUREVAE(nn.Module):
|
|
|
722
722
|
for Z_batch, _ in dataloader:
|
|
723
723
|
Z_batch = Z_batch.to(self.get_device())
|
|
724
724
|
|
|
725
|
-
dzs = self.latent_decoder(
|
|
725
|
+
dzs = self.latent_decoder(Z_batch).sample((10,)).mean(axis=0)
|
|
726
726
|
|
|
727
727
|
A.append(tensor_to_numpy(dzs))
|
|
728
728
|
pbar.update(1)
|
|
@@ -793,7 +793,7 @@ class SUREVAE(nn.Module):
|
|
|
793
793
|
zfs += self.covariate_effects[i](F_batch_i)#.repeat(1,self.latent_dim)
|
|
794
794
|
shift += covariate_size
|
|
795
795
|
|
|
796
|
-
zps = self.latent_decoder(
|
|
796
|
+
zps = self.latent_decoder(z_basal).sample((10,)).mean(axis=0)
|
|
797
797
|
log_mu = self.decoder_log_mu([zps,zfs])
|
|
798
798
|
if self.loss_func == 'bernoulli':
|
|
799
799
|
counts = dist.Bernoulli(logits=log_mu).to_event(1).mean
|
|
@@ -866,7 +866,7 @@ class SUREVAE(nn.Module):
|
|
|
866
866
|
zfs += self.covariate_effects[i](F_batch_i)#.repeat(1,self.latent_dim)
|
|
867
867
|
shift += covariate_size
|
|
868
868
|
|
|
869
|
-
zps = self.latent_decoder(
|
|
869
|
+
zps = self.latent_decoder(z_basal).sample((10,)).mean(axis=0)
|
|
870
870
|
log_mu = self.decoder_log_mu([zps,zfs])
|
|
871
871
|
|
|
872
872
|
A.append(tensor_to_numpy(log_mu))
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|