the challenge of reproducible research in the computer age · the challenge of reproducible...

22
Perspective & Plan Tools & Practices Invitations The challenge of reproducible research in the computer age Production is not the application of tools to materials. It is the application of logic to work. —Peter Drucker, The practice of management (1954) K. Jarrod Millman Helen Wills Neuroscience Institute University of California, Berkeley Applied Mathematics Perspectives 2011 Reproducible Research: Tools and Strategies for Scientific Computing The challenge of reproducible research in the computer age

Upload: others

Post on 11-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

The challenge of reproducible research in thecomputer age

Production is not the application of tools to materials.It is the application of logic to work.

—Peter Drucker, The practice of management (1954)

K. Jarrod MillmanHelen Wills Neuroscience InstituteUniversity of California, Berkeley

Applied Mathematics Perspectives 2011Reproducible Research: Tools and Strategies for Scientific Computing

The challenge of reproducible research in the computer age

Page 2: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Make the dirt fly!

The challenge of reproducible research in the computer age

Page 3: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Culture matters

The challenge of reproducible research in the computer age

Page 4: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Build quality into the process

The challenge of reproducible research in the computer age

Page 5: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

The radical novelty of computing

The concept of radical novelties is of contemporarysignificance because, while we are ill-prepared to cope withthem, science and technology have now shown themselvesexpert at inflicting them upon us.— Edsger Dijkstra, The Cruelty of Really Teaching

Computer Science (1988)

The challenge of reproducible research in the computer age

Page 6: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Better, faster, cheaper

Are we doing a good (enough) job? How would we know?

How long does it take to go from the idea as presented in (say)lab meeting to the paper being submitted?

What proportion of measured data makes it to publication?

Are we duplicating work that other people have done already?

Are we doing work for other people because they don’t know howto do it?

Are there tasks that can be automated?

The challenge of reproducible research in the computer age

Page 7: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

“truth will sooner come out of error than from confusion.”

...so when a man tries all kinds of experiments withoutmethod or order, this is mere groping in the dark; but whenhe proceeds with some direction and order in hisexperiments, it is as if he were led by the hand...— Francis Bacon, Novum Organum (1620)

The challenge of reproducible research in the computer age

Page 8: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Neuroimaging

The challenge of reproducible research in the computer age

Page 9: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Deep magic begins here...

Specialization

Lack of patience

Lack of understanding

Confusion, frustration, and helplessness

The challenge of reproducible research in the computer age

Page 10: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

NIPY

The challenge of reproducible research in the computer age

Page 11: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

The process

How many mistakes do you make?

What do they cost?

Could you have made mistakes you don’t know about?

The challenge of reproducible research in the computer age

Page 12: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

PerspectivePlans

Data & code sharing

Could you send someone else in the lab an email with all theinformation they need to rerun your analysis?

How long would it take to write that email?

The challenge of reproducible research in the computer age

Page 13: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

ToolsPractices

Git for everything

The challenge of reproducible research in the computer age

Page 14: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

ToolsPractices

Python

The challenge of reproducible research in the computer age

Page 15: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

ToolsPractices

“Literate programming”

Sweave: LATEX & R

Sphinx: reStructuredText & Python

The challenge of reproducible research in the computer age

Page 16: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

ToolsPractices

Automate, automate, automate

The challenge of reproducible research in the computer age

Page 17: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

ToolsPractices

Programming as a first class citizen

Read programming articles, books, etc.

Learn new languagues

The challenge of reproducible research in the computer age

Page 18: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

ToolsPractices

Agile methodology

Test driven development

Pair programming

Metaprogramming

The challenge of reproducible research in the computer age

Page 19: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

TeachParticipateReadSubmit

Programming best practices

The challenge of reproducible research in the computer age

Page 20: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

TeachParticipateReadSubmit

Python

The challenge of reproducible research in the computer age

Page 21: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

TeachParticipateReadSubmit

http://33bits.org

The challenge of reproducible research in the computer age

Page 22: The challenge of reproducible research in the computer age · The challenge of reproducible research in the computer age Production is not the application of tools to materials. It

Perspective & PlanTools & Practices

Invitations

TeachParticipateReadSubmit

Open Research Computation

The challenge of reproducible research in the computer age