{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Calculate the frequency of daisy drive alleles for different systems and release sizes.\n", "
\n", "Select values for the following:\n", "* drive_init - the number of organisms to be released.\n", "
\n", "* C - either 'Single release' or 'Repeated releases every generation.' Repeated release option releases drive_init organisms.\n", "
\n", "* n - the number \n", "of elements in the daisy drive ranging from 1 element (A) to 6 elements (F->E->D->C->B->A)\n", "
\n", "* payload_cost - the fitness cost of the payload in element A. Select none (0.02), moderate (0.1), or severe (0.4)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "num_elements = {'A':1, 'B->A':2, 'C->B->A':3, 'D->C->B->A':4, 'E->D->C->B->A':5, 'F->E->D->C->B->A':6}\n", "#print num_elements.keys()\n", "\n", "cost1_elements = {'none':0, 'minor':0.05, 'moderate':0.1}\n", "#print cost1_elements.keys()\n", "\n", "cost2_elements = {'none':0.02, 'moderate':0.01, 'severe':0.4}\n", "#print cost2_elements.keys()\n", "\n", "driveinit_elements = {\n", "'One per thousand wild organisms': 0.001,\n", "'One per hundred wild organisms': 0.01,\n", "'One per ten wild organisms':0.1,\n", "'One for every wild organism':1}\n", "#print driveinit_elements.keys()\n", "\n", "#repeated seeding frequency, or 0 if you don’t want repeated seeding\n", "C_elements = {'Repeated seeding':1, 'No repeated seeding':0}" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from IPython.display import display\n", "from IPython.display import HTML\n", "import IPython.core.display as di # Example: di.display_html('