LikelihoodMethod.get_fraction_match

LikelihoodMethod.get_fraction_match#

missionbio.demultiplex.dna.likelihood.LikelihoodMethod.get_fraction_match

LikelihoodMethod.get_fraction_match(af: DataFrame, dp: DataFrame, labels: ndarray) ndarray#

Get the fraction of matches between the truth and the observed data.

Parameters:
  • af – The allele frequency of the variants which are present in the truth.

  • dp – The depth of the variants which are present in the truth.

  • labels – The labels assigned to the cells. It should have the same length as AF.

Returns:

The fraction of matches and the mask for the singlets

for which the fractions are computed

Return type:

Tuple[np.ndarray, np.ndarray]


< Class LikelihoodMethod