Giter VIP home page Giter VIP logo

nicheconstruct's Introduction

Model, Data, and Analysis for Negative Niche Construction Favors the Evolution of Cooperation

DOI

Contents

  • configuration: Configuration files for reported simulations
  • data: Result data sets
  • figures: Figures
  • model: Model source code
  • paper: Source for the paper
  • scripts: Scripts for analyzing and plotting the result data

When relevant, these subdirectories contain more information.

License

This work is released to the public domain under the Creative Commons CC0 license.

nicheconstruct's People

Contributors

briandconnelly avatar evokerr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nicheconstruct's Issues

Population-Level Function to Change Environment

Things to be done:

  • Update population's genome_length
  • Update the population's abundances vector
    • Add entries for all of the genotypes that can be encoded with the extra bit
  • Update the population's delta vector
    • Add entries for all of the genotypes that can be encoded with the extra bit

Model description: Replace genotypes with individuals?

Converting between individuals and their genotype with gamma adds baggage. Move W_g (fitness of genotype) and a{g,l}_ (allelic state of genotype g at locus l) to W_i and a{i,l}_? These seem a bit odd, especially the former.

Cache num_ones data

The number of ones for each genotype can definitely be stored ahead of time and then filtered with abundances > 0 when needed.

How should fitnesses be calculated?

Fitness is affected by how long the genome is for each population.

Possibilities:

  • Create a single fitness landscape for the maximum genome length and have fitness be the sum of the fitness effects at the available loci

Handle genome length differences when migrating

During migration, the genome lengths of the source and destination populations can be different. When adding immigrants to a population, adjust their abundances by stripping out bits that are inaccessible in the new environment.

Function to drop non-visible loci

Create a function that removes non-visible loci from a list of abundances. This is what's done in handle_immigrants, but it could also be used elsewhere (e.g., randomize).

Population store number of genotypes

Code like 2**(self.genome_length + 1) is frequently used when initializing vectors used by Population. This code is slightly hard to read and easy to mess up. Add a num_genotypes property to Population objects that stores the number of genotypes and is updated whenever genome_length is, perhaps best through a set_genome_length function.

Create Experiment Object

Make an Experiment object that creates the Metapopulation and cycles through the updates. This object could also store the configuration, so Metapopulation and Population objects (and others) don't have to store pointers to the config.

Specific references needed

Per Brian...

  • public good durability (we’ve definitely read about this in Tea. Sam Brown? maybe 10.1086/667193)
  • effects of diffusion of public good (pretty sure one of the durability papers also talked about this)

Remove lookup table for Hamming distances

This limits the genome lengths that can be used. Replace with on-demand calculation of the HD to each other genotype.

Is there a possible speedup for this? First get the candidate genomes to mutate based on binomial sampling?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.