2025 π Day latest news buy art
Lips that taste of tears, they say, are the best for kissing.Dorothy Parkerget crankymore quotes
very clickable
data visualization + art
The Earth BioGenome Project (EBP) seeks to create a new foundation for biology to drive solutions for preserving biodiversity and sustaining human societies.

PNAS cover — Earth BioGenome Project

An enlightened perspective on our planet

Lewin HA et al., The Earth BioGenome Project 2020: Starting the clock. (2022) PNAS 119(4) e2115635118

1 · A world of sequence

The design represents a genomics perspective on the biodiversity of the Earth.

The basis of the design are the shape of continents. These were taken from the award-winning Authagraph Map, which is a projection that strongly preserves shapes and areas. Wired calls it “not perfect, but close”.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Authagraph map by Hajime Narukawa. Shapes and areas are strongly preserved.

I rearranged the authagraph map to fit the aspect ratio of the cover image (nearly 1:1) and allow for enough room for text on the cover. To make things interesting, I put Antarctica in the center — north is everywhere. Given how the image is constructed (read below), I had to remove some islands. Sorry, Madagascar — you're a star.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Layout of authagraph continents.

Australia has the job of representing all of Oceania, such as Inaccessible Island.

2 · Journey of fewest steps

For each continent and ocean, a travelling salesman problem (TSP) was solved to find the shortest (or close to it) path that covers the area. The path joins points that were sampled at a level of detail that I thought would strike a good balance between detail and legibility.

Some continents do not have full coverage by the path &mdsah; some small islands and peninsulas were excluded (or extended). This needed to be done to give room for the ocean path between continents and to avoid situations where the ocean path crossed a landmass. The shortest solution isn't always the most appropriate.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
A TSP path for each land mass and ocean.

The number of points visited for each landmass were

  1,575 africa
    848 antarctica
  2,818 asia
    475 australia
    713 europe
  1,674 namerica
 17,354 ocean
    872 samerica
 26,329 ALL

I then smoothed the path using a J-spline curve.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
A smoothed J-spline of the TSP path for each land mass and ocean. The original TSP path is shown as a thin line.

3 · Adding the double helix

The DNA double helix is a trope — let's embrace it.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
The smoothed J-spline was used to create a double helix. The parameters for the helix were selected to balance detail with clarity.

And before you start pixel peeping: the helix doesn't have handedness. It's composed of three independent stacked layers: one layer per strand strands and one layer with bonds.

Once the helix was drawn, I added bases as circles and resized to increase visibility while avoiding overlap.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Bases are added to the double helix.

The number of base pairs per area is

              nbp
 australia    596 
    europe    872 
antarctica  1,024
  samerica  1,064
    africa  1,911
  namerica  2,033 
      asia  3,403
     ocean 21,208
           ------
           32,111

4 · Adding sequence

I mapped species sequenced as part of the Earth BioGenome Project to the path that corresponded to their habitat location. This was done using a combination of automated searches through the Global Biodiversity Information Facility (GBIF) and manual corrections.

For a given path, the length of the sequence of each species was fixed and depended on the length of the area's double helix and number of species assigned to it.

For example, in Africa we have 1,911 bases to distribute across 87 species, giving us `1911/87-1=20` bases per species. The value is rounded down to the nearest integer and the `-1` term allows for a gap between each sequence.

The ocean area is very large and has relatively few species, so we can have long sequences — 396 bases per species.

              nbp   species  bp_per_species 
 australia    596        71               7  
    europe    872       113               6  
antarctica  1,024         2             511  
  samerica  1,064        93              10  
    africa  1,911        87              20  
  namerica  2,033       182              10  
      asia  3,403       206              15  
     ocean 21,208        52             396  
           ------       ---                  
           32,111       806                  

Any bases left over on the helix were assigned to gaps. Initially, I thought of concatenating the sequences without any gaps. While this would allow me to represent (neglibibly) longer sequences, I was persuaded against this idea (thank you Emma!).

First, the Earth Biogenome sequencing isn't complete (nor will it ever be), so gaps in the sequence are a nice metaphor for this. Second, the gaps offer some hope of actually reading the sequences off for each species. Below is a view of one of the strands with the backbone and base pair locations within gaps shown in magenta.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Distribution of gaps (magenta) in the sequence path. Gaps add up to about 5.5% of the total bases in the design.

In the final figure, the helix backbone in gaps is faded.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
The double helix is faded in gaps.

In the final figure, bases are colored by nucleotide (A, T, C, G) and region (land vs ocean).

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Bases of the sequence are encoded by colored circles. The first base of the first sequence on a path is indicated by a (hard-to-find) black triangle.

