applyFnToGenes function

apply a function to the genotypes (markers) in each gene transcript and/or base pair range