This function takes the output from SCPA and plots the rank of a user defined pathway.
plot_rank(
scpa_out,
pathway,
population_name = "qval",
base_point_size = 2,
base_point_color = "gray70",
highlight_point_size = 3,
highlight_point_color = "cornflowerblue",
label_pathway = T,
label_size = 4
)
Data frame containing Pathways and qvals generated from compare_pathways
Chosen pathway or pathways to plot the rank of. This can be specific e.g. HALLMARK_GLYCOLYSIS to plot a specific result, or generic e.g. glycolysis to plot all glycolysis pathways
Column name of the population to plot, if more than one population present in the data frame
Size of the base points to plot on the graph
Color of the base points to plot on the graph
Size of the highlighted points to plot on the graph
Color of the highlighted points to plot on the graph
Should the selected pathway be labelled?
Text size of the pathway label
list of pathways with corresponding genes
if (FALSE) {
plot_rank(
scpa_out = scpa_result,
pathway = "interferon",
population_name = cd4_qval,
)
}