scphylo.tl.mltd#

scphylo.tl.mltd(df_grnd, df_sol)[source]#

Multi-labeled tree dissimilarity measure (MLTD).

This measure was introduced in [MLTD].

Parameters
  • df_grnd (pandas.DataFrame) – The first genotype matrix (e.g. ground truth) This matrix must be conflict-free.

  • df_sol (pandas.DataFrame) – The second genotype matrix (e.g. solution/inferred) This matrix must be conflict-free.

Returns

{‘distance’, ‘similarity’, ‘normalized_similarity’}

Return type

dict

Examples#

Comparing two trees by MLTD

Comparing two trees by MLTD