tracts.phase_type.hybrid_pedigree#
Hybrid-pedigree refinements (H-DC, H-DF) of the Dioecious phase-type approximations: enumerates the
possible migration settings over a fixed-depth pedigree and averages PhTDioecious
predictions over them, weighted by their probability under the model. Entry points are
density_hybrid_pedigree()/hybrid_pedigree_distribution() (tract length density),
HP_tract_length_histogram_multi_windowed() (binned histogram, used by
tracts.driver_utils) and HP_loglik() (log-likelihood).
Functions
|
Calculates the maximum-likelihood in a Poisson Random Field, when admixture is modelled using the hybrid-pedigree refinement of the DC or DF models. |
Calculates the tract length histogram for the hybrid-pedigree refinement of the DC or DF model for multiple chromosome lengths. |
|
|
Generates all possible trees representing the migration settings in a pedigree of T generations with N ancestral populations. |
|
Computes the tract length density or histogram for a given pedigree configuration, as specified by the which_migration-th element of migration_list, using the Hybrid-Pedigree refinement of the DC or DF model. |
|
Recursively generates all possible binary trees representing the migration settings in a pedigree of max_gen generations. |
|
Generates a matrix representing a pedigree structure of a given number of generation. |
|
This function computes the tract length distribution as a Phase-type mixture on a finite chromosome of length L, using the Hybrid-Pedigree refinement of the DC or DF model. |
|
Computes the probabily of a given configuration of migrant ancestors in the pedigree, as specified by the ms-th element of all_possible_migrations_list. |
|
Convert a tree to its array representation. |