Used for generate a scale factor from bias-corrected Z score for TRS scale and normalization.
cal_scalefactor(z_score, percent_cut = 0.01)
a numeric vector that is original Z scores for individual cells calculated from gchromVAR.
a numeric number (0, 1) indicating what percentage of most enriched cells will be selected to calculate scale factor.
a numeric value
z_score <- example_results$mono_mat$z_score
sf <- cal_scalefactor(z_score = z_score)
#> Scale factor is calculating from most enriched 1% of cells.