-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust ontology levels figure #66
Comments
When I checked whether logging the pvalues and plotting only the sig ones, I don't think it made any difference. But i'll go back and try again manually to make sure. |
Would also be worth plotting against Information Content, which is a metric that approximates ontological terms specificity while normalising for different branch depths. |
results <- MSTExplorer::load_example_results()
results <- HPOExplorer::add_hpo_name(results, hpo = hpo)
results <- HPOExplorer::add_ont_lvl(results) Ontology level vs. Genes, Cell Types (sig), and P-valuesplot_ontology_levels_out <- MSTExplorer::plot_ontology_levels(
results = results,
ctd_list = ctd_list,
x_vars = c("genes","cell types","p"),
nrow = 1 ) Ontology level vs. Genes, Cell Types (sig), and P-values (sig)plot_ontology_levels_out <- MSTExplorer::plot_ontology_levels(
results = results,
ctd_list = ctd_list,
x_vars = c("genes","cell types","p"),
sig_vars= c(FALSE, TRUE, TRUE),
log_vars = c(FALSE, FALSE, FALSE),
nrow = 1) Ontology level vs. Genes, Cell Types (sig), and P-values (logged)When logging p-values, I replace p-values of exactly 0 to avoid resulting in Inf. > .Machine$double.xmin
[1] 2.225074e-308 plot_ontology_levels_out <- MSTExplorer::plot_ontology_levels(
results = results,
ctd_list = ctd_list,
x_vars = c("genes","cell types","p"),
sig_vars= c(FALSE, TRUE, FALSE),
log_vars = c(FALSE, FALSE, TRUE),
nrow = 1) Ontology level vs. Genes, Cell Types (sig), and P-values (sig, logged)plot_ontology_levels_out <- MSTExplorer::plot_ontology_levels(
results = results,
ctd_list = ctd_list,
x_vars = c("genes","cell types","p"),
sig_vars= c(FALSE, TRUE, TRUE),
log_vars = c(FALSE, FALSE, TRUE),
nrow = 1) ConclusionPlotting all non-logged p-values seems to be the most interpretable to me. |
The text was updated successfully, but these errors were encountered: