View source: R/plot_congenital_annotations.R
plot_congenital_annotations | R Documentation |
Test whether there is a difference in proportion if significantly associated fetal and non-fetal cell types across phenotypes with congenital onset vs. those without.
plot_congenital_annotations(
results,
gpt_annot = HPOExplorer::gpt_annot_codify(),
hpo = HPOExplorer::get_hpo(),
fetal_keywords = c("fetal", "fetus", "primordial", "hESC", "embryonic"),
celltype_col = "author_celltype",
x_var = c("fetal_celltype", "fetal_only"),
remove_annotations = c("varies"),
keep_descendants = NULL,
by_branch = FALSE,
q_threshold = 0.05,
package = "palettetown",
palette = "mewtwo",
proportion.test = TRUE,
add_baseline = TRUE,
save_path = NULL,
...
)
results |
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results |
gpt_annot |
A data.table of GPT annotations. |
hpo |
Human Phenotype Ontology object, loaded from get_ontology. |
fetal_keywords |
A character vector of keywords to identify fetal cell types. |
celltype_col |
The column name of the cell type. |
x_var |
X-axis variable to plot. |
remove_annotations |
A character vector of annotations to remove. |
keep_descendants |
Terms whose descendants should be kept
(including themselves).
Set to |
by_branch |
Use HPO ancestors as the x-axis instead of the frequency of congenital onset. |
q_threshold |
The q value threshold to subset the |
package , palette |
Name of the package from which the given palette is to
be extracted. The available palettes and packages can be checked by running
|
proportion.test |
Decides whether proportion test for |
add_baseline |
Add a horizontal line showing the proportions expected by random. |
save_path |
The path to save the plot. |
... |
Arguments passed on to
|
results <- load_example_results()
results2 <- plot_congenital_annotations(results=results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.