scRecover | R Documentation |
This function is used to impute missing values in single-cell RNA-seq (scRNA-seq) data. It takes a non-negative matrix of scRNA-seq raw read counts or a SingleCellExperiment
object as input. So users should map the reads (obtained from sequencing libraries of the samples) to the corresponding genome and count the reads mapped to each gene according to the gene annotation to get the raw read counts matrix in advance.
scRecover(counts, Kcluster = NULL, labels = NULL, outputDir = NULL, depth = 20, SAVER = FALSE, MAGIC = FALSE, UMI = FALSE, hist_raw_counts = NULL, hist_RUG_counts = NULL, parallel = FALSE, BPPARAM = bpparam(), verbose = TRUE)
counts |
A non-negative integer matrix of scRNA-seq raw read counts or a |
Kcluster |
An integer specifying the number of cell subpopulations. This parameter can be determined based on prior knowledge or clustering of raw data. |
labels |
Optional. Only needed when |
outputDir |
The path of the output directory. If not specified, a folder named with prefix 'outDir_scRecover_' under the temporary directory will be used. |
depth |
Relative sequencing depth to be predicted compared with initial sample depth, should between 2-100, default is 20. |
SAVER |
Whether use and improve SAVER in imputation, default is FALSE. |
MAGIC |
Whether use and improve MAGIC in imputation, default is FALSE. |
UMI |
Whether use full UMI data, default is FALSE. If TRUE, |
hist_raw_counts |
A list contains the histogram table of raw read counts for each cell in |
hist_RUG_counts |
A list contains the histogram table of raw UMI-gene counts for each cell in |
parallel |
If FALSE (default), no parallel computation is used; if TRUE, parallel computation using |
BPPARAM |
An optional parameter object passed internally to |
verbose |
Whether to show specific calculation progress, default is TRUE. |
Imputed counts matrices will be saved in the output directory specified by outputDir
.
Zhun Miao.
estDropoutNum
, for estimating dropout gene number in a cell.
countsSampling
, for downsampling the read counts in a cell.
normalization
, for normalization of single-cell RNA-seq data.
scRecoverTest
, a test dataset for scRecover.
# Load test data for scRecover data(scRecoverTest) # Run scRecover with Kcluster specified scRecover(counts = counts, Kcluster = 2) # Or run scRecover with labels specified # scRecover(counts = counts, labels = labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.