A computerised method for calculating the probability of pedigrees from genetic data