Plot the frequency of gene-phenotype and phenotype-disease associations.
frequency_histogram(
results = load_example_results(),
phenotype_to_genes = load_phenotype_to_genes(),
show_plot = FALSE,
verbose = TRUE
)
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results.
Output of load_phenotype_to_genes mapping phenotypes to gene annotations.
Print the plot after it has been created.
Print messages.
ggplot object
results <- load_example_results()[seq(5000),]
fp_res <- frequency_histogram(results=results)
#> Annotating phenotype frequencies.
#> Annotating phenos with Disease
#> Reading cached RDS file: phenotype.hpoa
#> + Version: v2023-10-09
#> Adding level-3 ancestor to each HPO ID.
#> ℹ All local files already up-to-date!
#> Reading cached RDS file: phenotype_to_genes.txt
#> + Version: v2023-10-09
#> Annotating gene frequencies.
#> Reading cached RDS file: genes_to_phenotype.txt
#> + Version: v2023-10-09
#> Adding level-3 ancestor to each HPO ID.
#> ℹ All local files already up-to-date!
#> Warning: Ignoring unknown parameters: `binwidth`, `bins`, and `pad`