used for generate seed cell index from bias-corrected Z score

seedindex(z_score, percent_cut = 0.05)

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 cells will be selected as seed cells if too many cells fit the P value<0.05 cutoff.

Value

a logical vector indicating seed cells or not.

Examples

z_score <- example_results$mono_mat$z_score
seed_idx <- seedindex(z_score = z_score, percent_cut = 0.1)
#> Cells with enriched P < 0.05: 605
#> Percent: 13.33%
#> The top 10% of cells (N=453) were selected as seed cells