I recently created a tutorial for the Harvard edX PH525.8x Case Study on DNA Methylation Analysis. This tutorial is a step-by-step guide of starting with raw Whole Genome Bisulfite Sequencing (WGBS) reads (SRA or fastq files), apply quality control filters, mapping mapping the filtered reads using Bismark and extracting the methylation calls for downstream analyses such as importing the methylation calls in R to find differently methylated CpGs or differentially methylated regions (see the bsseq R/Bioconductor package for more information).
As an example, we extracted six paired tumor-normal WGBS samples from Ziller et al. (2013) (PMID: 23925113). We have provided the coverage files (only chromosome 22) produced by Bismark in the colonCancerWGBS Github repository for others to use as a data example in R.
I hope others find the tutorial useful for the analysis of their own data!
Tuesday, May 5, 2015
Wednesday, April 8, 2015
Influential works in Data-Driven Discovery
A recent initiative to fund data-driven discoveries was completed last year by the Gordon and Betty Moore Foundation. Over 1,100 applications were received and each application had the opportunity to cite five "influential works in the general field of 'Big Data' for scientific discovery". An analysis was done to see which works were cited the most and in what genres these works were from. A paper summarizing the results was posted on arXiv on March 30, 2015 and had some interesting results that I wanted to share!
First, I was happy to see I have read several of the most cited influential works, but this also gave me a nice summer reading list of things I haven't read (I think this will basically be my #tbt (throwback Thursday) data-science papers for the next year)! It was such a great list of works that I wanted to share the most cited influential works on here (each cited at least 10 times):
First, I was happy to see I have read several of the most cited influential works, but this also gave me a nice summer reading list of things I haven't read (I think this will basically be my #tbt (throwback Thursday) data-science papers for the next year)! It was such a great list of works that I wanted to share the most cited influential works on here (each cited at least 10 times):
- MapReduce [Dean and Ghemawat, 2008] - 63 (citations)
- Fourth Paradigm [Hey et al., 2009] - 51
- Elements of Statistical Learning [Hastie et al., 2009] - 43
- Initial sequencing of the human genome [Lander et al., 2001] - 30
- A mathematical theory of communication [Shannon, 2001] - 24
- Sloan Digital Sky Survey [York et al., 2000] - 23
- BLAST [Altschu et al., 1990] - 20
- Lasso [Tibshirani et al., 1996] - 19
- Latent Dirichlet allocation [Blei et al., 2003] - 19
- EM algorithm [Demster et al., 1977] - 17
- Support vector networks [Cortes and Vapnik, 1995] - 17
- Random forest [Breiman, 2001] - 15
- Pattern Recognition [Bishop et al., 2006] - 14
- Anatomy of web search engine [Brin and Page, 1998] - 14
- Numerical Recipes [Press, 2007] - 13
- Boostrap methods [Efron, 1979] - 11
- Equation of state calculations [Metropolis et al., 1953] - 11
- Exploratory data analysis [Tukey, 1977] - 11
- Probability reasoning [Pearl, 1988] - 11
- PageRank [Page et al., 1999] - 10
- Bayesian Data Analysis [Gelman et al., 2013] - 10
- Unreasonable effectiveness of data [Halevy et al., 2009] - 10
Other cool things about this article:
- The R programming language and the IPython Notebook programming environment were highlighted. The authors state the "R language is one of the leading programming languages, and was referenced a significant number of times". Similarly, the IPython Notebook "is noteworthy as one of the few open source software toolkits for both programming and data analysis that is not database, algorithm or programming language".
- Classic/foundational ideas such as Bayes Theorem, Metropolis-Hastings Algorithm, lasso, bootstrap, Expectation-Maximization (EM) Algorithm were sprinkled throughout the article. These ideas are almost standard in any statistics curriculum and are incredibly powerful and useful tools when analyzing data.
- The concepts of 'exploratory data analysis' (EDA) and 'data visualization' got a major shout out with Tukey's and Tufte's essential works. These concepts are critical in the analysis of data and are often overlooked or treated as assumed knowledge. I would argue that these concepts should be included as a major portion of any course based around teaching the concepts of data analysis.
So, how many have of these have you read??
Sunday, April 5, 2015
Pasta alla Carbonara
Pasta alla carbonara is one of those wonderfully decadent recipes that is an easy dinner during the week or perfect for a special date night! One of my good friends from Sicily recently showed me how to make pasta all carbonara the traditional Italian way which does not have cream, wine or stock (which was a big surprise to me since that's the typical way it is made in the US). Once you try this recipe, you won't even miss the cream!
Ingredients:
- 1 package of bacon
- 1 box of pasta (campanelle, farfella, penne, spaghetti, etc)
- 4 fresh eggs
- 1/2 cup parmesan cheese
- salt, pepper
Optional: chopped parsley
Recipe:
1) Bring a pot of salted water to boil and cook pasta to al dente according to the directions (subtract 1-2 minutes from directions).
2) At the same time that the water is boiling, chop raw bacon into bite size pieces. In a large pan, sauté bacon until golden brown.
3) Using a slotted spoon, take the bacon off the pan and on to a plate with a towel to drain some of the fat. At this point, you can turn off the heat and pour some of the rendered bacon fat out of the pan (but I prefer to keep all the bacon fat). It just adds extra flavor! :)
4) By this point the pasta should be just finished cooking at perfect al dente and the pan with the rendered bacon fat should be off the heat. In the same pan with the rendered bacon fat, add the pasta, bacon and 4 eggs. Make sure you mix everything as you add the eggs to prevent any scrambled eggs. The heat from the pasta will slightly cook the eggs. Add the parmesan cheese. Top with salt & pepper.
This recipe cooks so fast and is delicious. Seriously. You won't be disappointed! :)
Tuesday, February 24, 2015
Female Academic Minions
I came across a tweet from @paulcoxon and immediately thought to myself, where are all the female minions?
So I fixed it! :)
Original tweets can be found here:
So I fixed it! :)
Original tweets can be found here:
Academic minions! :D pic.twitter.com/nuDQ0nMqVM
— Dr Paul Coxon (@paulcoxon) February 20, 2015
Fixed it: female academic minions! :) Inspiration from @paulcoxon https://t.co/gNd9pQmOSN #womeninscience #womenSci pic.twitter.com/1bm9m1iWdh
— Stephanie Hicks (@stephaniehicks) February 24, 2015
Monday, February 23, 2015
When are Statistics Jobs Posted?
One of the better websites that regularly posts Statistics jobs is this one at the Department of Statistics at the University of Florida. If you have ever looked for a postdoc, a faculty position, government job or applied statistician type-job in statistics, you have probably come across this website before.
As I am currently a postdoc, I was curious about two things: (1) What is the most frequent type job posted? Who is the target audience of this website? (2) If certain types of statistics jobs had a preferred target range over the academic year?
To do this, I enlisted the help of some wonderful R-packages from Hadley Wickham to help with the gathering of the data (rvest), cleaning the data (stringr, lubridate) and visualizing the data (ggplot2). One caveat about this data is the website only posts the job postings from August 2014 until now. The R code is available below in Rmarkdown and Markdown and in a gist.
For simplicity, I grouped the type of positions into four categories:
1. faculty = tentured or non-tenured faculty position including chairs, deans and department heads.
2. postdoc = postdoctoral fellows
3. lecturer = lecturer or instructor
4. statistican = a statistican whose primary role is data analysis or managing other data analysts.
The majority of statistics jobs posted on the UF website since August 2014 have been faculty positions.
Statistics job postings are fairly uniformly posted Mon-Fri on this UF website.
The frequency of the statistics job postings increase Sept - Nov.
As I am currently a postdoc, I was curious about two things: (1) What is the most frequent type job posted? Who is the target audience of this website? (2) If certain types of statistics jobs had a preferred target range over the academic year?
To do this, I enlisted the help of some wonderful R-packages from Hadley Wickham to help with the gathering of the data (rvest), cleaning the data (stringr, lubridate) and visualizing the data (ggplot2). One caveat about this data is the website only posts the job postings from August 2014 until now. The R code is available below in Rmarkdown and Markdown and in a gist.
For simplicity, I grouped the type of positions into four categories:
1. faculty = tentured or non-tenured faculty position including chairs, deans and department heads.
2. postdoc = postdoctoral fellows
3. lecturer = lecturer or instructor
4. statistican = a statistican whose primary role is data analysis or managing other data analysts.
The majority of statistics jobs posted on the UF website since August 2014 have been faculty positions.
Statistics job postings are fairly uniformly posted Mon-Fri on this UF website.
The frequency of the statistics job postings increase Sept - Nov.
This increase in the months Sept-Nov is mostly driven by academic faculty positions (not surprisingly). If you are looking for postdoc positions, they tend to be more frequently posted after this time period. Lecturer/Instructor positions are fairly uniform. Similarly, applied statistician jobs do not seem to have a peak range.
Monday, February 16, 2015
Simple Sour Cream Muffins - Three Ways
Sour cream is an ingredient I love to use in baking. It can add a tart flavor and creamy texture to many, different baked goods! If you don't have sour cream on hand, I find greek yogurt is a good substitute too.
During the week day mornings, I'm always running behind schedule and do not have time to make oatmeal or eggs (which I love to do on the weekends). I'm also one of those people that needs to eat something in the morning or otherwise I feel like lunch can never come soon enough. Muffins have been my favorite breakfast because they are so portable and they freeze really well! Yes, you heard right! On the weekends I will make a batch or two of muffins and they will last me a good month. Rather than paying $2-4 for a muffin every day, I take a muffin out of the freezer and pop it into the microwave for 30-45 seconds when I get to work. Add a cup of coffee and I'm set until lunch!
Today I'm showcasing how sour cream can be used in a diverse set of muffins: blueberry, pumpkin and corn bread muffins.
Sour Cream and Blueberry Muffins
Ingredients:
- 3/4 cup granulated sugar
- 1/4 cup unsalted butter, room temp
- 2 large eggs
- 2 tsp vanilla extract
- 1/2 cup sour cream
- 2 1/4 cups all-purpose flour
- 1 1/2 tsp baking powder
- 1/2 tsp baking soda
- 1/2 tsp salt
- 1 1/2 cups blueberries, fresh or frozen
Recipe:
1) Pre-heat oven to 375. Grease 12 muffin tins or paper baking cups.
2) Mix sugar and butter. Add in vanilla extract, eggs and sour cream.
3) Mix together the flour, baking powder, baking soda and salt. Add the dry ingredients to the wet ingredients, but do not over mix.
4) Fold in blueberries. Spoon the muffin batter into the 12 muffin tins.
5) Bake at 375 for 18-22 mins. Let cool on a wire rack.
Optional: Add the zest of 1 lemon to make lemon blueberry sour cream muffins. Add coarse white sparkling sugar for garnish.
Sour Cream and Pumpkin Muffins
Ingredients:
- 1/3 cup brown sugar
- 1/4 cup canola oil
- 1 tsp vanilla extract
- 3/4 cup pure pumpkin purée
- 1/2 cup sour cream
- 1 egg
- 1/2 cup all-purpose flour
- 1/2 cup whole-wheat flour
- 1/2 tsp baking powder
- 1/2 tsp baking soda
- 1/2 tsp ground cinnamon
- 1/4 tsp ground ginger
- 1/4 tsp salt
- 3 tbsp raw pumpkin seeds
Recipe:
1) Pre-heat oven to 350. Grease 12 muffin tins or paper baking cups.
2) Mix brown sugar and oil. Add in vanilla extract, egg, pumpkin puree and sour cream.
3) Mix together the flours, baking powder, baking soda, cinnamon, ginger and salt. Add the dry ingredients to the wet ingredients, but do not over mix.
4) Spoon the muffin batter into the 12 muffin tins. Sprinkle on raw pumpkin seeds.
5) Bake at 350 for 20 mins. Let cool on a wire rack.

