scphylo.tl.ad#
- scphylo.tl.ad(df_grnd, df_sol)[source]#
Ancestor-descendent accuracy.
For each pair of mutations in ground truth tree that are in ancestor-descendant relation (same nodes excluded) we check whether this relationship is preserved in the inferred tree.
This measure was introduced in [B-SCITE].
- 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
Similarity out of one.
- Return type
Examples#
Comparing two trees by Ancestor-Descendent
Comparing two trees by Ancestor-Descendent