Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outliers in tricycle embedding #2

Open
lazappi opened this issue Jun 15, 2021 · 4 comments
Open

Outliers in tricycle embedding #2

lazappi opened this issue Jun 15, 2021 · 4 comments

Comments

@lazappi
Copy link

lazappi commented Jun 15, 2021

Hi. I have been trying out tricycle but my results look a bit strange. Instead of getting a nice circular embedding I get a tight ball of most cells with a few outliers:

sce <- tricycle::project_cycle_space(sce, exprs_values = "logcounts", species = "human", gname.type = "SYMBOL")
sce <- tricycle::estimate_cycle_position(sce)
tricycle::plot_emb_circle_scale(sce, dimred = "tricycleEmbedding")

image

The outliers don't seem to be related to anything obvious so wondering if you have any ideas for what is going on here or suggestions for things to look at?

Thanks!

@sjczheng
Copy link
Collaborator

Hi Luke,

Thanks for your interest.
Yes. It seems that in your data, the most of cells are not cycling, which shifts the entire ellipsoid.
The shift is caused by mean-centering genes for projection.
We don't recommend using tricycle on a dataset when the majority of cells are not cycling.
A temporary solution is to change the center in the estimate_cycle_position function.
We will try to optimize the mean-centering step to fix the shifting issue. I will let you know when we update the function.

Other than that, the ellipsoid itself should capture the cell cycle progression.

Best,
Shijie

@lazappi
Copy link
Author

lazappi commented Jun 16, 2021

Ok, thanks for the explanation!

@kasperdanielhansen
Copy link
Collaborator

kasperdanielhansen commented Jun 16, 2021 via email

@lazappi
Copy link
Author

lazappi commented Jun 17, 2021

It probably makes sense in this case that most cells aren't cycling. I hadn't thought about that before but I can see how it could affect the projection. Cell cycle isn't the main thing of interest here, just looking for some kind of indication of cycling activity to check later on in the analysis.

Happy to test out things if you come up with a way of automating the origin shift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants