Comments (2)
Hi @AlinaKurjan, I think this spectrum looks fine, the range you get for the real part of the top 20 eigenvalues is not unusual. In our initial and terminal states tutorial, the cell number is much smaller (approx. 2500 cells) compared to your dataset, so I would expect your spectrum to be somewhat more "crowded". Keep in mind that the real part has to be between -1 and 1, so the additional eigenvalues from the larger matrix have to go "somewhere".
Your spectrum indicates that 3 or 11 might be good options to test for the number of macrostates. The algorithm would not allow you to compute 2 macrostates, as eigenvalues 2 and 3 are complex conjugates of each other and they want to "stay together"(we describe this more formally in the methods section of the CellRank 1 paper in case you're interested). If you request 2 macrostates, it will automatically compute 3 and give you a warning.
Now, to figure out whether the macrostates you identify with, say n=11 states, are initial, intermediate or terminal, I suggest looking at the coarse-grained transition matrix (see the tutorial I linked above), and using any prior knowledge about the system that you might have. For example, some macrostates might overlap with clusters you have already annotated in your data, and you might know where they reside in the differentiation hierachy. Or you might have experiental time points in your datset, so naturally macrostates with many early-day cells are more likely to represent initial states, etc.
Let me know whether this helps!
from cellrank.
Awesome, thank you for such a detailed reply and it definitely helps! :)
from cellrank.
Related Issues (20)
- A question about cr.pl.gene_trends() of cellrank HOT 17
- A question about g.predict_terminal_states(method="top_n", n_states=6) and g.plot_macrostates(which="terminal") HOT 1
- Saving vk.plot_projection() HOT 3
- petsc4py error when running "compute_fate_probabilities" HOT 4
- RuntimeError: No coarse-grained stationary distribution found HOT 4
- AttributeError: module 'cellrank' has no attribute 'kernels' HOT 8
- Compatibility with newest Mac hardware/software or Python version? HOT 1
- Plotting issue with `cellrank` HOT 1
- pk.plot_random_walks → AttributeError: can't set attribute" HOT 2
- Function not found HOT 1
- How to get differential kinetics HOT 1
- RealTimeKernel.from_moscot(tp) Out of Memory HOT 19
- How to Combine Seurat AnnData and VeloCyto AnnData HOT 2
- Segfault / python free() invalid size error during compute_transition_matrix HOT 3
- Where to find the old tutorials? HOT 2
- A question about cr.pl.circular_projection parameter "normalize_by_mean" HOT 1
- Available GPU support in CellRank 2? HOT 3
- BaseModel.prepare() unexpected behaviour HOT 1
- Compatibility problems with python >=3.10 HOT 2
- Why are my fate probabilities so low in the heatmap? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cellrank.