Description Usage Arguments Examples
View source: R/goodnessOfFit.R
Run goodness of fit on a count matrix. It first downsamples all cells to a common total count. Cells with total count less than this threshold will be discarded
1 2 | goodnessOfFitOnData(countMatrix, dist = c("nb"),
downsampleCount = NULL, downsampleQuantile = 0.1, ncore = 1)
|
countMatrix |
a gene by cell matrix |
dist |
a vector of distributions from "poisson", "nb", "zinb" |
downsampleCount |
the common total count per cell used for downsampling |
downsampleQuantile |
the quantile of the total count per cell used for downsampling. If downsampleCount is set, this will be ignored. If both are set to NULL, then no downsampling is performed |
ncore |
the number of cores to use for parallel running |
1 2 3 4 5 6 7 8 9 | ## Not run:
load(smallData)
index1 = (smallData$groupLabel == 1)
data1 = smallData$count[, index1]
group1 = smallData$groupLabel[index1]
goodnessResult = goodnessOfFitOnData(data1)
head(goodnessResult)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.