View source: R/plot_celltype_severity.R
plot_celltype_severity | R Documentation |
Plot the phenotype severity scores (generated by GPT-4) aggregated by the cell types each phenotype is significantly associated with.
plot_celltype_severity(
results,
cl = KGExplorer::filter_ontology(KGExplorer::get_ontology("cl"), keep_descendants =
"cell"),
q_threshold = 0.05,
top_n = 3,
types = c("bar", "dot")
)
results |
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results |
cl |
Cell Ontology (CL) object from
|
q_threshold |
The q value threshold to subset the |
top_n |
Top and bottom number of cell types to show per annotation (used in dot plot only). |
types |
Which types of plots of create. |
Named list of ggplot and data.table objects.
results <- load_example_results()
out <- plot_celltype_severity(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.