Create replicate matrix for scMerge algorithm using un-/semi-/supervised approaches.
scReplicate(
sce_combine,
batch = NULL,
kmeansK = NULL,
exprs = "logcounts",
hvg_exprs = "counts",
marker = NULL,
marker_list = NULL,
replicate_prop = 1,
cell_type = NULL,
cell_type_match = FALSE,
cell_type_inc = NULL,
dist = "cor",
WV = NULL,
WV_marker = NULL,
BPPARAM = SerialParam(),
return_all = FALSE,
BSPARAM = ExactParam(),
plot_igraph = TRUE,
verbose = FALSE
)
A SingleCellExperiment
object contains the batch-combined matrix with batch info in colData
A vector indicates the batch information for each cell in the batch-combined matrix.
A vector indicates the kmeans's K for each batch, length of kmeansK needs to be the same as the number of batch.
A string indicates the assay that are used for batch correction, default is logcounts
A string indicates the assay that are used for highly variable genes identification, default is counts
A vector of markers, which will be used in calculation of mutual nearest cluster. If no markers input, highly variable genes will be used instead
A list of markers for each batch, which will be used in calculation of mutual nearest cluster.
A number indicating the ratio of cells that are included in pseudo-replicates, ranges from 0 to 1. Default to 1.
A vector indicates the cell type information for each cell in the batch-combined matrix. If it is NULL
, pseudo-replicate procedure will be run to identify cell type.
Whether find mutual nearest cluster using cell type information
A vector indicates the indices of the cells that will be used to supervise the pseudo-replicate procedure
The distance metrics that are used in the calculation of the mutual nearest cluster, default is Pearson correlation.
A vector indicates the wanted variation factor other than cell type info, such as cell stages.
A vector indicates the markers of the wanted variation.
A BiocParallelParam
class object from the BiocParallel
package is used. Default is SerialParam().
If FALSE
, only return the replicate matrix.
A BiocSingularParam
class object from the BiocSingular
package is used. Default is ExactParam().
If TRUE
, then during the un/semi-supervised scMErge, igraph plot will be displayed
If TRUE
, then all intermediate steps will be shown. Default to FALSE
.
If return_all
is FALSE
, return a replicate matrix.
If return_sce
is TRUE
, return the followings
replicate matrix
mutual nearest cluster
replicate vector
highly variable genes used in scReplicate
A cell-replicates mapping matrix. Each row correspond to a cell from the input expression matrix, and each column correspond to a cell-cluster/cell-type. An element of the mapping matrix is 1 if the scReplicate algorithm determines that this cell should belong to that cell cluster and 0 otherwise.