| CalcCGS | R Documentation |
Calculates gene summary statistics per cluster for the clusters in an sCVdata
object, using the gene expression matrix from the input data object. This is
called by CalcSCV and you shouldn't need to call it on its own.
CalcCGS(sCVd, inD)
## S4 method for signature 'sCVdata'
CalcCGS(sCVd, inD)
sCVd |
An sCVdata object. |
inD |
The input dataset. An object of class |
To help track its progress, this function uses progress bars from
pbapply. To disable these, set
pboptions(type="none"). To re-enable, set
pboptions(type="timer").
The function returns a list of dataframes. Each list element contains
a named list of clusters at that resolution. Each of those list elements
contains a dataframe where each sample is a gene, containing the following
variables: DR is the proportion of cells in the cluster in which
that gene was detected. MDGE is mean normalized gene expression for
that gene in only the cells in which it was detected (see
meanLogX for mean calculation). MGE is the mean
normalized gene expression for that gene in all cells of the cluster (see
meanLogX for mean calculation).
sCVdata: Calculate cluster-wise gene stats for sCVdata
CalcSCV for wrapper function to calculate all
statistics for an sCVdata object, and fx_calcCGS for the
internal function performing the calculations.
## Not run:
ClustGeneStats(your_sCV_obj) <- CalcCGS(sCVd=your_sCV_obj,
inD=your_scRNAseq_data_object)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.