Partition PIPs into functional annotation categories.

partition_pip_annots(finemapstats, annots.list)

Arguments

finemapstats

a GRanges object of fine mapping summary statistics

annots.list

a list of GRanges objects of ordered functional annotation categories, if a SNP is in multiple annotation categories, it will be assigned to the first ordered category.

Value

a list with a data frame with the sum of PIPs and a data frame with the number of SNPs included for each annotation category.