Download - University of Utah

5 downloads 1740 Views 10MB Size Report
Apr 5, 2010 ... VisTrails - Visual Workflow Programming. 2 import vtkdata = vtk. ... . •. XML: Visual QuickStart Guide.
4/5/10

VisTrails: A Python-based Scientific Workflow" and Provenance System David Koop University of Utah and VisTrails, Inc.

www.vistrails.org

VisTrails - Visual Workflow Programming

import vtkdata = vtk.vtkStructuredPointsReader()data.SetFileName(“../examples/data/head.120.vtk”)contour = vtk.vtkContourFilter()contour.SetInput(data.GetOutput())

www.vistrails.org

2

1

4/5/10

Structure Adds Value •  • 

XML: Visual QuickStart Guide

• 

Kevin Howard Goldberg

• 

2

• 

23.09

• 

5

•  •  • 

Beginning XML

• 

David Hunter

• 

Jeff Rafter

• 

Joe Fawcett

• 

Eric van der Vlist

• 

4

• 

26.39

• 

3.5

• 

www.vistrails.org

3

• 

Structure Adds Value

import vtkdata = vtk.vtkStructuredPointsReader()data.SetFileName(../examples/data/head.120.vtk)contour = vtk.vtkContourFilter()contour.SetInput(data.GetOutput())c

www.vistrails.org

4

2

4/5/10

Workflow Differences

www.vistrails.org

5

Workflow Query-by-example

[IEEE Visualization 2007] www.vistrails.org

6

3

4/5/10

Workflow Completions

[IEEE Visualization 2008] www.vistrails.org

7

Provenance in Art • Rembrandt van Rijn • Dutch, 1606 - 1669 • Self-Portrait, 1659 • oil on canvas • Andrew W. Mellon Collection • 1937.1.72 • Provenance

• George, 3rd Duke of Montagu and 4th Earl of Cardigan [d. 1790], by 1767;[1] by inheritance to his daughter, Lady Elizabeth, wife of Henry, 3rd Duke of Buccleuch of Montagu House, London; John Charles, 7th Duke of Buccleuch; (P. & D. Colnaghi & Co., New York, 1928); (M. Knoedler & Co., New York); sold January 1929 to Andrew W. Mellon, Pittsburgh and Washington, D.C.; deeded 28 December 1934 to The A.W. Mellon Educational and Charitable Trust, Pittsburgh; gift 1937 to NGA. • [1] This early provenance is established by presence of a mezzotint after the portrait by R. Earlom (1743-1822), dated 1767. See John Charrington, A Catalogue of the Mezzotints After, or Said to Be After, Rembrandt, Cambridge, 1923, no. 49.

• Associated Names •  Buccleuch, Henry, 3rd Duke of •  Buccleuch, John Charles, 7th Duke of •  Colnaghi & Co., Ltd., P. & D. •  Knoedler & Company, M.

[National Gallery of Art]

•  Mellon, Andrew W.

www.vistrails.org

•  Mellon Educational and Charitable Trust, The A.W. •  Montagu, and 4th Earl of Cardigan, George, 3rd Duke of

8

4

4/5/10

Provenance in Science •  Provenance is as (or more) important as the result!

Date

•  Old solution: -  Lab notebooks •  New problems:

Annotations

-  Large volumes of data -  Complex analyses -  Writing notes doesn’t scale

Observed Data

•  New solution: -  Automated provenance capture with user-defined annotations [DNA Recombination, Lederberg] www.vistrails.org

9

Provenance in VisTrails •  Design Provenance (Version Tree)

•  Execution Provenance (Logging):

www.vistrails.org

10

5

4/5/10

Design Provenance

www.vistrails.org

11

VisTrails - Design Provenance

www.vistrails.org

12

6

4/5/10

Specifications •  Open-source, freely downloadable system (www.vistrails.org) •  Multi-platform: users on Mac, Linux, and Windows •  Python code and uses PyQt and Qt for the interface •  Over 13,000 downloads since 2007 •  User’s guide, wiki, and mailing list •  Many users in different disciplines and countries: •  Visualizing

environmental simulations (CMOP STC)Simulation for solid, fluid and structural mechanics (Galileo Network, UFRJ Brazil)Quantum physics simulations (ALPS, ETH Switzerland)Climate analysis (CDAT)Habitat modeling (USGS) Open Wildland Fire Modeling (U. Colorado, NCAR)High-energy physics (LEPP, Cornell)Cosmology simulations (LANL) •  Using tms for improving memory (Pyschiatry, U. Utah)eBird (Cornell, NSF DataONE)Astrophysical Systems (Tohline, LSU)NIH NBCR (UCSD)Pervasive Technology Labs (Heiland, Indiana University)Linköping UniversityUniversity of North Carolina, Chapel HillUTEP

www.vistrails.org

13

Climate Data Analysis

[CDAT Project, Lawrence Livermore National Lab] www.vistrails.org

14

7

4/5/10

Quantum Lattice Models

[ALPS Project, ETH-Zurich] www.vistrails.org

15

Coastal Margin Observation & Prediction

[NSF Science & Technology Center for Coastal Margin Observation & Prediction] www.vistrails.org

16

8

4/5/10

Comparing Cosmological Simulations

[Cosmic Code Comparison Project, Los Alamos National Lab] www.vistrails.org

17

Wildfire Prediction

[WRF-Fire Project, University of Colorado-Denver] www.vistrails.org

18

9

4/5/10

Demo

www.vistrails.org

19

Extensibility •  Package infrastructure •  Wrap python libraries, command-line calls, or use other interfaces (jpype, rpy, etc.) •  Need to specify: 1.  Package identification information 2.  Module structures: input & output ports 3.  Compute method for each module

www.vistrails.org

20

10

4/5/10

Extensibility Example •  seawater python package: -  http://pypi.python.org/pypi/seawater/1.0.3

identifier = 'org.ocefpaf.seawater'version = '1.0.3'name = 'Seawater Routines'import seawaterclass SaturationN2(Module): _input_ports = [('S', Float), ('T', Float)] _output_ports = [('res', Float)] def compute(self): s = self.getInputFromPort("S") t = self.getInputFromPort("T") res = seawater.satN2(s, t) self.setResult('res', res) _modules = [SaturationN2,

www.vistrails.org

21

VisTrails Components

www.vistrails.org

22

11

4/5/10

VisTrails Maya Plug-in

[VisTrails, Inc., IPAW 2008] www.vistrails.org

23

Provenance Enabling 3rd-Party Tools Autodesk Maya ParaView

VisIt ImageVis3d

www.vistrails.org

24

12

4/5/10

Acknowledgments •  Python Community •  VisTrails Users & Developers •  VisTrails Team -  Dr. Cláudio Silva -  Dr. Juliana Freire

www.vistrails.org

25

Questions

www.vistrails.org

26

13