y
|
counts, genes x cells (matrix or torch tensor).
|
mu
|
fitted means, same shape (matrix or torch tensor).
|
phi
|
NB dispersion: scalar or one value per gene.
|
design
|
the design matrix (cells x p); needed for leverage = “exact”, otherwise only its column count is used.
|
p
|
the number of design columns, in place of design.
|
prior
|
the average quasi-dispersion edgeR divides through by; 1 leaves the parameterisation alone.
|
leverage
|
“trace” spreads the p degrees of freedom evenly, which is exact to O(p/n) and is what n >> p designs want; “exact” forms per-observation hat values (O(n p^2) per gene, CPU only) and is what reproduces edgeR on its own small-n designs.
|
moments
|
“table” evaluates the moments on a shared (log mu, log phi) table and interpolates onto every gene and cell (both backends); “grid” uses a per-gene log-mu grid; “cell” evaluates at every cell. The last two are CPU only.
|
ngrid
|
grid points along log mu.
|
nphi
|
maximum grid points along log phi for moments = “table”.
|
table
|
a moments table from qlMomentTable, built once by a caller that scores genes in blocks; when NULL the table is built from this call’s own range of means and dispersions.
|