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

  • Smoke in the Air

    Where have I been the last three weeks? To put it lightly, I have been choking on smoke. Since returning from the Seven Devils trip over Labor Day Weekend, the wildfires in the northwest, particularly in Idaho, have flared up. A fire south of the Devils appeared as well as a large fire just outside of Riggins. There have been some smaller fires near Grangeville and Lewiston to add to the mess. Winds from the south have blown all that smoke into the Lewiston-Clarkston valley and onto the Palouse where the smoke has been so thick at times, you could…

  • December Update

    When I started this site, I never expected to make daily posts. Weekly? Maybe. Monthly? Less desireable. I’m kind of ashamed that it’s been three months with no updates, but there hasn’t been much of excitement to talk about. There haven’t been any big adventures this fall. I’m just plugging away at the Ph.D. thing, which has also made me uninspired to write here. So, here’s my update for now. It’s snowing. We had our first snowfall that actually stuck, and though it’s only a few inches, it’s enough to put on our boots and snow gear and go out…

  • Elk Creek Falls

    I think I’ve mentioned Elk Creek Falls in passing, but haven’t actually written a featured post about it. Elk River is a small outdoor recreation town (read: hunting & fishing mostly) a little over an hour east of Moscow. This small community represents the “end of the road.” The paved road ends here and forest service roads pick up to take you into some remote places. While most people come back here to hunt, ride ATVs and snowmobile in the winter, there are some family-friendly hikes and other attractions that make Elk River worth a visit. There’s the giant cedar,…

  • Fall Foliage

    I’ve been spending a lot of time finishing up my dissertation proposal, which is due in a little over a week, and that has kept me from taking time to enjoy the outdoors. We got some considerable rain over the past weekend which lead to some dramatic skies and really clear views on Monday and Tuesday, but I just wasn’t able to take advantage of the nice conditions. I did get out for a little bit yesterday afternoon to check out the fall foliage in the arboretum on campus. In Idaho, we don’t see very much fall color. There are…

  • October Update

    Where has time gone? It’s already October, which means I missed out on September. Well, I didn’t really miss it. I was busy with a graduate school ritual known as the preliminary examination. Prelims are, without a doubt, the most stressful event for a graduate student. You might think it’s writing the dissertation or even giving your final defense. The truth is, by that time, you know your subject inside and out. Writing takes time, and the stress is making the deadlines, but overall, unless you slept through your graduate student experience, writing up the dissertation isn’t that difficult. The…

  • | |

    Exploring

    The past week, my parents were in town visiting and we spent the week exploring and showing them our favorite places in the area. We’d usually leave fairly early in the morning and get back kinda late, always exhausted. As a result, I haven’t been able to post some detailed updates on the awesome places that we’ve been. I’ll try to summarize the week here. Saturday, July 23: Picked my parents up from the Lewiston airport. Turns out, there was some kind of airplane festival going on so we decided to have a look. There were planes out on the…