Updates the cluster membership for each iteration of SparseDC. Runs inside
sparse_dc_fun
.
update_c(mu_1, mu_2, pdat1, pdat2, ncluster)
The center values for each cluster in condition 1.
The center values for each cluster in condition 2.
The centered data from condition 1, columns should be samples (cells) and rows should be features (genes).
The centered data from condition 2, columns should be
samples (cells) and rows should be features (genes). The number of genes
should be the same as pdat1
.
as in pdat1.
The number of clusters present in the data.
A list containing the cluster membership for condition 1 and condition 2.