DnaAssignment

DnaAssignment#

missionbio.mosaic.algorithms.dna_assignment.DnaAssignment

class DnaAssignment(truth: DataFrame, add_doublets: bool = True)#

A wrapper for the missionbio.demultiplex module.

Parameters:
truthpd.DataFrame.

DataFrame with the cell lines in the index and the variants in the columns. The values should be NGT-like {0, 1, 2, 3} or AF-like {0, 50, 100, -50}. When add_doublets is False, the AF values can also contain {25, 75} i.e. the values for mixed cells.

add_doubletsbool

Whether to add doublets to the truth

Functions#

__init__

Parameters:

collapse_labels

Rename all doublets to 'Mixed'

label_cells

Assign labels to cells based on given truth

recolor_labels

Recolor based on order of names

truth

Get the truth for the clones in the assay.

Attributes#