mauriceling/dose

Genetic distance between long migration / no cross-cell mating

clarencecastillo opened this issue · 1 comments

  1. Within a 5x5x1 cell eco-system (flatland), 1250 genetically identical (chromosome length = 50) individuals are evenly distributed. 50 individuals per cell.
  2. Mating can only occur within cell (use dose.filter_location function).
  3. 10% of the population inside each eco_cell would be migrating individually to random eco_cells across the entire world (implement in organism_location function with the use of dose.filter_location function).
  4. eco_cell_capacity shall be ignored to enable random movement to other cells.
  5. Monitor the 25 cells for 1000 generations.
  6. Report genetic status every 10 generations. Location reporting is required.

Created 05_long_migration_isolated_mating.py to cover this issue. (See commit: b9bd3ed)

  1. All parameters and custom overwrite functions are exactly the same with 04_no_migration_isolated_mating.py with the exception that this new simulation implements long range movement among its population.
  2. All eco_cells would be iterated over and for each iteration, 10% of the population inside the eco_cell migrates randomly across the entire world. The selection of the said portion would be done randomly.
  3. As the organism changes it status location, it's World organism count (World[x][y][z]['organisms']) counterpart would also be updated accordingly.
  4. Because all eco_cells are to be iterated over, it is possible for an organism to traverse multiple times in just one generation. This, of course, would make not much difference as it only imitates extended random selection of its new location.