Description Usage Arguments Value Examples
2DImpute is an imputation algorithm designed for recovering dropouts in single-cell RNA-seq data by using information from two-dimensional relationships (cells and genes), as described in Zhu et al. 2019.
1 2 3 4 5 6 7 8 9 10 11 |
exprs |
A log-transformed gene expression data matrix, where rows and columns correspond to genes and cells, respectively. |
t |
Threshold (between 0 and 1) for determining similar cells in the step of dropout identification. Default is 0.2. |
genes |
A vector containing gene symbols that will get imputed. Default is NULL, in which case all available genes in the matrix exprs will be imputed. |
k |
Number of neighbors to be used in the k-nearest
neighbor regression in the step of |
ncores |
Number of cores to be used. Default is 1. |
log_input |
Whether the input data matrix is log-transformed. Default is TRUE. |
return_J |
Whether to return the calculated pairwise
Jaccard matrix between cells in the step of |
return_attractors |
Whether to return the co-expressed
gene attractors found by the function of |
verbose |
Whether to show the progress of imputation. Default is TRUE. |
A list the following components:
imputed |
The imputed version of expression data matrix |
attractors |
(optional) Identified co-expressed gene attractor signatures |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(ge_10x_sample)
# Fast demonstration
res <- run_2DImpute(exprs = ge_10x_sample, genes = c('XIST', 'CD3D'), ncores = 2)
imputed_exprs <- res$imputed
# Return identified co-expressed attractor signatures
res <- run_2DImpute(exprs = ge_10x_sample, genes = c('XIST', 'CD3D'), ncores = 2, return_attractors = TRUE)
imputed_exprs <- res$imputed
attractors <- res$attractors
# Full imputation
res <- run_2DImpute(exprs = ge_10x_sample, ncores = 2)
imputed_exprs <- res$imputed
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.