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

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

  • |

    Aurora

    We got alerts that a solar flare could cause an aurora that would be visible into the middle states. So, last night, I checked the sky and luckily it was clear to the north. I saw a faint glow on the horizon and set up the camera. Sure enough, there was an aurora. The excitement didn’t last too long. I wanted to view this one from Steptoe Butte, one of the best places around for viewing auroral activity. So, we got in the car and started driving west. Unfortunately, the sky was overcast over much of the Palouse, and by…

  • Birding in Lewiston

    Given my current disabled condition, there’s not much I can do to get ouside and enjoy the sunshine, but there are a few places that I can go. There are paved walking and bike trails in every nearby town, and some of them offer spectacular scenery. The Trail of the Coeur D’Alenes, for example, starts in Plummer and meanders for over 70 miles to the town of Mullan near Lookout Pass. There are some sections of this trail that seem like they’d be good to explore, but this time of year, there might still be some snow blocking my way…

  • The New Kitchen

    Three months ago, we had some pipes leak in our kitchen that caused some damage to the flooring and the cabinets and resulted in us basically getting a brand new kitchen. We contacted State Farm to see about getting any coverage, and thankfully, they agreed to help cover some of the damage. So, we set about getting a contractor in to look at the damage and give us an estimate. We ended up using one that works directly with State Farm, a decision that may have caused us more strife that we were hoping to avoid, but after several delays,…

  • Babies

      Out of nowhere, our dog population has increased four fold. Here’s the back story. Several weeks ago, I came home to find two extra dogs at the house. They were two German Shepherds, a male and a female, that Erin had decided to watch for a friend while she got on her feet and found a place to live with her dogs. Four big dogs in our tiny house is a bit much, and it didn’t help that the two we were watching were very active. Lana, the female, is a very nervous dog, especially around men, and she…

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