labeled inverse cell frequency: IGM
idf_igm(expr, features = NULL, label, lambda = 7, thres = 0)
a matrix, features in row and cells in column
vector, feature names or indexes to compute
vector, group label of each cell
numeric, hyperparameter for IGM
numeric, cell only counts when expr > threshold, default 0
a vector of inverse gravity moment score for each feature
$$\mathbf{IGM_i} = log(1+\lambda\frac{max(n_{i,j\in D})_{k}}{\sum_{k}^{K}((n_{i,j\in D})_{k}*r_{k})+e^{-8}})$$ where \(\lambda\) is the hyper parameter, \(n_{i,j\in D}\) is the number of cells containing feature \(i\) in class \(D\), \(r_k\) is the rank of \(n_{i,j\in D}\).