fixed edm's numerical gradient computation with geno/pheno tranform