View source: R/plot_differential_outcomes.R
plot_differential_outcomes | R Documentation |
Plot differential outcomes (annotations) of different diseases as they occur in different cell types via particular phenotypes.
plot_differential_outcomes(
results,
filters = NULL,
facet_var = "disease_name",
x_var = "celltype_symptom",
y_var = "severity_score_gpt",
remove_facets = NULL,
run_stats = FALSE,
max_facets = NULL,
q_threshold = list(summary = 0.05, pairwise = NULL),
...
)
results |
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results |
filters |
A named list, where each element in the list is the name of a column in the data, and the vector within each element represents the values to include in the final data. |
facet_var |
Variable to facet by. |
x_var |
Variable to plot on the x-axis. |
y_var |
Variable to plot on the y-axis. |
remove_facets |
A character vector of facets to remove. |
run_stats |
If |
max_facets |
Maximum number of facets to display. |
q_threshold |
A list of thresholds for significance testing. |
... |
Arguments passed on to
|
R object.
results <- add_symptom_results()
#### Multiple phenotypes per disease #####
results <- HPOExplorer::add_gpt_annotations(results)
p1 <- plot_differential_outcomes(results,
facet_var = "disease_name",
y_var = "severity_score_gpt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.