progressionTest_multipleSamples | R Documentation |
Test whether or not the pseudotime distribution are identical within lineages between conditions, with samples not being confounded by conditions
progressionTest_multipleSamples(pseudotime, ...)
## S4 method for signature 'matrix'
progressionTest_multipleSamples(
pseudotime,
cellWeights,
conditions,
Samples,
...
)
## S4 method for signature 'SlingshotDataSet'
progressionTest_multipleSamples(pseudotime, conditions, Samples, ...)
## S4 method for signature 'SingleCellExperiment'
progressionTest_multipleSamples(pseudotime, conditions, Samples, ...)
## S4 method for signature 'PseudotimeOrdering'
progressionTest_multipleSamples(pseudotime, conditions, Samples, ...)
pseudotime |
Can be either a |
... |
Other arguments passed to |
cellWeights |
If 'pseudotime' is a matrix of pseudotime values, this represent the cell weights for each lineage. Ignored if 'pseudotime' is not a matrix. |
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 progressionTest
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)
progressionTest_multipleSamples(pseudotime = sds, conditions = condition, Samples = samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.