Dna.set_labels
Dna.set_labels#
- Dna.set_labels(clusters: Union[Sequence, dict], default_label='Unlabeled')#
Set the labels for the barcodes.
Modifies the id row attribute of the assay.
- Parameters
- clusterslist or dictionary
If a list, then the order of the barcodes should be considered because the labels are set in the same order as the order of barcodes.
- default_labelstr
In case not all barcodes are labeled, then this is the label of the remaining barcodes.