2023 Pi Daylatest newsbuy art
Sun is on my face ...a beautiful day without you.Royskoppbe apartmore quotes
very clickable
art + design
buy artwork Snellen eye chart - Braille 2 by Martin Krzywinski
VISIONS OF TYPE | Put my typographical posters on your wall. (buy artwork / see all my art)
The 2013 π Day art inaugurated my π Day art series. Yup, I drew some circles."
See how much you can see with my modern interpretation of the Snellen eye chart. Test yourself with mathematical operators, physical constants, chemical elements and nautical flags. There's even a version for the sightless.
The charts use my SnellenMK optotype font.

Visions of Type

buy artwork
The last lines of the plays of William Shakespare by Martin Krzywinski
THE FINAL WORDS | The last lines of all Shakespeare plays. (buy artwork / see all my art)

the type of man with the best words

This section celebrates the words of William Shakespeare.

If you love letters in just the right combination, these pages, the art is for you. If you like to delve into the words yourself, use my plain-text annotated version of all his plays.

The posters are available for purchase.

1 · Last Lines of All 37 Plays of Shakespeare

I've decided to remove all punctuation except ampersands in the titles of plays. Because who doesn't love ampersands?

The last line of Henry IV Part II is the one by Lancaster ("Come, will you hence?") instead of the Dancer's epilogue line ("before you; but, indeed, to pray for the queen.").

And now let's go hand in hand, not one before another.
— Dromio of Ephesus (A Comedy of Errors)

