Martin Krzywinski / Genome Sciences Center / mkweb.bcgsc.ca Martin Krzywinski / Genome Sciences Center / mkweb.bcgsc.ca - contact me Martin Krzywinski / Genome Sciences Center / mkweb.bcgsc.ca on Twitter Martin Krzywinski / Genome Sciences Center / mkweb.bcgsc.ca - Lumondo Photography Martin Krzywinski / Genome Sciences Center / mkweb.bcgsc.ca - Pi Art Martin Krzywinski / Genome Sciences Center / mkweb.bcgsc.ca - Hilbertonians - Creatures on the Hilbert Curve
Trance opera—Spente le Stellebe dramatic

art: exciting


Bioinformatics and Genome Analysis Course. Izmir International Biomedicine and Genome Institute, Izmir, Turkey. May 2–14, 2016

design + visualization

VIZBI 2013 Keynote

Visual Design Principles—Communicating Effectively

This talk happened on Thursday, Mar 21st 2013 at VIZBI 2013 at the Broad Institute in Boston.

How often people speak of art and science as though they were two entirely different things, with no interconnection. An artist is emotional, they think, and uses only his intuition; he sees all at once and has no need of reason. A scientist is cold, they think, and uses only his reason; he argues carefully step by step, and needs no imagination. That is all wrong. The true artist is quite rational as well as imaginative and knows what he is doing; if he does not, his art suffers. The true scientist is quite imaginative as well as rational, and sometimes leaps to solutions where reason can follow only slowly; if he does not, his science suffers. —Isaac Asimov (The Roving Mind)

For more visualization and design resources, see my VIZBI 2012 tutorials, Nature Methods Points of View column, and rant about colors.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Do not allow encoding or other design choices to hijaack your message. Each element on the page must meaningfully contribute to your figure.

presentation video

The video will be posted at vizbi.org.

presentation slides

Slides are available as PDF and keynote (zipped).

Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
Martin Krzywinski - VIZBI 2013 Keynote - Visual Design Principles
1/144

A poet is, after all, a sort of scientist, but engaged in a qualitative science in which nothing is measurable. He lives with data that cannot be numbered, and his experiments can be done only once. The information in a poem is, by definition, not reproducible. He becomes an equivalent of scientist, in the act of examining and sorting the things popping in [to his head], finding the marks of remote similarity, points of distant relationship, tiny irregularities that indicate that this one is really the same as that one over there only more important. Gauging the fit, he can meticulously place pieces of the universe together, in geometric configurations that are as beautiful and balanced as crystals. —Lewis Thomas (The Medusa and the Snail: More Notes of a Biology Watcher)

breakout session—making good figures

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Sketch notes by the inimitable Francis Rowland from our breakout group. The question was: what do you need to make good figures? (PDF)

small, medium and big data visualization

If you're asking how to visualize big data, first make sure you're doing a good job on small and medium data. Each scale requires good design.

Do not expect to use one way
to tell many stories

Also consider that there is a very large number of combinations of data sets, hypotheses and possible patterns. Because of this, you cannot expect to use one way to tell many stories. There is no Holy Grail of big data visualization. But there are many good questions to ask and practices to follow that make up a process which can help you get there.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Medium data visualization. This is what happens when you show the data (a strategy that works for small data), instead of explaining it. Yup, we need to work on this too. (A) Qi X et al. J Biotech 144:43 (2012) (Saturation-Mutagenesis in Two Positions Distant from Active Site of a Klebsiella pneumoniae Glycerol Dehydratase Identifies Some Highly Active Mutants) (B) Alekseyev, M.A. et al. Genome Res 19:943 (2009) (Breakpoint graphs and ancestral genome reconstructions)
Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Big data visualization. Yes, data sets are growing but are visual and cognitive abilities are not. There are many data sets, each requiring its own approach. You cannot use one way to tell many stories. Lewis SN et al. PLoS ONE 6:e27175 (2011) (Prediction of Disease and Phenotype Associations from Genome-Wide Association Studies)

news + thoughts

Gene Volume Control

Thu 11-06-2015

