applyFnToMarkers function

apply a function to the genotypes from a set of markers