| | 526 | <h3>Building Input Files for Avida</h3> |
| | 527 | |
| | 528 | <p> |
| | 529 | These commands build input files for Avida, using the capabilities of analyze mode to |
| | 530 | automate some tedium. |
| | 531 | </p> |
| | 532 | |
| | 533 | <dl> |
| | 534 | <dt><strong> |
| | 535 | WRITE_CLONE [<span class="cmdargopt">file='clone.dat'</span>] |
| | 536 | [<span class="cmdargopt">num_cells=-1</span>] |
| | 537 | </strong></dt> |
| | 538 | <dd> |
| | 539 | Creates a clone population file (as <a href="actions.html#SaveClone">SaveClone</a>) |
| | 540 | from the current batch, suitable for loading with <a href="actions.html#LoadClone">LoadClone</a>. |
| | 541 | The starting update is 0 and the archive is empty. num_cells should be the number |
| | 542 | of cells in the world -- the default value of -1 will not be accepted by LoadClone, |
| | 543 | so be sure to specify the correct number. |
| | 544 | <br /> |
| | 545 | <strong>Warning:</strong> Unlike SaveClone, WRITE_CLONE does not preserve location. |
| | 546 | Any spatial structure the population had is lost. |
| | 547 | </dd> |
| | 548 | <dt><strong> |
| | 549 | WRITE_INJECT_EVENTS [<span class="cmdargopt">file='events_inj.cfg'</span>] |
| | 550 | [<span class="cmdargopt">start_cell=0</span>] [<span class="cmdargopt">lineage=0</span>] |
| | 551 | </strong></dt> |
| | 552 | <dd> |
| | 553 | Creates an <a href="events.html">events file</a> which injects all the genotypes of the current |
| | 554 | batch at update 0. Injection starts at the given start_cell id and increments |
| | 555 | upward. All injected organisms are assigned the given lineage label and start |
| | 556 | with the relevant merit; num_cpus copies of each genotype are injected. |
| | 557 | <br /> |
| | 558 | <strong>Warning:</strong> injection is in order that the genotypes appear in the batch. |
| | 559 | This will break any spatial structure your population may have had. |
| | 560 | </dd> |
| | 561 | <dt><strong> |
| | 562 | WRITE_COMPETITION [<span class="cmdargopt">join_UD=0</span>] |
| | 563 | [<span class="cmdargopt">start_merit=50000</span>] [<span class="cmdargopt">file='events_comp.cfg'</span>] |
| | 564 | [<span class="cmdargopt">batch_A=cur_batch-1</span>] |
| | 565 | [<span class="cmdargopt">file=batch_B=cur_batch</span>] [<span class="cmdargopt">grid_side=-1</span>] |
| | 566 | [<span class="cmdargopt">lineage=0</span>] |
| | 567 | </strong></dt> |
| | 568 | <dd> |
| | 569 | Creates an <a href="events.html">events file</a> which acts much like the one produced |
| | 570 | by WRITE_INJECT_EVENTS, but injects two populations (from the given batches), separates |
| | 571 | the populations at update 0 (via SeverGridRow grid_side), and joins them at the given |
| | 572 | join_UD. Organisms from batch_A are injected starting at cell id 0; organisms from |
| | 573 | batch_B are injected starting at cell id grid_side*grid_side. (If grid_side is negative, |
| | 574 | an attempt will be made to infer it from the number of organisms in the population.) |
| | 575 | <br /> |
| | 576 | Each population should be square, of grid_side x grid_side dimensions. (You will have |
| | 577 | to set up the world in avida.cfg to have WORLD_X of grid_side and WORLD_Y of 2*grid_side.) |
| | 578 | Each population may not be larger than 10,000 organisms. Organisms from batch_A will |
| | 579 | be assigned the given lineage label; organisms from batch_B will be assigned the given |
| | 580 | lineage label + 1. |
| | 581 | <br /> |
| | 582 | <strong>Warning:</strong> Like WRITE_INJECT_EVENTS, WRITE_COMPEITITIONS will destroy any |
| | 583 | spatial structure the populations may have had. Also, since it severs/joins only the grid_side |
| | 584 | row, it is not suitable for use with WORLD_GEOMETRY values other than 1 (bounded grid). |
| | 585 | </dd> |
| | 586 | </dl> |
| | 587 | |
| | 588 | |
| | 589 | <p> </p> |