update_c {SparseDC}R Documentation

Update Clusters

Description

Updates the cluster membership for each iteration of SparseDC. Runs inside sparse_dc_fun.

Usage

update_c(mu_1, mu_2, pdat1, pdat2, ncluster)

Arguments

mu_1

The center values for each cluster in condition 1.

mu_2

The center values for each cluster in condition 2.

pdat1

The centered data from condition 1, columns should be samples (cells) and rows should be features (genes).

pdat2

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.

ncluster

The number of clusters present in the data.

Value

A list containing the cluster membership for condition 1 and condition 2.


[Package SparseDC version 0.1.17 Index]