fateSelectionTest_multipleSamples | R Documentation |
Test whether or not the cell repartition between lineages is independent of the conditions, with samples not being confounded by conditions
fateSelectionTest_multipleSamples(cellWeights, ...)
## S4 method for signature 'matrix'
fateSelectionTest_multipleSamples(cellWeights, conditions, Samples, ...)
## S4 method for signature 'SlingshotDataSet'
fateSelectionTest_multipleSamples(cellWeights, conditions, Samples, ...)
## S4 method for signature 'SingleCellExperiment'
fateSelectionTest_multipleSamples(cellWeights, conditions, Samples, ...)
## S4 method for signature 'PseudotimeOrdering'
fateSelectionTest_multipleSamples(cellWeights, conditions, Samples, ...)
cellWeights |
Can be either a |
... |
Other arguments passed to |
conditions |
Either the vector of conditions, or a character indicating which column of the metadata contains this vector. |
Samples |
A vector assigning each cell to a sample. Samples must be shared across all conditions. |
The same object has the fateSelectionTest
with one more column per sample.
data('slingshotExample', package = "slingshot")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
condition <- factor(rep(c('A','B'), length.out = nrow(rd)))
condition[110:139] <- 'A'
sds <- slingshot::slingshot(rd, cl)
samples <- sample(1:2, 140, replace = TRUE)
fateSelectionTest_multipleSamples(cellWeights = sds, conditions = condition, Samples = samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.