This function calculates the individual inbreeding coefficients based on runs of homozygosity (ROH) using only ROH of specific size classes. The parameter class specify the size interval to split up calculations. For example, if class = 2 Froh based on ROH 0-2, 2-4, 4-8, 80-16, >16 Mbps long will be calculated.
Froh_inbreedingClass(runs, mapFile, Class =2)
Arguments
runs: R object (dataframe) with ROH results
mapFile: Plink map file (for SNP position)
Class: base ROH-length interval (in Mbps) (default: 0-2, 2-4, 4-8, 8-16, >16)
Returns
A data frame with individual inbreeding coefficients based on ROH-length of specific size. The sum of ROH-length of specific size in each individual is reported alongside