checkCountDistributionPerGroup: fit different count models

Description Usage Arguments Value Examples

View source: R/checkGeneCountDistribution.R

Description

This function fits the count with different count models including Poisson, negative binomial and zero inflated negative binomial models

Usage

1
2
checkCountDistributionPerGroup(count, groupID, countPerCell,
  covariates = NULL, covariatesString = "1", largestKRemoved = 0)

Arguments

count

the vector of counts

groupID

the group ID character

countPerCell

the total UMI per cell

covariates

the covariates to account for

covariatesString

the covariates string used in the formula

largestKRemoved

remove the numbers correspond to the largest K

Value

a data frame with fitted information

Examples

1
2
3
4
5
6
7
8
## Not run: 
count = rnbinom(100, size = 2, mu = 0.1)
groupID = 1
countPerCell = floor(rnorm(100, 1e4, 3000))
fitResult = checkCountDistributionPerGroup(count, groupID, countPerCell)
print(t(fitResult))

## End(Not run)

chenlab-sj/nbid documentation built on Nov. 4, 2019, 8:50 a.m.