Dna.group_clusters

Dna.group_clusters#

missionbio.mosaic.dna.Dna.group_clusters

Dna.group_clusters(attribute: Union[str, ndarray, DataFrame]) None#

Relabel clusters based on expression.

Takes an assay object and reorders the cluster labels so that the clusters are grouped hierarchically. Ordering uses the median cluster value in the layer denoted by the input parameter “layer.”

For example, after implementation, all protein clusters with high CD3 might be numbered next to each other.

Parameters:
attributestr / np.ndarray

The name of the attribute from the assay object used to hierarchically group the clusters. Uses get_attribute() to retrieve the values constrained by row


< Class Dna