Sour Cream and Cornbread Muffins
Ingredients:
- 1/4 cup unsalted butter, room temp
- 3 tbsp granulated sugar
- 2 large eggs
- 1/2 cup sour cream
- 1/2 cup milk (I used almond milk as a substitute)
- 1 cup all-purpose flour
- 2/3 cup yellow cornmeal
- 1 1/2 tsp baking powder
- 1/2 tsp baking soda
- 1/2 tsp salt
Recipe:
1) Pre-heat oven to 425. Grease 12 muffin tins or paper baking cups.
2) Mix sugar and butter. Add in vanilla extract, eggs, milk and sour cream.
3) Mix together the flours, baking powder, baking soda and salt. Add the dry ingredients to the wet ingredients, but do not over mix.
4) Spoon the muffin batter into the 12 muffin tins.
5) Bake at 425 for 15-17 mins. Let cool on a wire rack.
Finish with some jam or a big pad of butter!
Tuesday, January 27, 2015
Spicy Steamed Clams and Chorizo

Here's how you make it:
Ingredients:
- olive oil, salt, pepper
- 2 chorizo links (each one around 3oz), diced into small piece
- 24 littleneck clams, soaked and scrubbed
- 1 onion, diced
- 4 garlic cloves, diced
- 1 sprig of rosemary, diced
- pinch of herbs de provenace
- pinch of garlic powder
- pinch of cayenne pepper
- 3 large red potatoes (5-6 baby red potatoes), diced
- 1 cup white wine
- 2 cups of water (could add another 1 cup if you like more broth)
- parsley, chopped
Recipe:
1) Soak and scrub the littleneck clams for 30 mins. Set aside the clean clams in a bowl.
2) Dice the onion, chorizo, potatoes, rosemary, parsley and garlic. Set aside.
3) Add 1 tablespoon of olive oil and brown the chorizo for 5 mins. When the chorizo is brown and crusty, spoon it out of the pan and set aside.
4) In the same pan where the chorizo was browned, add the onion, rosemary and herbs de provence. Sauté for another 5 mins until the onions are soft. Add the garlic and sauté for 1 min.
At this point, it might be a good idea to get some bread toasting. I make a wheat sourdough bread on the weekends and then pull out slices of it from the freezer whenever I want bread. Just pop it in the toaster and the bread is ready to go!
5) Next, add the white wine and let reduce by half. Season with garlic powder, cayenne pepper, salt and pepper. Add the water, potatoes and chorizo. Bring to a boil.
6) As soon as the white wine broth is boiling, add the clams to the pot. Put the top on and let the clams steam for 8-10 mins.
Finish with adding fresh parsley to the broth. Serve with warm, crusty bread. Perfect for a cold, snowy day like today.
Subscribe to:
Posts (Atom)



























