Dna.run_lda

Contents

Dna.run_lda#

missionbio.mosaic.dna.Dna.run_lda

Dna.run_lda(layer, attribute, output_label, cycles=1)#

Perform LDA on a row attribute using a layer to type clusters.

The row attribute is dimensionally reduced using UMAP.

Adds output_label to the row attributes.

Parameters:
layerstr / np.array

The layer used for cluster typing. Uses get_attribute() to retrieve the value constrained by row+col.

attributestr / np.ndarray

The row attribute to be used for UMAP. Uses get_attribute() to retrieve the value constrained by row.

output_labelstr

The name of the row attribute where the UMAP output is.

cyclesint

The number of rounds of LDA to perform.

kwargsdictionary

Passed to UMAP.


< Class Dna