I was commissioned by Scientific American to create an information graphic based on Figure 9 in the landmark Nature Integrative analysis of 111 reference human epigenomes paper.

The original figure details the relationships between more than 100 sequenced epigenomes and genetic traits, including disease like Crohn's and Alzheimer's. These relationships were shown as a heatmap in which the epigenome-trait cell depicted the P value associated with tissue-specific H3K4me1 epigenetic modification in regions of the genome associated with the trait.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Figure 9 from Integrative analysis of 111 reference human epigenomes (Nature (2015) 518 317–330). (details)

As much as I distrust network diagrams, in this case this was the right way to show the data. The network was meticulously laid out by hand to draw attention to the layered groups of diseases of traits.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Network diagram redesign of the heatmap for a select set of traits. Only relationships with –log P > 3.9 are displayed. Appears on Graphic Science page in June 2015 issue of Scientific American. (details)

This was my second information graphic for the Graphic Science page. Last year, I illustrated the extent of differences in the gene sequence of humans, Denisovans, chimps and gorillas.

Sampling distributions and the bootstrap

Thu 11-06-2015

The bootstrap is a computational method that simulates new sample from observed data. These simulated samples can be used to determine how estimates from replicate experiments might be distributed and answer questions about precision and bias.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Sampling distributions and the bootstrap. (read)

We discuss both parametric and non-parametric bootstrap. In the former, observed data are fit to a model and then new samples are drawn using the model. In the latter, no model assumption is made and simulated samples are drawn with replacement from the observed data.

Kulesa, A., Krzywinski, M., Blainey, P. & Altman, N (2015) Points of Significance: Sampling distributions and the bootstrap Nature Methods 12:477-478.

Background reading

Krzywinski, M. & Altman, N. (2013) Points of Significance: Importance of being uncertain. Nature Methods 10:809-810.

...more about the Points of Significance column

Bayesian statistics

Thu 30-04-2015

Building on last month's column about Bayes' Theorem, we introduce Bayesian inference and contrast it to frequentist inference.

Given a hypothesis and a model, the frequentist calculates the probability of different data generated by the model, P(data|model). When this probability to obtain the observed data from the model is small (e.g. `alpha` = 0.05), the frequentist rejects the hypothesis.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Bayesian Statistics. (read)

In contrast, the Bayesian makes direct probability statements about the model by calculating P(model|data). In other words, given the observed data, the probability that the model is correct. With this approach it is possible to relate the probability of different models to identify one that is most compatible with the data.

The Bayesian approach is actually more intuitive. From the frequentist point of view, the probability used to assess the veracity of a hypothesis, P(data|model), commonly referred to as the P value, does not help us determine the probability that the model is correct. In fact, the P value is commonly misinterpreted as the probability that the hypothesis is right. This is the so-called "prosecutor's fallacy", which confuses the two conditional probabilities P(data|model) for P(model|data). It is the latter quantity that is more directly useful and calculated by the Bayesian.

Puga, J.L, Krzywinski, M. & Altman, N. (2015) Points of Significance: Bayes' Theorem Nature Methods 12:277-278.

Background reading

Puga, J.L, Krzywinski, M. & Altman, N. (2015) Points of Significance: Bayes' Theorem Nature Methods 12:277-278.

...more about the Points of Significance column

Bayes' Theorem

Wed 22-04-2015

In our first column on Bayesian statistics, we introduce conditional probabilities and Bayes' theorem

P(B|A) = P(A|B) × P(B) / P(A)

This relationship between conditional probabilities P(B|A) and P(A|B) is central in Bayesian statistics. We illustrate how Bayes' theorem can be used to quickly calculate useful probabilities that are more difficult to conceptualize within a frequentist framework.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Bayes' Theorem. (read)

Using Bayes' theorem, we can incorporate our beliefs and prior experience about a system and update it when data are collected.

Puga, J.L, Krzywinski, M. & Altman, N. (2015) Points of Significance: Bayes' Theorem Nature Methods 12:277-278.

Background reading

Oldford, R.W. & Cherry, W.H. Picturing probability: the poverty of Venn diagrams, the richness of eikosograms. (University of Waterloo, 2006)

...more about the Points of Significance column