Runs of homozygosity: F_ROH per animal and per-marker frequency
Arguments
- m
0/1/2 matrix; NA breaks the run, it is never treated as homozygous. Double, integer and raw storage give the same result; in a raw matrix 5 is the missing code
- min_snp
minimum run length, in consecutive markers
- max_het
heterozygotes tolerated inside a run (0 = none)
- pos
positions in base pairs, optional; with them
min_kbalso filters- min_kb
minimum length in kb, used only when pos is given
- chr
chromosome of each marker, optional; runs do not cross chromosomes
Without a map, the run is defined by the COUNT of consecutive markers, and the limitation is stated: panels of different density give different runs with the same min_snp.