cal_scalefactor: cal_scalefactor

View source: R/cal_scalefactor.R

cal_scalefactorR Documentation

cal_scalefactor

Description

Used for generate a scale factor from bias-corrected Z score for TRS scale and normalization.

Usage

cal_scalefactor(z_score, percent_cut = 0.01)

Arguments

z_score

a numeric vector that is original Z scores for individual cells calculated from gchromVAR.

percent_cut

a numeric number (0, 1) indicating what percentage of most enriched cells will be selected to calculate scale factor.

Value

a numeric value

Examples

z_score <- example_results$mono_mat$z_score
sf <- cal_scalefactor(z_score = z_score)

sankaranlab/SCAVENGE documentation built on March 2, 2023, 2:17 a.m.