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
Embrace me, surround me as the rush comes.Motorcycledrift deeper into the soundmore quotes

See you at Shonan Meeting 167 — Formalizing Biomedical Visualization


data visualization + art

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Like algorithms?
Enjoy even more `\\pi` art.

Hola Mundo and Hello `\pi`

Art is science in love.
— E.F. Weisslitz

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Remix of the cover design of Hola Mundo by Hannah Fry. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Remix of the cover design of Hola Mundo by Hannah Fry. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Remix of the cover design of Hola Mundo by Hannah Fry. (zoom)

art and algorithms

Some algorithms connect us and some keep us apart—we need them to remind us what it is to be human and what it is to be a computer.

My cover design for Hannah Fry's Hello World: Being Human in the Age of Algorithms is based on my 2013 `\pi` Day art. The book is published by Blackie Books.

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Hola Mundo by Hannah Fry. Translation by Francisco J. Ramos Mena. Published by Blackie Books. Cover design by Martin Krzywinski. The front cover of the book shows a network based on the first 1,418 digits of `\pi`. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Hola Mundo by Hannah Fry. Translation by Francisco J. Ramos Mena. Published by Blackie Books. Cover design by Martin Krzywinski. The back cover of the book shows a network based on the first 837 digits of `\pi`. (zoom)

creating the cover

The cover begins with a 57 × 35 matrix of 1,995 colored circles. Each circle encodes a digit of `\pi`, starting with 3.1415.... Inside each circle is a smaller circle whose color is based on the next digit. The radius of the inner circle is `1/\phi^2` where `1/\phi = 0.618` is the Golden Ratio.

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
The beginning of the cover design. 1,995 colored circles encode digits of `\pi`. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Each circle has a smaller circle inside it that encodes the next digit. (zoom)

Once the circles are drawn, neighbouring circles that correspond to the same digit are connected with thick lines. The thickness of these lines is `t_0 = 3/(2\phi^2)`, relative to the outer circle radius. Circles that correspond to digits whose difference is `1` or `-1` are connected by a slightly thinner line with thickness `t_1 = t_0/\phi`.

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Neighbouring identical digits are connected with thick lines. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Neighbouring digits that are off by 1 are connected by thinner lines. (zoom)

More lines are drawn that connect digits with a larger difference, `|d| > 1`. The thickness for these lines is `t_d = t_0/\phi^{|d|}`. When all differences up to `|d| < 6` are accounted for, we get a pleasant jumble of lines.

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Neighbouring digits whose difference is greater than one are connected by progressively thinner lines. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Circles representing the digits of `\pi` with all lines connecting neighbouring digits. (zoom)

To accommodate the title and other text on the cover, the design was generated by avoiding drawing any circles within a certain distance of the text.

This way, the network of digits wraps around the text. In the final design, the front page has 1,418 digits and the back has 878 digits.

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Hola Mundo by Hannah Fry. Translation by Francisco J. Ramos Mena. Cover design by Martin Krzywinski. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Hola Mundo by Hannah Fry. Translation by Francisco J. Ramos Mena. Cover design by Martin Krzywinski. (zoom)

cover remixes

just the lines

Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Just the connecting lines. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Triangle color is the average color of their corners. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Inner circles punched out. (zoom)
Cover design by Martin Krzywinski of Hola Mundo (Hannah Fry) / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Just the triangles. (zoom)
VIEW ALL

news + thoughts

Using Circos in Galaxy Australia Workshop

Thu 20-02-2020

A workshop in using the Circos Galaxy wrapper by Rasche and Hiltemann. Event organized by Australian Biocommons.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Using Circos in Galaxy Australia workshop. (zoom)

Download workshop slides.

Galaxy wrapper training materials, Saskia Hiltemann, Helena Rasche, 2020 Visualisation with Circos (Galaxy Training Materials).

Essence of Data Visualization in Bioinformatics Webinar

Thu 20-02-2020

My webinar on fundamental concepts in data visualization and visual communication of scientific data and concepts. Event organized by Australian Biocommons.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Essence of Data Visualization in Bioinformatics webinar. (zoom)

Download webinar slides.

Markov models — training and evaluation of hidden Markov models

Thu 20-02-2020

With one eye you are looking at the outside world, while with the other you are looking within yourself.
—Amedeo Modigliani

Following up with our Markov Chain column and Hidden Markov model column, this month we look at how Markov models are trained using the example of biased coin.

We introduce the concepts of forward and backward probabilities and explicitly show how they are calculated in the training process using the Baum-Welch algorithm. We also discuss the value of ensemble models and the use of pseudocounts for cases where rare observations are expected but not necessarily seen.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Markov models — training and evaluation of hidden Markov models. (read)

Grewal, J., Krzywinski, M. & Altman, N. (2019) Points of significance: Markov models — training and evaluation of hidden Markov models. Nature Methods 17:121–122.

Background reading

Altman, N. & Krzywinski, M. (2019) Points of significance: Hidden Markov models. Nature Methods 16:795–796.

Altman, N. & Krzywinski, M. (2019) Points of significance: Markov Chains. Nature Methods 16:663–664.

Genome Sciences Center 20th Anniversary Clothing, Music, Drinks and Art

Tue 28-01-2020

Science. Timeliness. Respect.

Read about the design of the clothing, music, drinks and art for the Genome Sciences Center 20th Anniversary Celebration, held on 15 November 2019.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Luke and Mayia wearing limited edition volunteer t-shirts. The pattern reproduces the human genome with chromosomes as spirals. (zoom)

As part of the celebration and with the help of our engineering team, we framed 48 flow cells from the lab.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Precisely engineered frame mounts of flow cells used to sequence genomes in our laboratory. (zoom)

Each flow cell was accompanied by an interpretive plaque explaining the technology behind the flow cell and the sample information and sequence content.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
The plaque at the back of one of the framed Illumina flow cell. This one has sequence from a patient's lymph node diagnosed with Burkitt's lymphoma. (zoom)

Scientific data visualization: Aesthetic for diagrammatic clarity

Mon 13-01-2020

The scientific process works because all its output is empirically constrained.

My chapter from The Aesthetics of Scientific Data Representation, More than Pretty Pictures, in which I discuss the principles of data visualization and connect them to the concept of "quality" introduced by Robert Pirsig in Zen and the Art of Motorcycle Maintenance.

Yearning for the Infinite — Aleph 2

Mon 18-11-2019

Discover Cantor's transfinite numbers through my music video for the Aleph 2 track of Max Cooper's Yearning for the Infinite (album page, event page).

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Yearning for the Infinite, Max Cooper at the Barbican Hall, London. Track Aleph 2. Video by Martin Krzywinski. Photo by Michal Augustini. (more)

I discuss the math behind the video and the system I built to create the video.