5 · Download sequences

You can download each species's sequence and its location.

Sequences were sampled from the Genbank records starting at the first non-repeated base. This was a quick way to avoid spamming the design with polytails.

For example, the sequence for the Hanuman langur

>PVII010000001.1:1-1000 Semnopithecus entellus isolate BS30 SemEnt_scaffold_0, WGS
AAAAA AAAAA AAAAA AAAAA AAAAA AAATT ATTTT GCTAA GGTCT GAGAA CTCCA GAAGG TGGTG TCGTG
----- ----- ----- ----- ----- ---++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++
                                 ** ***** ***** ***

was sampled by skipping the first 28 bases (A's) and uses the sequence indicated by * above.

6 · What's where

The position and sequence for each species is shown below. The first base of the sequence is capitalized and remaining are lowercase. The numeric code below the species name is the taxon, a unique taxonomy ID used by Genbank.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Discover what's where. Shown are the species, taxon (unique taxonomy ID) and sequence for each of the 806 species in the design. Species and taxon labels are placed at the average (x,y) position of its bases. It'll do.

A version of the above without the sequence is shown below.

Martin Krzywinski / Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Discover what's where. Shown are the species name, taxon (unique taxonomy ID) and sequence for each of the 806 species in the design. Species and taxon labels are placed at the average (x,y) position of its bases. It'll do.
news + thoughts

Beyond Belief Campaign BRCA Art

Wed 11-06-2025

Fuelled by philanthropy, findings into the workings of BRCA1 and BRCA2 genes have led to groundbreaking research and lifesaving innovations to care for families facing cancer.

This set of 100 one-of-a-kind prints explore the structure of these genes. Each artwork is unique — if you put them all together, you get the full sequence of the BRCA1 and BRCA2 proteins.

Propensity score weighting

Mon 17-03-2025

The needs of the many outweigh the needs of the few. —Mr. Spock (Star Trek II)

This month, we explore a related and powerful technique to address bias: propensity score weighting (PSW), which applies weights to each subject instead of matching (or discarding) them.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Propensity score weighting. (read)

Kurz, C.F., Krzywinski, M. & Altman, N. (2025) Points of significance: Propensity score weighting. Nat. Methods 22:1–3.

Happy 2025 π Day—
TTCAGT: a sequence of digits

Thu 13-03-2025

Celebrate π Day (March 14th) and sequence digits like its 1999. Let's call some peaks.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
2025 π DAY | TTCAGT: a sequence of digits. The digits of π are encoded into DNA sequence and visualized with Sanger sequencing. (details)

Crafting 10 Years of Statistics Explanations: Points of Significance

Sun 09-03-2025

I don’t have good luck in the match points. —Rafael Nadal, Spanish tennis player

Points of Significance is an ongoing series of short articles about statistics in Nature Methods that started in 2013. Its aim is to provide clear explanations of essential concepts in statistics for a nonspecialist audience. The articles favor heuristic explanations and make extensive use of simulated examples and graphical explanations, while maintaining mathematical rigor.

Topics range from basic, but often misunderstood, such as uncertainty and P-values, to relatively advanced, but often neglected, such as the error-in-variables problem and the curse of dimensionality. More recent articles have focused on timely topics such as modeling of epidemics, machine learning, and neural networks.

In this article, we discuss the evolution of topics and details behind some of the story arcs, our approach to crafting statistical explanations and narratives, and our use of figures and numerical simulations as props for building understanding.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Crafting 10 Years of Statistics Explanations: Points of Significance. (read)

Altman, N. & Krzywinski, M. (2025) Crafting 10 Years of Statistics Explanations: Points of Significance. Annual Review of Statistics and Its Application 12:69–87.

Propensity score matching

Mon 16-09-2024

I don’t have good luck in the match points. —Rafael Nadal, Spanish tennis player

In many experimental designs, we need to keep in mind the possibility of confounding variables, which may give rise to bias in the estimate of the treatment effect.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Propensity score matching. (read)

If the control and experimental groups aren't matched (or, roughly, similar enough), this bias can arise.

Sometimes this can be dealt with by randomizing, which on average can balance this effect out. When randomization is not possible, propensity score matching is an excellent strategy to match control and experimental groups.

Kurz, C.F., Krzywinski, M. & Altman, N. (2024) Points of significance: Propensity score matching. Nat. Methods 21:1770–1772.

Martin Krzywinski | contact | Canada's Michael Smith Genome Sciences CentrePHSA
Google whack “vicissitudinal corporealization”
{ 10.9.234.152 }