Closed france-hub closed 1 year ago
Hi @france-hub No pb. In that specific setting for the Fibrosis dataset, we don;t have cells diverging from one initial state into two but cells converging from 2 states into one. Slingshot is not made to handle this by default, so I just reversed the pseudotimes.
Note that this should have no impact on the results, since all functions and tests are agnostics to afine transformation of the pseudotimes.
In your case, you can delete that line indeed.
Thank you very much!
Hello,
Thanks for all of your packages for trajectory inference, they help a lot! I am writing not because of a real issue but for a question related to one of your tutorials.
I have a dataset of T cells and running Slingshot I identify two main lineages. This is the piesce of code I used:
Then I would like to plot the two lineage I obtain onto the same UMAP. To do so I tried to use the tutorial https://hectorrdb.github.io/condimentsPaper/articles/Fibrosis.html and did:
Now, if I plot according to the two lineages:
I get:
And it makes sense. However if I do:
The pseudotime seems to be inverted:
The pseudotime is "correct" and makes sense biologically if I exclude the last line of your code:
pst = max(pst) - pst
Can you help me? I don't understand well what does this line of code do and whether in my case I can safely exclude it.
Thanks and apologize for being long.
Best, Francesco