R/projection_to_reference_panel.R
projection_to_reference_panel.Rd
Project the pairwise samples to the reference panel to identify separate clusters in them.
projection_to_reference_panel(object, Reference, CorMethod = "pearson")
object | A dmatch class object. |
---|---|
Reference | The reference panel. |
CorMethod | A character string indicating which correlation coefficient (or covariance) is to be computed. Default is "pearson". |
A dmatch class object which have slots storing pairwiseSample.list, batch.id, PCA, and more information. Specifically, Projection slot stores information for the correlation matrix of cells in the samples and cells in the reference panel. The correlation matrix is calculated using the common genes in the samples and the reference. Cells in the samples which have zero expression across those common genes will be filtered out. The new batch.id for the remaining cells in the reference is in batch.id.update.