plot_l2g: Radar plot for L2G partial scores from studiesAndLeadVariantsForGeneByL2G()
Description
This function returns a radar plot to compare the partial scores,
important for prioritising the causal genes that are obtained
from the studiesAndLeadVariantsForGeneByL2G() function. The user can
decide to plot only for a specific disease by specifying an EFO ID
for the disease argument, otherwise the returned plot will will facet
based on existing traits/diseases in the outputs from studiesAndLeadVariantsForGeneByL2G().
A radar plot for the input disease and the genes associated with that disease.
The variables shown include L2G score, chromatin interaction, variant pathogenicity and distance.
Arguments
data
Data frame: result of studiesAndLeadVariantsForGeneByL2G function.
disease_efo
Character: Input EFO id to filter the L2G data for a particular disease.
l2g_cutoff
Numeric: Sets the minimum L2G score threshold for diseases to be considered in the plot.
top_n_disease
Numeric: Determines the number of top diseases to plot for each gene, ranked by L2G score.
if (FALSE) {
p <- studiesAndLeadVariantsForGeneByL2G(list("ENSG00000167207","ENSG00000096968",
"ENSG00000138821", "ENSG00000125255")) %>% plot_l2g(disease = "EFO_0003767")
p
}