labeled inverse average expression: probability based
iae_prob(expr, features = NULL, label, multi = TRUE, thres = 0)a matrix of inverse average expression score
$$\mathbf{IAE_{i,j}} = log(1+\frac{mean(N_{i,j\in D})}{max(mean(N_{i,j\in \hat D}))+ e^{-8}}*mean(N_{i,j\in D}))$$ where \(N_{i,j\in D}\) is the counts of feature \(i\) in cell \(j\) within class \(D\), and \(\hat D\) is the class except \(D\).
data <- matrix(rpois(100, 2), 10, dimnames = list(1:10))
smartid:::iae_prob(data, label = sample(c("A", "B"), 10, replace = TRUE))
#> B A
#> 1 0.6731064 2.03885626
#> 2 1.0479686 0.85441532
#> 3 1.1260113 1.52605630
#> 4 0.8040479 1.39562568
#> 5 1.0216512 0.55961578
#> 6 1.4377265 1.16498736
#> 7 2.4567358 0.44628710
#> 8 1.8632184 0.05218575
#> 9 1.0348965 0.39348891
#> 10 1.7013754 1.23969088