Computation of genetic contributions from pedigrees