Recovery of trait heritability from whole genome sequence data