Author Topic: Phylogenetic trees from sim files  (Read 5016 times)

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
Phylogenetic trees from sim files
« on: January 19, 2007, 09:03:09 PM »
I've created a small Python script to analyse mutation histories in saved simulation files. What it does is building a phylogenetic tree from the mutation details (taking advantage of their being saved in plain text). There must be some useful things to do with this, but I only print the tree with the numbers of bots having a particular genome, or having it as an ancestor.

Limitations : it ignores bots that never mutated, may give nonsensical results if you've ever stripped mutation details or if you have more than one species mutating.

To use it, you need to have Python installed. If you know some Python, I hope you'll figure out what it does, otherwise, I'm also including a handy batch file on which you can drag and drop .sim files.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Phylogenetic trees from sim files
« Reply #1 on: January 20, 2007, 12:45:43 AM »
Neat.  I'll try to install Python and test it later.

Offline scood

  • Bot Neophyte
  • *
  • Posts: 44
    • View Profile
Phylogenetic trees from sim files
« Reply #2 on: February 18, 2007, 11:21:18 PM »
wow this sounds cool, imagine if you have spiecation, then this would show really dyynamic phylogenic trees forming.

now can you plz explain how to use it?
cause I cant figure it out

Offline scood

  • Bot Neophyte
  • *
  • Posts: 44
    • View Profile
Phylogenetic trees from sim files
« Reply #3 on: April 08, 2007, 02:06:22 PM »
someone PLEASE TELL ME how to use it I dont know how to use it

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Phylogenetic trees from sim files
« Reply #4 on: April 09, 2007, 07:15:51 PM »
It's a python script.  You'll need to install python on your computer.  Sprotiel has it installed to the root C drive (ie: c:\Python25).  This is fairly common with this sort of programming utility.  Setting up python is beyond the scope of my post, but you should be able to figure it out if you start here.

Once you have python installed, you'll need to unzip his utility to your Darwinbots folder.  Then, drag and drop a sim file onto the .bat file included, and it should run.  Otherwise, you can edit the python file to run your sim.

Offline scood

  • Bot Neophyte
  • *
  • Posts: 44
    • View Profile
Phylogenetic trees from sim files
« Reply #5 on: May 27, 2007, 06:55:16 PM »
im  still confuzzled


I did what you said and it didn't draw a tree

Offline scood

  • Bot Neophyte
  • *
  • Posts: 44
    • View Profile
Phylogenetic trees from sim files
« Reply #6 on: May 27, 2007, 07:00:14 PM »
it says attribute error

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Phylogenetic trees from sim files
« Reply #7 on: May 28, 2007, 01:10:51 AM »
How far in the process did you get?  Did you get python successfully installed?