scparadise.scnoah.kendalltau_coef

scparadise.scnoah.kendalltau_coef#

scparadise.scnoah.kendalltau_coef(adata, adata_pred, feature, feature_pred, ndigits=3, print_res=False)[source]#

Compute Kendall’s tau, a correlation measure of predicted feature. Varies between -1 and +1.

Parameters:
  • adata (AnnData) – Annotated data matrix with features. Test dataset not used for model tuning or training.

  • adata_pred (AnnData) – Annotated data matrix with predicted features.

  • feature (str) – Name of the feature in adata.

  • feature_pred (str) – Name of the predicted feature in adata_pred.

  • ndigits (int (default: 3)) – Round a number to a given precision in decimal digits.

  • print_res (bool (default: False)) – Print results or not.

  • p-value. (Returns dictionary with Kendall’s tau coefficient and)

  • agreement (Values close to 1 indicate strong)

  • disagreement (and values close to -1 indicate strong)