Towel
2004-05-18, 03:18
Well, not quite an application, more like a reasonably complicated Perl script. But it's my baby! My experiments with DNA arrays require a lot of number-crunching, and until now that meant a lot of rather laborious SQL scripts and Excel manipulations. I'm too cheap to buy the mega-bucks commerical software, and I want to do things they don't do anyway.
So I've been meaning for months to write something that would automate the whole process, and finally got down to it in a serious way this past weekend. Shell scripting could do much of it, but bash chokes on floating points (ack!) so I had to teach myself the rudiments of Perl. Muuuuch better. And I quickly discovered that I could call bash scripts from within the main Perl script, like subroutines. Pretty cool, and made calling MySQL a heck of a lot easier (I hate flat quotation marks!).
So the whole shebang is one 100-ish line Perl script, plus four small bash scripts and a couple of files containing my long, long lists of input variables that the script crunches through one-by-one. A little clunky, and even worse I use a few temporary files as variable storage because I can't always figure out a good way to get the three scripting languages (SQL, Perl, bash) to talk to one another. But clunky and all, she's my baby. :)
I know this sounds a little pathetic, but understand I am just a poor, dumb, wet-bench biochem grad student. This is a major advance in my harnessing of all that OS X goodness. One of these days (months from now...) I'll try rolling this into an actual Cocoa application that my lab-mates could use. I've been piddling with Cocoa on and off, but the learning curve is a bit steeper.
Ah. Nothing like the stress of an upcoming committee meeting to drive a grad student to new heights of productivity. :cool: :D
Did I mention OS X rocks!? BSD goodness, translucent Terminal windows, Expose...mmmm. :D
So I've been meaning for months to write something that would automate the whole process, and finally got down to it in a serious way this past weekend. Shell scripting could do much of it, but bash chokes on floating points (ack!) so I had to teach myself the rudiments of Perl. Muuuuch better. And I quickly discovered that I could call bash scripts from within the main Perl script, like subroutines. Pretty cool, and made calling MySQL a heck of a lot easier (I hate flat quotation marks!).
So the whole shebang is one 100-ish line Perl script, plus four small bash scripts and a couple of files containing my long, long lists of input variables that the script crunches through one-by-one. A little clunky, and even worse I use a few temporary files as variable storage because I can't always figure out a good way to get the three scripting languages (SQL, Perl, bash) to talk to one another. But clunky and all, she's my baby. :)
I know this sounds a little pathetic, but understand I am just a poor, dumb, wet-bench biochem grad student. This is a major advance in my harnessing of all that OS X goodness. One of these days (months from now...) I'll try rolling this into an actual Cocoa application that my lab-mates could use. I've been piddling with Cocoa on and off, but the learning curve is a bit steeper.
Ah. Nothing like the stress of an upcoming committee meeting to drive a grad student to new heights of productivity. :cool: :D
Did I mention OS X rocks!? BSD goodness, translucent Terminal windows, Expose...mmmm. :D