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

  • |

    Aurora, part II

    Well, I made my last post a bit too soon. After spending the evening on Freezeout Ridge (story and photos to come soon), Erin reminded us that the aurora might still be occuring and that we could possibly see it tonight. Clarkia isn’t the best place to test this hypothesis because its surrounded by tall mountains in all directions, so as we passed through Bovill, I noticed a glow on the northern horizon. At this point, it was only 10:00, still early enough that the glow could be residual light from the sun. I pulled the car over and set…

  • Puppies for Sale

    The puppies are now over 8 weeks old and oh so cute. As you can imagine, seven growing pups indoors can create quite a mess that is hard to keep on top of. On top of that, any time you step into their room, they all mob you for attention. So, as spring weather has descended upon the Palouse, we found scrap lumber and fencing and built an outdoor playpen for the dogs. So far it is doing the job. It’s also giving the pups some much needed fresh air and sunshine, which in turn tires them out so all…

  • |

    Chickadees

    For Christmas, I bought Erin a new bird feeder to replace one that had been broken earlier in the summer. A few weeks ago, we finally got some seed and put it outside, but this was in the middle of a cold snap where daytime highs remained in the low 20’s, and the nighttime lows, well, we just won’t go there. For about a week, the feeder hung with no activity. Then, as the cold began to lift, there was a single chickadee in the lilac tree. It must have spread the news because a few days later, the feeder…

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

  • What might the native prairie have looked like?

    It’s hard to imagine what America’s prairies looked like when they were unspoiled. Today, more than 95% of our prairies and grasslands have been repurposed for agriculture. The last remnants are so highly fragmented that it’s a fight to keep non-native invasive species from taking over. Prairies and grasslands were once thought to be ecological wastelands, a monoculture of grass with not much productivity. From a distance, the prairie might seem like a boring place. But up close, prairies have the capacity to harbor more diversity than some forests. To really appreciate all that these grasslands have to offer, it’s…

  • An update for 2018

    It’s occurred to me that I haven’t been good at writing posts recently. My last update was from May, and that was subsequently my last big hiking trip. Since then, I have been incredibly busy, and that means I haven’t had as much time for fun. I did get out a few times this summer with the family. But there’s a lot to talk about. So here’s what happened in 2017. I successfully defended my Ph.D. dissertation. On December 14, I defended my dissertation in front of my committee. This is why I haven’t been very active this year. I…