scparadise.scnoah.pearson_coef_prot

scparadise.scnoah.pearson_coef_prot#

scparadise.scnoah.pearson_coef_prot(adata_prot, adata_pred_prot, protein, protein_pred, ndigits=3, print_res=False)[source]#

Compute Pearson correlation coefficient of predicted protein.

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

  • adata_pred_prot (AnnData) – Annotated data matrix with predicted proteins.

  • protein (str) – Name of the protein in adata_prot.

  • protein_pred (str) – Name of the predicted protein in adata_pred_prot.

  • 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 Pearson correlation coefficient and)