Skip to content

Commit

Permalink
rename argments
Browse files Browse the repository at this point in the history
  • Loading branch information
kojikoji committed Nov 11, 2021
1 parent 12e4807 commit a20dece
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = vicdyf
version=0.0.6
version=0.0.8
author = Kojima Yasuhiro
author_email = [email protected]
description = Estimate cell state dynamics with fluctuation
Expand Down
2 changes: 1 addition & 1 deletion src/vicdyf/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(
super(VicDyf, self).__init__()
self.enc_z = Encoder(num_enc_z_layers, x_dim, enc_z_h_dim, z_dim)
self.enc_d = Encoder(num_enc_d_layers, z_dim, enc_d_h_dim, z_dim)
self.dec_z = Decoder(num_enc_z_layers, z_dim, dec_z_h_dim, x_dim)
self.dec_z = Decoder(num_dec_z_layers, z_dim, dec_z_h_dim, x_dim)
self.dt = 1
self.gamma_mean = 0.05
self.d_coeff = 0.01
Expand Down
5 changes: 2 additions & 3 deletions tutorial/application_on_pancreas.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
raw_adata = scv.datasets.pancreas()
adata.layers['spliced'] = raw_adata[:, adata.var_names].layers['spliced']
adata.layers['unspliced'] = raw_adata[:, adata.var_names].layers['unspliced']
adata = vicdyf.workflow.estimate_dynamics(adata)#, first_epoch=10, second_epoch=10)
adata = vicdyf.utils.change_visualization(adata, n_neighbors=100)
adata = vicdyf.utils.change_visualization(adata, embeddings='X_vicdyf_umap')
adata = vicdyf.workflow.estimate_dynamics(adata)
adata = vicdyf.utils.change_visualization(adata, n_neighbors=30)
scv.pl.velocity_embedding_grid(adata,X=adata.obsm['X_vicdyf_umap'], V=adata.obsm['X_vicdyf_mdumap'], color='vicdyf_fluctuation', show=False, basis='X_vicdyf_umap', density=0.3)
plt.savefig('tutorial/pancreas_flow.png')

0 comments on commit a20dece

Please sign in to comment.