An introduction to the statistics behind the most popular genomic data science projects. This is the sixth course in the Genomic Big Data Science Specialization from Johns Hopkins University.

Loading...

From the course by Johns Hopkins University

Statistics for Genomic Data Science

117 ratings

An introduction to the statistics behind the most popular genomic data science projects. This is the sixth course in the Genomic Big Data Science Specialization from Johns Hopkins University.

From the lesson

Module 1

This course is structured to hit the key conceptual ideas of normalization, exploratory analysis, linear modeling, testing, and multiple testing that arise over and over in genomic studies.

- Jeff Leek, PhDAssociate Professor, Biostatistics

Bloomberg School of Public Health

The first thing that you'll do when you get any genomic dataset is do

Â an exploratory analysis.

Â So an exploratory analysis consists of graphing and making tables, and

Â sort of looking at the data that you have.

Â And so why do you do this sort of exploration?

Â The reason why is you need to understand the data properties that help you

Â understand the scale on which the data were measured, if there were any missing

Â data, what are the other patterns that you might discover.

Â It also might suggest modeling strategies.

Â So it might identify oh, the data looked like they have this particular

Â distribution, so it looks like a certain kind of model might work.

Â It also helps you to debug analyses.

Â So if you identify, for example, a clustering in the data set

Â that you hadn't seen before or that you weren't expecting,

Â you can use that to try to update the way that you might do your analysis.

Â Or if you have problems in your analysis,

Â you might be able to figure out some of the reasons why those might be.

Â And then finally, to communicate your results, to tell people here's what I did,

Â here are the associations that I found, here's what the data look like.

Â So I thought I'd start off with a little background perceptual task, so

Â you get an idea of what kind of plots are the most useful to make.

Â Because the best and

Â most widely used way to do exploratory analysis is with plotting.

Â So here's an example of a task that was shown to a bunch of different people, and

Â then they measured how well people could do comparisons.

Â So in each case, each of these types, TYPE 1, TYPE 2, TYPE 3, and TYPE 4, and TYPE 5.

Â You see that your trying to compare the measurements in the two blocks.

Â That are have a dot.

Â So for example here, there's a dot in this block, and the dot in that block.

Â You're trying to compare which of those two is bigger.

Â Here you try to do it again.

Â For TYPE 4, you're trying to connect this dot to this dot.

Â For TYPE 3, you compare this dot to this dot.

Â The size of the relative rectangles there.

Â So it turns out, if you do this sort of experiment,

Â then the one that people do the best on is TYPE 1.

Â So here, I'm plotting the error of the person making the judgement.

Â So they actually showed it to human beings and had them check which one they think is

Â longer, and the error gets smaller as you go to the left of this graph.

Â And so you see that the TYPE 1 is the lowest, and so,

Â what are the characteristics of that TYPE 1 graph.

Â Well, first of all, the two bars are plotted right next to each other.

Â The other thing that they're plotted on is a common scale, so this scale is the same

Â for both measurements, and then, you're comparing position here, and

Â so, you're not comparing anything about the relative size of the box.

Â You're just saying, is this length longer than this length?

Â And so, humans tend to be better at making those very simple comparisons

Â on common scales.

Â Another thing that they did, was they did an experiment like this.

Â They tried compare the relative size of the shapes for

Â a pie chart, that looks like this, versus a bar chart that looks like this.

Â And so, if you make the same sort of plot and

Â you look at error again it gets smaller as you go over here to the left side,

Â you see that there's lower error for the position argument.

Â So basically,

Â it means that people are much easier judging is this bar taller than that bar,

Â than they are judging is the angle here, bigger than the angle here.

Â And so, this gets worse the more angles that you include in the chart.

Â And that's the reason why statisticians in general don't like pie charts,

Â is that it's very hard for people to actually read them off.

Â Another reason why you want to do exploratory analysis is because,

Â after you decided to put them on the right scale and make them easy to use.

Â You can see that even when you make calculations that people typically report,

Â you might get very different results when you look at the data.

Â So here what I've shown is four different plots.

Â This is called Anscombe's Quartet, and so for these four different plots, you see

Â very different associations between the data of these two measurements.

Â So it's not any variables that you should care about,

Â you can just look at the pattern.

Â So here you can see a nice scatter plot, like you hope to see.

Â Here you can see a whole bunch of measurements clustered right here, and

Â then one big outlier over there.

Â Here, the measurements are very much are in line with one outlet there,

Â and then you see kind of a curve linear relationship here.

Â It turns out if you fit the best fit lines on all of these four data sets,

Â you get the exact same estimates for the best fit line.

Â If you do a statistical significance calculation which we'll talk about later

Â in the class, you get the exact same statistical significance and

Â the R squared is the same as well.

Â So these are all measurements that you might report say on a paper, but they're

Â all the same, even though the data are telling you very, very different things.

