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

  • |

    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.

  • What have I been up to?

    It has been quite some time since I last made a post here, so I’d say I’m a bit overdue for an update. For the past two and a half years, I have been living in northwestern North Dakota. Saying this is an adjustment is an understatement. North Dakota is considerably flatter than any place I’ve lived, and there are almost no trees here. Winters are extremely harsh and long. We can have weeks where the daytime high does not exceed 0ยบ F, and the wind will send a chill to your core. Our corner of the state doesn’t get…

  • Camping at Hazard Lake

    In May we bought a new tent to accommodate our growing family on camping trips. I guess the two-person backpacking tent just won’t do it anymore for thee people and two large dogs. So after we bought it, we took it out for its maiden test at a nearby campground. This summer was dubbed the summer of no fun. I was busy writing and Erin was working an internship. To make the summer a bit more bearable, we thought we’d go camping for a night or two once a month just to get out of the house and have some…

  • |

    Fourth of July

    For many years, I have spent my Fourth of July basking in the part of America that I enjoy the most: its wild and natural beauty. It started in 2011 when I explored the Hobo Cedar Grove for the first time. Then again in 2013 when I hiked Grandmother Mountain. In 2015, I spent the fourth in the Seven Devils with friends. This year, I returned to Grandmother Mountain for what may be my last visit to one of my favorite peaks in the vicinity of Moscow.

  • |

    Fireworks in the Mountains

    A garden update from the last post: I’m happy to announce that the lettuce that the chickens ate down to the soil is growing back quite nicely and will be ready for consumption within a few days. And now on to the main post: Elk River hosts an annual Independence Day celebration they call “Fireworks in the Mountains,” but they don’t necessarily hold it on the 4th of July, but on the weekend before or after if the 4th happens to be mid-week. The event attracts a lot of people and the general store stays open late to sell its…

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