Closed Alexis-Varin closed 4 weeks ago
Hi, As described in the paper, the default test for the fateSelectionTest is a classifier test. That means that split the cells into a test and train set, a classifier (by default random forest) is trained, with each cell represented by a vector of lineage weights. We then measure the classifier's accuracy on the test set and compare it with what is expected under the null (random attribution if there is no difference). So the statistics is the accuracy of that classifier. It can vary run to run as both the random forest and the train-test splits are random. Because the null model is a binomial, small variations in the tails lead to large differences in p-value. I would refer you to the discussion of the condiment paper.
We stress that, rather than attaching strong probabilistic interpretations to p-values (which, as in most RNA-Seq applications, would involve a variety of hard-to-verify assumptions and would not necessarily add much value to the analysis), we view the p-values produced by the condiments workflow as useful numerical summaries for guiding the decision to fit a common trajectory or condition-specific trajectories and for exploring trajectories across conditions and identifying genes for further inspection.
I see, thanks. I have many more questions regarding my analysis, but would perhaps close this one and maybe open a new one as this does not relate to fate selection.
Hello, thank you for your package ! I have a problem regarding
fateSelectionTest()
I have run the function with the exact same parameters twice in the same R session one after the other and got completely different results on my sce object with 7 lineages and 2 conditions :
fate = fateSelectionTest(sds, sds$treatment, pairwise = T)
First run
Second run, immediately after, and completing in about 30 minutes just like the first one
I was wondering if I need to set a seed ? But how could the results be so different ? There are up to 4 orders of magnitude differences on the p-value of some pairs (and 2vs6 is the one that interests me the most, and the second one changing the most...)
Also, how do I interpret the results ? What does the statistic represent and the p-value ? How would I need to show the results in a figure (bar plot ? Scatter ?). I am especially interested in knowing if when treated the differentiation pattern change from one prefered lineage in control to another one in treated, I can plot the curveweights vs density as you show in your tutorials but knowing how to represent also the results of
fateSelectionTest()
would help me a lot :)Thanks