LaTeX

 

p' = \frac{w_{AA}p^2 + w_{Aa}pq}{w_{AA}p^2 + w_{Aa}pq + w_{aa}q^2}
 

This semester, one of my classes has required me to turn in all of my assignments in LaTeX. LaTeX (la-tek) is built on TeX, a typesetting language meant to produce beautiful documents reminiscent of the days when papers were printed from engraved plates. Typesetting was an art that got lost in the digital age.

When I first got the news that assignments were to be handed in using LaTeX, I admit I was a bit worried. The assignments were already going to be difficult enough since it is a bioinformatics class working with data types I have not been used to dealing with. On top of that, I’d have to learn a new system for typing up my homework. It has been a pain in the butt, but it has also been fun and pretty useful. One of the big advantages of LaTeX is its typesetting of mathematical formulas. It is easy and elegant, once you get used to the syntax. Anyone who has used the Microsoft equation editor that comes with Office knows it is a pain to work with. The point and click interface is slow and clumbsy. The LaTex looks ugly, but it also makes sense. The formula above reads as follows in LaTex:

p’ = \frac{w_{AA}p^2 + w_{Aa}pq}{w_{AA}p^2 + w_{Aa}pq + w_{aa}q^2}

The second advantage of LaTeX is that it can be completely integrated with R, the programming language that I use to analyze data. Natively, R outputs to plain text. But LaTeX integration with Sweave lets me run R code along with the TeX document and output data tables and graphics in a printable format, integrated with text. Plus, if I need to alter the R code, I can do so right in the Sweave document.

Lately, I discovered a LaTeX plugin for wordpress that allows me to make mathematical formulas in LaTeX’s math mode. There’s currently no math typesetting for html, yet the internet is a great resource for learning about math topics. Unfortunately, the LaTex doesn’t integrate as selectable text, but instead is output as an image, but it’s a good start for now. Perhaps I can make some future posts that involve some mathematical modeling of biological topics.

Since I have been using LaTeX for bioinformatics class, I have been using it to turn in assignments for other classes. It has been a useful medium for typing up Quantitative Genetics problem sets, and the presentation that I’ll be giving at Evo-Wibo in two weeks will be made using LaTeX. At some point, I’ll have to install Lilypond, a typesetting language for producing music notation.

I’m a nerd, and proud of it.

By the way, extra props if you understand the equation at the top of the page.

Similar Posts

  • Garden Produce

    The tomato plants have fruit, but I’m awaiting them to ripen. The pepper plants are starting to produce. The strawberries are on their second round of harvest. In the mean time, the squash and zucchini are providing us with food of plenty. Yesterday I picked four zucchini, all from the same plant. This morning, I grabbed two more before leaving for work. This doesn’t include the half-dozen or so that we’ve already picked and are awaiting consumption in the kitchen. We’ve also got several variety of yellow summer squash as well as two green stripped squash/zucchini plants, both producing about…

  • 2013: A Retrospective

    For all intents and purposes, 2013 was a shitty year. Just when we thought things couldn’t get any worse, something else would go wrong. And, so the trend continued until the final months. The year started out pretty good. Though we’ve been struggling financially since Erin lost her nursing job in 2011, by the fall of 2012, she had a job and had enrolled at the University of Idaho to finally earn a bachelor’s degree to get her into a new career field.  With snowshoes and a new (to me) pair of skis I acquired from the WSU swap in…

  • Another conference, how about that?

    Somehow, I managed to go to two conferences in one semester. Tomorrow, I’ll be heading to Port Townsend, WA along with several other members of the department for the bi-annual Evo-WIBO conference. This is a small, regional conference for evolutionary biologists in the Pacific Northwest. There are only going to be around 200 or so people attending (compared to the 2-3000 at SICB), and there is only one talk session at a time. So lucky me, I got chosen to give an oral presentation. Did I mention it’s a small conference? It begins Saturday morning and ends Sunday at noon….

  • Maine

    I’ve been in Maine for the past 9 weeks teaching outdoor education at the Ferry Beach Ecology School. Its been wonderful up here, though its gotten quite cold rather quickly. On weekends I have been hiking up in the White Mountains getting some great photography shots. Unfortunately, none of the computers I work with have a firewire card I can use my scanner with. But new photos will hopefully be up before the month’s end. My White Mountain adventures have been strenuous, but fun. It started Labor Day weekend with Mount Lafayette, the 5200 foot giant at Franconia Notch. The…

  • Escaping the Heat

    While the east coast has contended with an earthquake and a hurricane, we have been enduring our summer heat wave, temperatures in excess of 90 degrees. It rarely gets to 95 out here, but when it does, it’s brutal. Of course, when it’s in the mid-90’s up on the Palouse, it’s over 100 down in Lewiston. Currently, our weather station reads 98 outside and 92 inside. We don’t have air conditioning. There’s really no need for it. While it’s in the 90’s now, at night, it will cool off below 70, sometimes getting downright chilly. We wake up in the…

  • Home Theater

    A few weeks ago, we received our federal tax return, and with the First Time Homebuyer tax credit, we got quite a hefty sum. The bulk of that money is going right back into the property with a few home improvement projects. But we took a small chunk and set it aside to complete the entertainment system. So I went ahead and bought a receiver and a set of speakers. What a difference it makes. I’m not new to the 5.1 surround scene. In college, I had a shelf stereo system that was actually an all-in-one theater system: a 3…