Thursday, February 12, 2009

Font Change!

One of this week's goals has been to successfully change some visual attribute of the PhyloWidget application. The purpose of this was the demonstrate whether the code was navigable enough to facilitate making changes, starting small of course. I found the file called FontLoader and was able to change the font from Vera (right) to Georgia (left) and Arial Black (bottom)! 

Sadly, changing to Wingdings or to a Hebrew didn't work, but I think that has more to do with the fonts themselves than anything in the program. It seems to only work with English fonts, which is fine. I was just experimenting. 


Wednesday, February 11, 2009

New York Times

My friend forwarded me a link to the New York Times article discussing exactly what I'm working on - Tree of Life visualization (and the inherent difficulties involved). Check it out! 

Monday, February 9, 2009

Eclipse/Standalone Update

Source code is up and running through Eclipse. Yay! Many thanks to Greg Jordan for his help. 

As for the standalone version, I still not sure why Terminal says it "cannot execute binary file," especially since I set the file permissions to 755 so that anyone can execute the .sh and .bat files. Looking into that. 

Eclipse/Standalone: One Step Closer

Standalone version: 
I changed the permissions on the .jar files in the lib directory, and the result is a new set of errors: 

lib/freeloader.jar: line 1: PK: command not found
lib/freeloader.jar: line 2: ?h79: command not found
lib/freeloader.jar: line 3: syntax error near unexpected token `)'
K-*??ϳR0?3??r?Cq,HL?HU?%?A??E??%?)?N? ??z?ƺI?'MANIFEST.MF?M??LK-.?
./Phylowidget Full.sh: line 1: lib/itext.jar: cannot execute binary file
./Phylowidget Full.sh: line 1: lib/pdf.jar: cannot execute binary file
lib/phylowidget.jar: line 1: PK: command not found
lib/phylowidget.jar: line 2: ??h9: command not found
lib/phylowidget.jar: line 3: syntax error near unexpected token `)'
?I??'ϳR0?3??r?Cq,HL?HU?%?A??E??%?)?N?@?@TA-INF/MANIFEST.MF?M??LK-.?

Can we call that progress? Maybe. Anyone know what those might mean? 


Source Code: 
I successfully got Eclipse to recognize the source code in the folder I downloaded, and after downloading Processing, importing it as a library, and adding it to the build path, I now only have 2 errors. They have to do the following import statement: 

import com.lowagie.text.Document;

Anyone know what that might be? There's no "com" directory in my source code folder, so I'm not sure where I'm supposed to find that library. I e-mailed Greg Jordan, the author of the code, to see if he could point me in the right direction.

Closer, for sure, but not there yet. Once I get it running, my task is to make at least one visible change to the code, to prove that it's easy enough to work with. Val suggested I try to change the font, size, or color of the leaf node labels on the tree. If I can figure out how to do that with relatively little frustration, then the code is easy enough to navigate and worth building upon. We shall see about all that once I get the thing running.

Thursday, February 5, 2009

Fun and Useful Resources

Val helped me get in touch with Greg Jordan, author of the original PhyloWidget program. He recommended the two following site for both information and inspiration: 

Rebecca Shapley's work on "Teaching with a Visual Tree of Life"
http://groups.ischool.berkeley.edu/TOL/

and the UK Wellcome Trust's "Wellcome Tree of Life"
http://www.wellcometreeoflife.org/interactive/


The second link looked really neat at first, and the graphics in the video are great, but it was tough to interact with and was pretty shallow in terms of the amount of information that was available. I liked the idea of color-coding the images based on whether outside data was available, though. 

The study done at Berkley may prove incredibly useful. The final report from their study was ~112 pages long, but I spent a while going through the powerpoint (with notes) from their presentation as well as reading briefly through the different sections of the paper to see what would come in handy later on. They have a whole section of recommendations based on interviews with teachers about what functionality they would like in a Tree of Life program. Just for a taste of some of their results, here are features that over 80% of respondents considered important or very important: 

  • Zooming in to any part of the tree 
  • Seeing areas of controversy 
  • Viewing the relationship of divergence events to geological time 
  • Seeing the distribution of important character states 
  • Bookmarking particular branches on the tree 
  • Accessing geographic distributions of groups of organisms 
  • Viewing the distribution of biological patterns across the tree  

(Green and Shapley, p. 47)

So as you can see it's going to be a very useful document. I looked for Rebecca Shapley's contact information so that I might be able to get in touch with her directly (she now works for Google), and although her e-mail address wasn't displayed on her website, I actually found her on Facebook and sent her a message! It'd be quite nice to have her direct input, since she conducted this massive amount of research that would be incredibly useful to making my project successful. 

Wednesday, February 4, 2009

Eclipse

I've spent a lot of time going through the Eclipse Java development "Basic Tutorial" - using their test code and following the tutorial instructions to see all of the things I can do with it. It seems like a great development environment - it'll just take a little while for me to get used to all of the menus and icons so that I can find what I need. There are so many great features to take advantage of while I'm coding, that I hope I can remember at least half of them when they would come in handy. 

With all of my new knowledge, I now need to figure out how to create a project to house all of the PhyloWidget source code, and then run it and see what happens. Turns out that the "Project Configuration Tutorial" is next in the help docs I've been reading, so that should be a good start. 

I still can't figure out how to run the standalone version, since I don't know what to do with the .sh or .bat files to make them, well, do something. 

I've got a lot of reading to do about info visualization, too. Seems like people have been recommending good resources, so thanks for that. I just need to sit down and read them now. 

Sunday, February 1, 2009

I feel like an idiot of a computer science major...

I'm looking at the Eclipse website to figure out what to download, since I'll need to use Eclipse to write the code for this project. The options include: 

Eclipse Classic - The classic Eclipse download: the Eclipse Platform, Java Development Tools, and Plug-in Development Environment, including source and both user and programmer documentation.

Or

Eclipse IDE for Java Developers - The essential tools for any Java developer, including a Java IDE, a CVS client, XML Editor and Mylyn.

Or both? I think it's the first one, but who knows?

Also, I downloaded the standalone version of PhyloWidget, so that I could play with it and get used to the functionality of the program. Right now I feel like a bit of an idiot because I don't know what to do with it, like, how to just run the program. I couldn't see any instructions on the site. All I have is a folder of .jar files and two other files, one of which doesn't open, and the other looks like it has a command-line command, which I couldn't get to run because it said "Permission denied." 

Not such a good start eh?