theislab / cellrank

CellRank: dynamics from multi-view single-cell data
https://cellrank.org
BSD 3-Clause "New" or "Revised" License
347 stars 46 forks source link

Determining number of macrostates #873

Closed mortunco closed 2 years ago

mortunco commented 2 years ago

Hi folks,

Thank you very much for coming up Cellrank but most importantly making the tutorials very clear.

I have a question regarding running cellrank without rna velocity tutorial --> https://cellrank.readthedocs.io/en/stable/beyond_rna_velocity.html#Compute-macrostates

At the part where we compute macrostates, we do schur decomposition and then we visualize it to define our number of macrostates. I shared a screenshot that dashed line plot is on the 5th point. However in the further steps, we pick 3 macro states with the following explanation. CellRank automatically identified an ‘eigengap’ after three eigenvalues (dashed line above), so we’ll compute three macrostates:

I got a little bit confused because (dashed line above),, wanted to ask if this a typo or could you please guide me to pick the best number for my case?

Thanks in advance,

Best regards,

Tunc.

This is a screenshot from cellrank tutorial.

image

This is my case

image

michalk8 commented 2 years ago

I got a little bit confused because (dashed line above),, wanted to ask if this a typo or could you please guide me to pick the best number for my case?

Originally, only 3 macrostates were showing up, but we've changed the underlying kernel (afaik just some defaults) and didn't update the tutorials yet (we track this in https://github.com/theislab/cellrank_notebooks/issues/43).

Regarding picking the number: the eigengap is just a helper heuristic, so I'd try different values. In your case, I'd try 2, 3, 4 and 7. Key think to remember that macrostates can ultimately contain metastable states, which can be not only terminal states, but also initial/intermediate metastable states.

Marius1311 commented 2 years ago

Closing this, will be fixed when we update our tutorials.