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_doubletsis 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#
  | 
|
Rename all doublets to 'Mixed'  | 
|
Assign labels to cells based on given truth  | 
|
Recolor based on order of names  | 
|
Get the truth for the clones in the assay.  |