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

  • Geocaching

    In case you weren’t aware, Geocaching is one of my hobbies turned obsession that fills my life with joy. Geocaching is a game in which people hide containers and post the coordinates on the web for others to enter into a GPS and go out and find. The game began in May of 2000. On May 2, the US Government declassified signals from the GPS satellites making them available to the public. This increased the accuracy of commercial GPS receivers from around 100m down to 10m. The next day, Dave Ulmer hid a stash in the woods outside of Portland,…

  • Photography

    Grafton Street, Dublin Originally uploaded by mineral2. I’m scanning old photos again. Its the first time in probably a month since I’ve been archiving photos. I skipped over a few and am doing a more “recent” set from the summer of 2001. Ireland. Its 6 rolls of color and one of black and white. I’ll probably post a few up here as I scan them, but expect the full set on the website when they are all completed. To scan after this: London 1999, 2000; Scotland 1999; Drew University 2000, 2001 and some random bits in between.

  • I wish I had my Camera with me

    One of the properties of Moscow is a wet winter and spring. We’re close enough to the coast to get the rainy weather patterns, yet far enough inland to incur the effects of the Cascades rain shadow. Though I suppose being at the foothills of the next major mountain divide, it’s only natural for the moisture to build up and then drop before passing into Montana. The rain here is more of a constant drizzle than the short, hard rains we’d get in the summer in the Appalachians. The drizzle will last all day. It’s the sort of grey rain…

  • Heading West

    The Palouse, originally uploaded by Matthew Singer. Holy Smokes, it’s March already? My how time flies. It’s funny how time goes by when life is mundane and you feel like you’ve wasted the days. On the other hand, when you’ve got something to look forward to, it just can’t come fast enough. I suppose I ought to let you, my readers, up to speed on my future. In January, I received a notice of acceptance to the University of Idaho. So last week, Erin and I went out that way to visit the school and the area. Long story short,…

  • 5000 feet

    It snowed in Moscow for the first time this season on Thursday. And although the accumulation didn’t amount to much in town, the mountains were turned white the next day. But two days of sunshine, and evidence of the snow is all but gone. The mountains around Moscow are back to their baren self. But at 5000 feet, winter has begun. Today I drove up to the Bald Mountain lookout tower on Palouse Divide, mostly to find a geocache, but also to enjoy the view, hike in the forest, and see just how much snow may have fallen at higher…

  • Perseoids

    Every summer at early-mid August, we enter a portion of the solar system rife with meteors, and ever year around this time, many of those chunks of rock and debris hit our atmosphere and burn up, giving us the Perseoid meteor shower. This year, the shower did not occur during a full moon, and so the skies were dark and the stars were bright. Some of the photo club folks wanted to have a camping trip this weekend, and that devolved into a fire and star photography night at our place. The meteor shower was pretty good Saturday night. There…