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

  • Small World

    Harvest Moon, originally uploaded by Matthew Singer. Beth, one of the photo club members and employee at the Prichard Art Gallery downtown, mentioned at our last meeting that a student was in town with the current exhibit at the gallery. He didn’t know anyone and was desperate to hang out with people his own age. So we got a group together last night and hung out around the town. I thought the visiting student was an art student, but it turns out he’s actually studying conservation biology and had spent some time working environmental education. And, he’s from Maine. Well…

  • Let it Snow

    Winter has made a comeback here on the Palouse. After several weeks of warm weather into the 50’s, the temperatures have cooled down, but the precipitation remains. The snow began Monday night, giving us only an inch or two, not much to worry about. But the snow continued throughout Tuesday dropping another two inches on Moscow. However, for every inch of snow that Moscow gets, Deary gets 2-3 times that, and so we had about 6 inches on our driveway when I got home Tuesday night. I got to use our new snow blower for the first time to clear…

  • |

    Daffodils in the Snow

    Daffodils in the Snow, originally uploaded by Matthew Singer. I’ve heard of April showers bringing May flowers, but what do April snows bring? On Friday, I awoke to a white world with about an inch of snow covering everything. It was kind of a shock considering only a week before, there were promising signs of Spring. Of course, after the snow, the temperatures are back up and the weekend’s forecast is quite pleasant.

  • 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…

  • Happy Thanksgiving

    Holy crap it’s Thanksgiving already!  Well I’ve been thinking about what to make this post about. There are several great options: The real story of thanksgiving and how it became what we perceive it to be today, the start of the commercial materialism season, the nature of human behavior, and so on. But I think rather than the normal cynical post about our need to celebrate lies and propaganda, I’ll just fill you in with a brief update of what I’ve been up to. For starters, it’s been a busy semester. The past month, I’ve been breeding the 3rd generation…

  • Adventures in Sourdough

    When life prevents you from going out and adventuring, you make your own adventures at home. My latest adventure is making sourdough. Now, I could go out and obtain or buy a starter from a local bakery, but what’s the fun of that? It’s so easy to start my own from scratch, and now I have one that I can truly call my own. My guide for making the starter and baking my first batch of bread comes from King Arthur Flour’s Sourdough Baking Guide. This all started about 3 weeks ago. I had some whole wheat flour sitting around…