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

  • |

    The Birds at our Feeder

    We get lots of birds in our trees in the front yard. This could be contributed to the source of food we are supplying to them. The list of winter birds is less than the summer residents. For example, I haven’t seen a bluebird in months, and most of the woodpeckers have left the yard too. And of course, the hummingbirds have gone since they don’t have the proper gear to tolerate the cold. But even with the few remaining species, watching the feeders has been a delight. In Idaho, we have the possibility to see four different kinds of…

  • |

    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.

  • Adventures in fast, reliable ineternet

    For the past seven years, I have been living with slow, unreliable internet. In 2004-2005, the Weis Ecology Center was on dial-up service. Camp McDowell in Alabama was also on dial-up service, shared on a wireless network. If you can remember far enough back when dial-up was the forefront of home internet technology, you might also remember how long it took for webpages to load and how it would randomly lose connection, and then the busy signals trying to reconnect. In 2006, those problems had not improved. Ferry Beach had a more reliable connection, though it was still slow. I’m…

  • A much needed update

    View on Kennedy Peak Originally uploaded by Matthew Singer. Wow. I realized I haven’t updated this place in quite some time. A lot has happened in the past year. I went back to Ferry Beach (www.fbes.org) in the fall and had some fun on the coast of Maine with weekends in the White Mountains again. I spent the winter in Hagerstown unsuccessfully looking for a job. And now I’ve finally found one in Luray, Va with the Sheridan School’s Mountain Campus (www.mountaincampus.org). I work at a facility nestled up against Shenandoah National Park, and literally somewhere in the photo above….

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

  • Its been an interesting week to say the least. Friday it was warm and rainy, which killed all remains of snow. Then it got real cold. So I had a ski lesson on the grass. It doesn’t really work that great on grass. Today was also cold. So… Its cold. Booo Its supposed to snow. Yay! Its going to stay cold. Booo That means the snow won’t melt. Yay! I’ve been dreaming tonight as I decided to see what ski areas are nearby and how much snow they have. Areas north of here have been getting hit with snow pretty…