Calculate the coefficient of variation (CV) of each row of the result matrix from generate_data_for_ternary(). calculate_cv_by_row() is not used separately but used in estimate_optimized_cutoffs() to obtain the optimized cut-off.

calculate_cv_by_row(cutoff_exp, ...)

Arguments

cutoff_exp

Expression cut-offs used to count the signature gene number

...

Other parameters in generate_data_for_ternary()

Examples


calculate_cv_by_row(
  data_exp_mat = edgeR::cpm(example_dge_data$counts,
                            log = FALSE),
  anno_signature_genes = anno_signature_genes_mouse,
  gene_name_col = "GeneID",
  gene_type_col = "gene_type",
  weight_by_gene_count = FALSE,
  cutoff_exp = 100,
  prior_count = 0
)
#> 10_6_5_11  9_6_5_11   purep53    JMS8-2    JMS8-3    JMS8-4    JMS8-5  JMS9-P7c 
#> 0.8918138 0.7602884 1.4329781 1.4387075 0.6074461 0.8416579 1.4181675 0.7649678 
#>  JMS9-P8c 
#> 0.6108572