Making a structure plot of partitioned PIP by locus This function is adapted from the 'fastTopics' package https://stephenslab.github.io/fastTopics/
pip_structure_plot(
mat,
categories,
colors,
ticks = NULL,
font.size = 9,
highlight = NULL,
xlab = "Locus",
ylab = "Proportion",
legend.title = "Category"
)
A matrix of the proportion of PIPs partitioned to each annotation category, rows are loci, columns are annotation categories.
annotation categories
Colors of the structure plot categories
Labels of x-axis
Font size of structure plot
Highlight a locus