R/PerformanceMetrics.R
tidyUpMetrics.Rd
This function takes as input a SummarizedBenchmark
object, extracts the
estimated performance metrics and reformats them into a long-formated data frame.
tidyUpMetrics(object)
object | A |
---|
A tidy data.frame
data( "sb", package="SummarizedBenchmark" ) sb <- estimateMetricsForAssay( sb, assay="qvalue", evalMetric="rejections", evalFunction=function( query, truth, alpha=0.1 ){ sum( query < alpha ) }, addColData=TRUE ) tidyUpMetrics( sb )#> method label label.1 key value assay performanceMetric alpha #> 1 edgeR edgeR edgeR rejections 836 qvalue rejections 0.1 #> 2 voom voom voom rejections 866 qvalue rejections 0.1 #> 3 DESeq2 DESeq2 DESeq2 rejections 917 qvalue rejections 0.1