This function is adapted from the function
csSamWrapper
in the
csSAM
package, to integrate the csSAM
algorithm from Shen-Orr et al. (2010) into the
CellMix framework of deconvolution algorithms.
.csSAM(Y, x, data = NULL, nperms = 200, alternative = c("all", "two.sided", "greater", "less"), standardize = TRUE, medianCenter = TRUE, logRm = FALSE, logBase = 2, nonNeg = TRUE, verbose = lverbose())
NMF-class
model containing the cell
proportions in the coefficient matrix -- and a normally
empty basis matrix. The proportions must be ordered in
the same order as the samples in the target matrix.
For csTopTable
, a csSAM fit as return by
ged
.data
.Returns an NMF model object, with the cell specific
differential expression stored in the basis
matrix.
The following details about the fit can be extracted
using basisfit
: csfitA list object
containing a fit (cell-type specific differential
expression) for each sample group. Each element in the
list is an object returned by
csfit
. csSAMfit A list
output of the fdrCsSAM function, containing data from the
FDR computation. These are used by the
csplot
and csTopTable
methods associated with csSAM
fits.
Shen-Orr SS, Tibshirani R, Khatri P, Bodian DL, Staedtler
F, Perry NM, Hastie T, Sarwal MM, Davis MM and Butte AJ
(2010). "Cell type-specific gene expression differences
in complex tissues." _Nature methods_, *7*(4), pp. 287-9.
ISSN 1548-7105,