inverse cell frequency using standard deviation (SD)
idf_sd(expr, features = NULL, log = FALSE, thres = 0)
a matrix, features in row and cells in column
vector, feature names or indexes to compute
logical, if to do log-transformation
numeric, cell only counts when expr > threshold, default 0
a vector of inverse cell frequency score for each feature
$$\mathbf{IDF_i} = log(1+sd(tf_{i})*\frac{n}{n_i+1})$$
where \(tf_i\) is the term frequency of feature \(i\), see details in
tf()
, \(n\) is the total number of cells and \(n_i\) is the number of
cells containing feature \(i\).