Want to save 4hrs, 59minutes, 30seconds?

November 27, 2007

Recently, I was in a class and a fellow science major (I believe she is a chemist but she may be bio-chem) and she asked me a question about data analysis. In her department, they run a Langmuir Blodgett Trough for analysis of various lipids. They have a program to output the results (typically several thousand lines long) in a spreadsheet (which they they analyze). They basically sort two different dictionaries for pressure and area and compare them based the error they chose. The problem with doing this is that it can take several hours to go through one file and we have computers for this. So I started hacking on a piece of code to do this. A fellow physics major (hi Jon!) picked it up and cranked the code out (basically rewrote what I had so far). The code can do in 30 seconds what it took one person 5 hours to accomplish. In the interest of sharing, I have hosted it on a bazaar branch http://bazaar.launchpad.net/~freddymartinez9/+junk/trough-dev for people to use. It is under GPLv3 and the main author is Jonathan Bruckman. Note: It only works if you have two different lipid input files in CSV format (comma-separated values) but checkout the code for yourself. It will also write out an output.csv file for you… neat! I am unaware of similar programs but if you know of one, leave me a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: