ivan-krukov / aligning-genealogies

The genealogy-coalescent alignment project
3 stars 0 forks source link

Simulations should assign sex to individuals #18

Closed ivan-krukov closed 4 years ago

ivan-krukov commented 4 years ago

Pedigree.simulate_from_founders() should assign sex to each individual. This is necessary for Pedigree.to_table() to work correctly, as it relies on the sex parameter for each node to put the ID into the mother or father column.

ivan-krukov commented 4 years ago

Resolved by implementing Pedigree.simulate_from_founders_with_sex in 21d5690d6b786f375774997277e0971a28434f79. I think this should be equivalent with the old simulate_from_founders, but I keep two versions for now.