And Robin shall restore amends.
— Puck (A Midsummer Night's Dream)

We were dissever'd: hastily lead away.
— Leontes (A Winter's Tale)

Your gentle hands lend us, and take our hearts.
— King (All's Well That Ends Well)

High order in this great solemnity.
— Octavius Caesar (Antony and Cleopatra)

kind offer, when I make curtsy, bid me farewell.
— Rosalind (As You Like It)

Yet he shall have a noble memory. Assist.
— Aufidius (Coriolanus)

Ere bloody hands were wash'd, with such a peace.
— Cymbeline (Cymbeline)

Go, bid the soldiers shoot.
— Prince fortinbras (Hamlet)

Let us not leave till all our own be won.
— King Henry IV (Henry IV Part I)

Come, will you hence?
— Lancaster (Henry IV Part II)

In your fair minds let this acceptance take.
— Chorus (Henry V)

If they hold when their ladies bid 'em clap.
— King Henry VIII (Henry VIII)

But I will rule both her, the king and realm.
— Suffolk (Henry VI Part I)

And more such days as these to us befall!
— Warwick (Henry VI Part II)

For here, I hope, begins our lasting joy.
— King Edward IV (Henry VI Part III)

To part the glories of this happy day.
— Octavius (Julius Caesar)

If England to itself do rest but true.
— Bastard (King John)

Shall never see so much, nor live so long.
— Albany (King Lear)

Apollo. You that way: we this way.
— Adriano de Armado (Love's Labours Lost)

Whom we invite to see us crown'd at Scone.
— Malcolm (Macbeth)

What's yet behind, that's meet you all should know.
— Duke Vincentio (Measure for Measure)

So sore as keeping safe Nerissa's ring.
— Gratiano (Merchant of Venice)

For he tonight shall lie with Mistress Ford.
— Ford (Merry Wives of Windsor)

Strike up, pipers.
— Benedick (Much Ado About Nothing)

This heavy act with heavy heart relate.
— Lodovico (Othello)

New joy wait on you! Here our play has ending.
— Gower (Pericles)

In weeping after this untimely bier.
— Henry Bolingbroke (Richard II)

That she may long live here, God say amen!
— Richmond (Richard III)

Than this of Juliet and her Romeo.
— Prince (Romeo and Juliet)

'Tis a wonder, by your leave, she will be tamed so.
— Lucentio (Taming of the Shrew)

Let your indulgence set me free.
— Prospero (The Tempest)

Let our drums strike.
— Alcibiades (Timon of Athens)

That like events may ne'er it ruinate.
— Lucius (Titus Andronicus)

And at that time bequeathe you my diseases.
— Pandarus (Troilus and Cressida)

And we'll strive to please you every day.
— Clown (Twelfth Night)

One feast, one house, one mutual happiness.
— Valentine (Two Gentlemen of Verona)


2 · Parsing Shakespeare

Using my plain-text annotated version of all of his plays, pulling out the last lines is trivial at the command line.

# last lines in a play are annotated with -p flag
> grep -w "\-p" shakespeare.all.plays.plain.text.txt | cut -d "|" -f 1,14
A_Comedy_of_Errors | And now let's go hand in hand, not one before another.
A_Midsummer_nights_dream | And Robin shall restore amends.
A_Winters_Tale | We were dissever'd: hastily lead away.
Alls_well_that_ends_well | Your gentle hands lend us, and take our hearts.
Antony_and_Cleopatra | High order in this great solemnity.
As_you_like_it | kind offer, when I make curtsy, bid me farewell.
Coriolanus | Yet he shall have a noble memory. Assist.
Cymbeline | Ere bloody hands were wash'd, with such a peace.
Hamlet | Go, bid the soldiers shoot.
Henry_IV_Part_1 | Let us not leave till all our own be won.
Henry_IV_Part_2 | before you; but, indeed, to pray for the queen.
Henry_V | In your fair minds let this acceptance take.
Henry_VI_Part_1 | But I will rule both her, the king and realm.
Henry_VI_Part_2 | And more such days as these to us befall!
Henry_VI_Part_3 | For here, I hope, begins our lasting joy.
Henry_VIII | If they hold when their ladies bid 'em clap.
Julius_Caesar | To part the glories of this happy day.
King_John | If England to itself do rest but true.
King_Lear | Shall never see so much, nor live so long.
Loves_Labours_Lost | Apollo. You that way: we this way.
Macbeth | Whom we invite to see us crown'd at Scone.
Measure_for_measure | What's yet behind, that's meet you all should know.
Merchant_of_Venice | So sore as keeping safe Nerissa's ring.
Merry_Wives_of_Windsor | For he tonight shall lie with Mistress Ford.
Much_Ado_about_nothing | Strike up, pipers.
Othello | This heavy act with heavy heart relate.
Pericles | New joy wait on you! Here our play has ending.
Richard_II | In weeping after this untimely bier.
Richard_III | That she may long live here, God say amen!
Romeo_and_Juliet | Than this of Juliet and her Romeo.
Taming_of_the_Shrew | 'Tis a wonder, by your leave, she will be tamed so.
The_Tempest | Let your indulgence set me free.
Timon_of_Athens | Let our drums strike.
Titus_Andronicus | That like events may ne'er it ruinate.
Troilus_and_Cressida | And at that time bequeathe you my diseases.
Twelfth_Night | And we'll strive to please you every day.
Two_Gentlemen_of_Verona | One feast, one house, one mutual happiness.
news + thoughts

Convolutional neural networks

Thu 17-08-2023

Nature uses only the longest threads to weave her patterns, so that each small piece of her fabric reveals the organization of the entire tapestry. – Richard Feynman

Following up on our Neural network primer column, this month we explore a different kind of network architecture: a convolutional network.

The convolutional network replaces the hidden layer of a fully connected network (FCN) with one or more filters (a kind of neuron that looks at the input within a narrow window).

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Convolutional neural networks. (read)

Even through convolutional networks have far fewer neurons that an FCN, they can perform substantially better for certain kinds of problems, such as sequence motif detection.

Derry, A., Krzywinski, M & Altman, N. (2023) Points of significance: Convolutional neural networks. Nature Methods 20:.

Background reading

Derry, A., Krzywinski, M. & Altman, N. (2023) Points of significance: Neural network primer. Nature Methods 20:165–167.

Lever, J., Krzywinski, M. & Altman, N. (2016) Points of significance: Logistic regression. Nature Methods 13:541–542.

Neural network primer

Tue 10-01-2023

Nature is often hidden, sometimes overcome, seldom extinguished. —Francis Bacon

In the first of a series of columns about neural networks, we introduce them with an intuitive approach that draws from our discussion about logistic regression.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Neural network primer. (read)

Simple neural networks are just a chain of linear regressions. And, although neural network models can get very complicated, their essence can be understood in terms of relatively basic principles.

We show how neural network components (neurons) can be arranged in the network and discuss the ideas of hidden layers. Using a simple data set we show how even a 3-neuron neural network can already model relatively complicated data patterns.

Derry, A., Krzywinski, M & Altman, N. (2023) Points of significance: Neural network primer. Nature Methods 20:165–167.

Background reading

Lever, J., Krzywinski, M. & Altman, N. (2016) Points of significance: Logistic regression. Nature Methods 13:541–542.

Cell Genomics cover

Mon 16-01-2023

Our cover on the 11 January 2023 Cell Genomics issue depicts the process of determining the parent-of-origin using differential methylation of alleles at imprinted regions (iDMRs) is imagined as a circuit.

Designed in collaboration with with Carlos Urzua.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Our Cell Genomics cover depicts parent-of-origin assignment as a circuit (volume 3, issue 1, 11 January 2023). (more)

Akbari, V. et al. Parent-of-origin detection and chromosome-scale haplotyping using long-read DNA methylation sequencing and Strand-seq (2023) Cell Genomics 3(1).

Browse my gallery of cover designs.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
A catalogue of my journal and magazine cover designs. (more)

Science Advances cover

Thu 05-01-2023

My cover design on the 6 January 2023 Science Advances issue depicts DNA sequencing read translation in high-dimensional space. The image showss 672 bases of sequencing barcodes generated by three different single-cell RNA sequencing platforms were encoded as oriented triangles on the faces of three 7-dimensional cubes.

More details about the design.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
My Science Advances cover that encodes sequence onto hypercubes (volume 9, issue 1, 6 January 2023). (more)

Kijima, Y. et al. A universal sequencing read interpreter (2023) Science Advances 9.

Browse my gallery of cover designs.

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
A catalogue of my journal and magazine cover designs. (more)

Regression modeling of time-to-event data with censoring

Thu 17-08-2023

If you sit on the sofa for your entire life, you’re running a higher risk of getting heart disease and cancer. —Alex Honnold, American rock climber

In a follow-up to our Survival analysis — time-to-event data and censoring article, we look at how regression can be used to account for additional risk factors in survival analysis.

We explore accelerated failure time regression (AFTR) and the Cox Proportional Hazards model (Cox PH).

Martin Krzywinski @MKrzywinski mkweb.bcgsc.ca
Nature Methods Points of Significance column: Regression modeling of time-to-event data with censoring. (read)

Dey, T., Lipsitz, S.R., Cooper, Z., Trinh, Q., Krzywinski, M & Altman, N. (2022) Points of significance: Regression modeling of time-to-event data with censoring. Nature Methods 19:1513–1515.


© 1999–2023 Martin Krzywinski | contact | Canada's Michael Smith Genome Sciences CentreBC Cancer Research CenterBC CancerPHSA