HectorRDB / condiments

Trajectory inference across multiple conditions with condiments: differential topology, progression, differentiation, and expression
https://hectorrdb.github.io/condiments/
Other
24 stars 3 forks source link

Discussion: When two trajectories are needed #32

Open MartaSanchezCarbonell opened 4 months ago

MartaSanchezCarbonell commented 4 months ago

Dear Hector, First of all, I would like to congratulate you for your package and for your paper, it is an amazing work. I would like to open a discussion with you about how to interpret some results when the data (having a WT and a KO group) shows enough differences to infer two different trajectories. I started by calculating the imbalance score (see the UMAP) and running the topology test (p-value= 0.0000134).

image

As you can see, it indicated that my data was different enough to calculate two trajectories, specifically in the upper part of the UMAP. In order to continue with my analysis I followed your tutorials, specifically the one for the KRAS dataset (https://hectorrdb.github.io/condimentsPaper/articles/KRAS.html#references-1) as it was showing the most similar situation to my situation. Then, I calculated the trajectories for each condition:

image image

As expected, the major differences are present in the upper part of the UMAP (coloured in a darker colour and which comprises the less differentiated state of this cell type) even showing a different origin. As a consequence, when I plot the distribution of the different age groups that are forming this dataset along pseudotime the part of the UMAP coloured in a lighter colour, which comprises the adult state of this cell type, appears shifted, despite of having a similar ending point.

image

What could I do to compare them? I thought about shifting all the pseudotime values of the WT group so that they have the same final point when it comes to pseudotime values, but I am not sure if this is correct (see example below):

image

Could you advise me on my situation? Thank you very much in advance :)

Marta

HectorRDB commented 4 months ago

Hi,

I think in your case, the issue stems from a lack of resolution in terms of number of clusters. With only two clusters, the actual start point of the trajectory in the black cluster is unclear. If you have more resolution, the test should recommend fitting one trajectory.

As a side note, we now recommend not using UMAP coordinates as an input for slingshot, but to use PCA or scVI latent space.

Let me know if that help or if you have further questions,