Dna.truth#
missionbio.mosaic.dna.Dna.truth
- Dna.truth(filter_variants: bool = True, drop_identical: bool = False, layer: str = 'NGT_FILTERED', splitby: Union[str, ndarray, DataFrame] = 'label') Truth #
Get the truth for the clones in the assay. It is the mode NGT value for each cluster.
- Parameters:
- filter_variants:
Whether the variants that are not SNPs, correlated, or do not pass variant filters should be filtered from the truth.
- drop_identical:
Whether to drop variants that are identical across all clusters
- layer:
The layer to use for the truth
- splitby: AttributeType
The attribute to split the truth by. By default, it will split by the LABEL attribute.
- Returns:
- Truth:
Contains all the clusters except for “Ambiguous”, “Mixed”, and “Unassigned”.
< Class Dna