Â This is the reason why you want to make sure that you plot your data.

Â One thing you need to be aware of that often happens,

Â especially in genomic information, is the data are very high dimensional and they're

Â often, major efforts made to try to visualize the complexity of genomic data.

Â But that can very easily go awry.

Â And of sort of funny way of talking about that is calling it a ridiculogram.

Â And so a ridiculogram is a really visually impressive display of data,

Â that doesn't really communicate much information.

Â So it's very hard to read one of these network plots, if it's really dense.

Â It's really connected.

Â It's very hard to actually extract any information out.

Â So the goal of visualization is to communicate information to people.

Â And while this is pretty and maybe visually arresting,

Â it's not necessarily very communicative.

Â So here's some other information you should use.

Â I showed you bar charts, showed you position charts, previously, and so

Â this is a very common type of chart that you see in a paper,

Â particularly in a genomics paper.

Â But it turns out, that this type of plot, can obscure quite a bit of information.

Â So for example,

Â all of these four data sets here give you these exact same bar charts.

Â So it turns out, here, we have two data sets that look that they're sort of

Â symmetric looking distributions and everything is nice.

Â Here we have two distributions, where one is sort of symmetric looking and

Â one has a big outliner.

Â Here we have two bimodal distributions,

Â here we have totally different sample sizes.

Â All of those give exactly the same bar chart.

Â So one thing that, a principle of making data visualization is to

Â make sure that you show all of the data.

Â Another principle is to make sure that you know what scale you're plotting on.

Â So this is a plot here of two technical replicates.

Â Here it's a gene expression experiment.

Â And so there are the thing that you can't see from this plot if you look at it,

Â is that 99% of the data are right down here in this lower

Â corner below this light blue bar.

Â Why are 99% of the data down in that corner?

Â Because the scale is that we've chosen to do,

Â is actually the wrong scale to measure these things on.

Â So you can imagine doing some kind of data transformation

Â to make the data more visible.

Â So that's one of the things to be aware of when making these plots,

Â is to be sure you're showing all the data and you're showing it on the right scale.

Â The other thing is that changing the sort of the way that you make the plot can

Â have a big impact.

Â So for example,

Â that was a plot of two technical replicates on the previous slide.

Â And now I'm showing those same two things,

Â only now I'm changing the measurements a little bit.

Â I'm just going to average the measurements on the X-axis, and

Â I'm going to take the difference between the two measurements on the Y-axis.

Â And so, this kind of plot, called an MA plot or Bland-Altman plot is very commonly

Â used when comparing replicates, because it shows you a couple of different things.

Â First, it's now centered things on 0, so instead of having to judge

Â the distance off of a 45 degree line, you just have to judge your distance up and

Â down from the 0 line to see how far away the two replicates are.

Â The other thing that you can do, is you can often visualize intensity dependent

Â effects or effects that depend on the size of the measurement.

Â So going from left to right here,

Â is the average measurement between the two replicates.

Â So if it gets bigger, that means just overall there's more,

Â you know it's measuring a higher quantity to the right hand side.

Â And again, on the Y-axis it's the difference.

Â So what are we seeing here?

Â Measurements down here that are low measurements

Â have bigger differences than measurements up here that are high measurements.

Â So this sort of intense independent effect might mean,

Â there's not necessarily more real differences down here, it's just because

Â measurements that are on the low end of the scale are more variable by nature.

Â So they would be different just because they're more variable.

Â So another thing to keep in mind is that,

Â the best to make these plots is to show them centered or starting at zero.

Â And so the reason why is imagine plot number one.

Â Plot number 1 shows three different methods, and

Â it shows it on a scale from 0 to 100 because it's a percentage, and so

Â you can see that, they all look very, very similar.

Â 99%, 98%, 96%. You can make that same plot but

Â if the scale starts at 95 instead of starting at 0, all of a sudden,

Â there, it's, you see exaggerated differences between these groups.

Â So the interesting thing here is this is a way that you can make it very unclear to

Â people, what are the real differences between the groups that we care about on

Â a meaningful scale.

Â So almost always what you want to do is start any graph with a percentage or

Â any graph where there's a quantity that starts at zero,

Â the graph should start at zero as opposed to starting up at higher values.

Â So one of the most common ways to mislead people with graphs is to

Â choose the wrong starting point for the axis.

Â So I've only touched the surface here of exploratory analysis.

Â I hope, I've taught you about showing all the data, showing position as often as you

Â can, starting graphs at zero, don't show too much complication in your graphs.

Â But there's a lot more of this.

Â And so, I think Karl Broman's guide to displaying data is one of the best

Â places to go.

Â It has sort of information from a statistical viewpoint.

Â There's also a large number of articles on data visualization at Nature, that can be

Â very useful for learning how to visualize different types of biological data.

Â Coursera provides universal access to the worldâ€™s best education,
partnering with top universities and organizations to offer courses online.