Skip to content

Any way to use pre-computed cell embeddings as input for dyn.tl.moments? #421

Answered by Xiaojieqiu
altairwei asked this question in Q&A
Discussion options

You must be logged in to vote

hey @altairwei , you can usedyn.tl.moments(adata, X_data=adata.obsm['X_harmony'])or others other embedding in .obsm to calculate first/second and mix-order moments with dynamo.

Dynamo's preprocessing module is actually very flexible and we have integrated Pearson residual and harmony in our model. Unfortunately, I am busy with job searches these days, but you can check this notebook to get it started: https://github.com/aristoteleo/dynamo-tutorials/blob/master/tutorial_preprocess.ipynb

We will have a tutorial on preprocessing in our readthedocs page sometime next month.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by altairwei
Comment options

You must be logged in to vote
2 replies
@Xiaojieqiu
Comment options

@altairwei
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants