compute.metrics | R Documentation |
Calculate the performance of spatially variable (SV) gene identification on simulated data.
compute.metrics( predictor, truth, predictor.type = c("BF", "p-value"), threshold = NULL )
predictor |
A numeric vector of length n that denotes the p-values or Bayes factors (BFs). |
truth |
A logical vector of length n that represents the ground truth corresponding to the predictor. |
predictor.type |
A character string that specifies whether p-values of Bayes factors (BFs) were provided. |
threshold |
A numeric value that specifies the cutoff for defining SV genes. |
A list object that contains six performance metrics (Sensitivity, Specificity, F1_score, FDR, AUC, and MCC).
Li, X., Wang, X., & Xiao, G. (2019). A comparative study of rank aggregation methods for partial and top ranked lists in genomic applications. Briefings in bioinformatics, 20(1), 178–189. https://doi.org/10.1093/bib/bbx101.
Robin, X., Turck, N., Hainard, A. et al. pROC: an open-source package for R and S+ to analyze and compare ROC curves. BMC Bioinformatics 12, 77 (2011). https://doi.org/10.1186/1471-2105-12-77.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.