sccoda.model.other_models.scdney_model.analyze

scdney_model.analyze(ground_truth=None, r_home='', r_path='', alpha=0.05)

Analyzes results from R script for SCDC from scdney packege. It is assumed that the effect on the first cell type is significant, all others are not.

Parameters
ground_truth : array, NoneOptional[array] (default: None)

binary array for comparison to ground truth

r_home : strstr (default: '')

path to R installation on your machine, e.g. “C:/Program Files/R/R-4.0.3”

r_path : strstr (default: '')

path to R executable on your machine, e.g. “C:/Program Files/R/R-4.0.3/bin/x64”

alpha : floatfloat (default: 0.05)

p-value cutoff

Return type

Tuple[DataFrame, Tuple[ndarray, ndarray, ndarray, ndarray]]Tuple[DataFrame, Tuple[ndarray, ndarray, ndarray, ndarray]]

Returns

  • summary and classification results

  • Tuple – Tuple(raw summary from R, True positive…)