LikelihoodMethod.__init__

LikelihoodMethod.__init__#

missionbio.demultiplex.dna.likelihood.LikelihoodMethod.__init__

LikelihoodMethod.__init__(truth: ~pandas.core.frame.DataFrame, model: ~typing.Union[~typing.Type[~missionbio.demultiplex.dna.model.AFModel], ~typing.Type[~missionbio.demultiplex.dna.model.ADModel]] = <class 'missionbio.demultiplex.dna.model.AFModel'>, het_mismatch_penalty: float = 0.75, nocall_mismatch_penalty: float = 0.15, variant_params: ~typing.Union[bool, ~typing.Dict[str, ~missionbio.demultiplex.dna.model.VariantParams]] = False, **kwargs: ~typing.Any) None#
Parameters:
  • truth – The truth used to label the cells. It must be filtered to all the relevant variants and contain the signature for doublets as well. The only check that is performed is the overlap with the DNA variants when label_cells is called.

  • model – The model to use for calculating the likelihoods.

  • het_mismatch_penalty – The penalty for a mismatch in a HET call. The lower the value the more lineant is the filter towards HET calls being called as WT / HOM due to ADO.

  • nocall_mismatch_penalty – The penalty for a mismatch in a missing call. The lower the value the more lineant is the filter towards cells with missing data. Increasing this value will reduce the miscalling in incomplete cells.

  • variant_params – A dict of VariantParams objects that contain the parameters for each variant. If True, the parameters will be computed during assignment. These parameters do not change for a given set of cells, so passing them can speed up algorithms where assignment is called multiple times. If False, the default ADO and error rate parameters are used for all variants.

  • **kwargs – Passed to GTModel. Model parameters can be changed using these arguments.