#' Note: Post filter binom rank is somewhat deprecated as a filtering option as adjusting semantic distance should be better in any cases.
#' @export
add_metrics_to_enrichment_tables <- function(enrichment_tables,
filterMetrics=c('Binom_Fold_Enrichment','Binom_Adjp_BH','Hyper_Adjp_BH','Post_Filter_Binom_Fold_Enrichment_Rank'),
filterGreaterLowerThans=c('greater','lower','lower','lower'),
filterThresholds=c('2','0.05','0.05','30')){
for (sample_label in names(enrichment_tables)){
for (ontology in names(enrichment_tables[[sample_label]])){
enrichment_tables[[sample_label]][[ontology]] <- compute_additional_metrics(enrichment_tables[[sample_label]][[ontology]],
filterMetrics=filterMetrics,
filterGreaterLowerThans=filterGreaterLowerThans,
filterThresholds=filterThresholds)
}
}
attr(enrichment_tables,'filterMetrics') <- filterMetrics
attr(enrichment_tables,'filterGreaterLowerThans') <- filterGreaterLowerThans
attr(enrichment_tables,'filterThresholds') <- filterThresholds
return(enrichment_tables)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.