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"
)

Arguments

mat

A matrix of the proportion of PIPs partitioned to each annotation category, rows are loci, columns are annotation categories.

categories

annotation categories

colors

Colors of the structure plot categories

ticks

Labels of x-axis

font.size

Font size of structure plot

highlight

Highlight a locus