User Tutorial Neoseg Pipeline 1.0 Marie Cherel, François Budin, Martin Styner NIRAL website:

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Excel Tutorial 6 Managing Multiple Worksheets and Workbooks
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
HELP GUIDE NEW USER REGISTRATION (SLIDE 2) TAKING A QUIZ (SLIDE 8) REVIEWING A QUIZ (SLIDE 17) GROUP MEMBERSHIP (SLIDE 26) CREATING QUIZZES (SLIDE 31)
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Tutorial EBSCOadmin Branding support.ebsco.com. To help you enhance the search experience for your users, EBSCO offers a number of custom branding options.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Installing geant4 v9.5 using Windows Daniel Brandt, 06 April 2012 Installing Geant4 v9.5 for Windows A step-by-step guide for Windows XP/Vista/7 using.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
Access Tutorial 10 Automating Tasks with Macros
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
® IBM Software Group © 2009 IBM Corporation Rational Publishing Engine RQM Multi Level Report Tutorial David Rennie, IBM Rational Services A/NZ
Career Services Center Employer Training. This is the main login page. The link can be found at Employers.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Using the FOCUS Teacher’s Desk © Copyright 2007 Florida Department of Education. All rights reserved.
Creating a Web Site to Gather Data and Conduct Research.
WRF Domain Wizard A tool for the WRF Preprocessing System Jeff Smith Paula McCaslin July 17, 2008.
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Online Training for TEXAS TECH UNIVERSITY and TEXAS TECH HSC Hiring Managers Employment Office April 2003.
Marcel Casado NCAR/RAP WEATHER WARNING TOOL NCAR.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
FireRMS NEMSIS (Part 2) Presented by Laura Small FireRMS Quality Assurance.
VistA Imaging Capture via Scanning. October VistA Imaging Capture via Scanning The information in this documentation includes only new and updated.
GDT Development Tutorial. GDT Development Tutorial Doug Evans and Detlef Lexut GDT 2008 International User Conference August 10 – 13  Lake Las Vegas,
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
RMS Importer Status MACS Week March 2011 PP b-ABR_RMSImporterStatus Angela Brett RMS Importer Status 1.
The set of files includes : Tcl source of the POLYGON program The database (file obtained initially by P.Afonine from using phenix.model_vs_data.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
Word 2007 What’s New. Ribbon Interface Replaces toolbars and menus Contains tabs and grouped commands Each tab corresponds to task Related items grouped.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
PLACING AND LINKING GRAPHICS
Key Applications Module Lesson 17 — Organizing Worksheets Computer Literacy BASICS.
NA-MIC National Alliance for Medical Image Computing Shape analysis using spherical harmonics Lucile Bompard, Clement Vachet, Beatriz.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
NA-MIC National Alliance for Medical Image Computing Diffusion Tensor Imaging tutorial Sonia Pujol, PhD Surgical Planning Laboratory.
Debugging Ensemble Productions CAMTA Meeting 11 th November 2010 John Murray.
Office of Housing Choice Voucher Program Voucher Management System – VMS Version Released October 2011.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Sonia Pujol, PhD -1- National Alliance for Medical Image Computing Neuroimage Analysis Center Diffusion Tensor Imaging tutorial Sonia Pujol, Ph.D. Surgical.
-1- National Alliance for Medical Image Computing Slicer3 Training Tutorial ARCTIC (v1.2) (Automatic Regional Cortical ThICkness) ‏ University of North.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial Nonrigid Atlas Registration Dominik Meier, Ron Kikinis February.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Downloading the MAXENT Software
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
1 Berger Jean-Baptiste
XP Creating Web Pages with Microsoft Office
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Development Environment
Tutorial: AutoTract.
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
The Linux Operating System
Windows Internet Explorer 7-Illustrated Essentials
NWSI Neuroimaging Web Services Interface
Embedding Graphics in Web Pages
Presentation transcript:

User Tutorial Neoseg Pipeline 1.0 Marie Cherel, François Budin, Martin Styner NIRAL website:

1. Presentation  NeosegPipeline is a tool to segment automatically neonate brain MRI using a subject-specific atlas.  This subject-specific atlas is generated based on: - An atlas population : set of cases with a T1, a T2 and a segmentation - Some diffusion information of the subject to segment  This atlas is then given as a input of a single atlas segmentation method called Neoseg 1.1. Principle

 NeosegPipeline writes Python scripts and then run them  This approach allows to: - Keep a trace of what have been done - Eventually run them again with the exact same parameters 1. Presentation 1.1. Principle

 NeosegPipeline is a free and open-source project  The executable, the documentation and all other information related to the project can be found on its NITRC page:  The source code of the project is available on Github:  A tutorial video on how to use the tool can be found on youtube:  A multi-subject brain atlas can be downloaded from here: Presentation 1.2. Links

The Graphical User Interface (GUI) is composed of:  1 menu  1 toolbar  8 tabs  1 computation area 2. Interface 2.1. Presentation

 The menu contains: - A File section - A Help section  The File section allows to load and save XML files for the configuration of the paramaters and software.  The Help section allows to open an about window with some basic information about the tool. 2. Interface 2.2. Menu

 The toolbar contains shortcuts to the different actions: Load an XML file for the parameters configuration Save an XML file for the parameters configuration Load an XML file for the software configuration Save an XML file for the software configuration Run the pipeline Stop the pipeline Display the T1 and T2 images and the final segmentation Open the about window 2. Interface 2.3. Toolbar

 1 tab for the data  1 tab for the atlas  1 tab per step - Pre-processing - Atlas Population Registration - Atlas Generation - Neoseg Execution and post-processing  1 tab for the software configuration  1 tab for the execution 2. Interface 2.4. Tabs

 Required input: - a T1 weighted image - a T2 weighted image - a brain mask  Optional input: - a DWI (Diffusion Weighted Image) (to include the FA in the propability maps and/or add the AD as an additional modality in Neoseg and/or reassign the small islands of WM)  Output - an output directory where all the files generated will be written - a prefix (that can be related to the neonate to segment, eg: « BUSS_1234 » or « 1234 ») - a suffix (that can be related to the tool used, by default « NP » for NeosegPipeline) Data tab 2. Interface 2.4. Tabs

 For each file or directory you can either: - Select it by clicking on the button to open a file browser - Enter the path in the line edit Data tab 2. Interface 2.4. Tabs

 For the atlas you can either: - Generate a new subject-specific atlas based on an atlas population - Use an existing atlas, subject-specific or not  By default the generation of a new subject-specific atlas is selected Atlas tab 2. Interface 2.4. Tabs

 To generate a new subject-specific atlas, the pipeline requires an atlas population = set of cases called «atlases»  These atlases can either be probabilistic or non-probabilistic:  Non-probabilistic cases must include: - a T1 image - a T2 image - a 3-labels segmentation (label0 = BG, label1 = WM, label2 = GM, label3 = CSF)  Probabilistic cases must include: - a template T1 - a template T2 - a probability map for WM - a probability map for GM The probability maps have to range from 0 to 1 - a probability map for CSF Atlas tab 2. Interface 2.4. Tabs

 All the atlases must be gathered in one directory with one directory for each atlas Atlas tab 2. Interface 2.4. Tabs

 To be recognized: - T1 image filenames must contain *T1* - T2 image filenames must contain *T2* - 3-labels segmentation filenames must contain *seg* - WM probability map filenames must contain *white* - GM probability map filenames must contain *gray* - CSF probability map filenames must contain *csf*  These keywords are insensitive to the case Atlas tab 2. Interface 2.4. Tabs

 The atlas population directory can be pre-filled by setting the environnement variable : NEOSEG_PIPELINE_ATLAS_POPULATION to the path of the atlas population directory by default.  To set your environnement variable you have to edit your shell configuration file - In bash you can to edit the.bashrc file located in your home directory Add the line: export NEOSEG_PIPELINE_ATLAS_POPULATION=path - In tcsh you can to edit the.tcshrc file located in your home directory Add the line: setenv NEOSEG_PIPELINE_ATLAS_POPULATION path Remark: These configuration files are hidden by default Atlas tab [Advanced] 2. Interface 2.4. Tabs

 Each time the atlas population directory is changed, the list of the atlases available is automatically updated  For each atlas, the presence of the required files is checked  For probabilistic atlases, the range of the probability maps is also checked  If an atlas is not correct, it is disabled and cannot be selected.  By default all the atlases are selected Atlas tab 2. Interface 2.4. Tabs

 An existing atlas must include: - a template T1 named « templateT1 » - a template T2 named « templateT2 » - a WM probabilty map named « white » - a GM probability map named « csf » - a rest probability map « rest » Atlas tab 2. Interface 2.4. Tabs

 The preprocessing step concerns both: - Structural images - Diffusion images  The different steps of the preprocessing are shown beside: Preprocessing tab 2. Interface 2.4. Tabs

 Structural images parameters: Both the skull-stripping and the inhomogeneity correction can be skipped if already done  Diffusion images parameters : All the parameters concern the registration part and correspond to the parameters of ANTS. For more informations about the choice of these parameters, refer to the ANTS documentation Preprocessing tab 2. Interface 2.4. Tabs (

 In this step, all the cases from the atlas population are registered to the case to segment Atlas Registration tab 2. Interface 2.4. Tabs  The parameters concern both:  The registration  The resources available on the computer

 Registration Parameters: All the parameters correspond to the parameters of ANTS. For more informations about the choice of these parameters, refer to the ANTS documentation ( Atlas Registration tab 2. Interface 2.4. Tabs

 The pipeline can be run - On the current computer (Locally) - On KillDevil (UNC super-computing system)  If the pipeline is run locally, you can choose: - How many registrations are run in parallel (1 by default) - How many cores one registration uses (1 by default)  If the pipeline is run on KillDevil, all the registrations are run in parallel. For each registration you can choose the ressources requested: - How many cores one registration uses (1 by default) - How many GB uses one registration (4GB by default, but it may need to be adjusted depending on the size of the images) Atlas Registration tab 2. Interface 2.4. Tabs

 In this step we generate the subject-specific probabilistic atlas  The different operations are shown beside: Atlas Generation tab 2. Interface 2.4. Tabs

 The parameters concern: - The computation of the weights - The inclusion of the FA in the probability maps - The smoothing of the probability maps Atlas Generation tab 2. Interface 2.4. Tabs

 The computation of the weights allows the atlas to be more adapted to the subject to segment, and thus to give better results  The weights are computed locally, based on the similarity with the subject to segment. The similarity is evaluated with the normalized cross-correlation metric.  Weights parameters: - The computation of the weights is optional (activated by defaut) - The modality (T1 or T2) on which the weights are computed - The radius of the neighborhood and its unit (3mm by default) Atlas Generation tab 2. Interface 2.4. Tabs

 Including the FA in the probability maps can help segmenting the corpus callosum and the internal capsules.  First the FA is masked to keep only the center of the brain, and spread with an error function to keep only the regions where the FA is very high. Then the FA is smoothed and added to the WM average.  Parameters: - The inclusion of the FA in the probability maps is optional (activated by defaut) - The error function used to spread the FA is defined by the shift and the sigma scale - The kernel size of the gaussian smoothing - The weight of the FA when it is added to the WM average Atlas Generation tab 2. Interface 2.4. Tabs

 The probability maps are smoothed to convert discrete values to continuous values  The more atlases are in the atlas population, the smaller the smoothing kernel size has to be  Parameters: - Type of smoothing (Gaussian or Curve Evolution, Gaussian by default) - Size of the kernel (1mm by default) Atlas Generation tab 2. Interface 2.4. Tabs

 In the Neoseg step, we compute the segmentation.  The different steps are shown below: Neoseg tab 2. Interface 2.4. Tabs

 Neoseg is a single atlas segmentation method based on an Expectation Maximisation (EM) algorithm  All the parameters correspond to the parameters of Neoseg. For more information about the choice of these parameters, refer to the Neoseg documentation (???) Neoseg tab 2. Interface 2.4. Tabs

 In the post processing steps, we merge the myelinated and unmyelinated WM and remove the small islands of WM by reassigning them.  Parameters - The merging of the unmyelinated and myelinated WM is optional (activated by default) - The reassigning of WM small islands is optional (activated by default) - The threshold for the WM small islands (200 pixels by default) Neoseg tab 2. Interface 2.4. Tabs

 The pipeline requires several external executables and libraries Software tab 2. Interface 2.4. Tabs

 The pipeline requires several extarnal executables. Only InsightSNAP is optional because it is used only for the display of the results.  NeosegPipeline automatically searches the executables in the current directory and in the PATH.  NeosegPipeline checks if the file is executable and if the output of the command «--version» or «--help» is consistent.  Each executable can be changed directly in the GUI by opening a browser window or entering the path of the executable Software tab 2. Interface 2.4. Tabs

 Some executables also require libraries whose directory paths are defined in environnement variables  NeosegPipeline automatically searches for the environnement variables corresponding to the libraries needed  The library directory can be selected by opening a browser window or by entering the path Software tab 2. Interface 2.4. Tabs

 To use a specific set of software you can load a XML files with all the paths of the executables and library directories  A XML file for the software configuration can be automatically loaded by setting the environnement variable: NEOSEG_PIPELINE_EXECUTABLES to the path of the XML file by default.  To set your environnement variable you have to edit your shell configuration file - In bash you can to edit the.bashrc file located in your home directory Add the line: export NEOSEG_PIPELINE_EXECUTABLES =path - In tcsh you can to edit the.tcshrc file located in your home directory Add the line: setenv NEOSEG_PIPELINE_EXECUTABLES path Remark: These configuration files are hidden by default Software tab 2. Interface 2.4. Tabs

 This tab allows to follow the progress of the pipeline.  All the command lines and their outputs are displayed in the text area.  It is also possible to display the log of the registrations by checking the registrations radio button and selecting the atlas you want to see the execution of the registration Execution tab 2. Interface 2.4. Tabs

 The computation area gathers some general options about the execution and computation of the pipeline.  The «overwritting existing results» option allows using the existing results or restarting the pipeline from scratch (desactivated by default)  The «stopping if error» option allows to stop if a error occured (activated by default)  The «cleaning-up» option allows to remone the transitional files. If the pipeline failed, the output directory is not cleaned to make the debugging easier (activated by default) 2. Interface 2.5. Computation area

 The pipeline can be run: - On the current computer (Locally) - On KillDevil (UNC super-computing system)  Given these two computing systems, the pipeline can be run in three ways: - Locally - On KillDevil - On KillDevil «interactive»  When running the pipeline on killdevil, the submission of an independant job prevents the printing of the log. Only the busy indicator shows if the pipeline is still running or not. Nevertheless the pipeline is still writing a log file that can be displayed at anytime.  With the KillDevil interactive option, the pipeline is run in a interactive job. This way the main script is running in the same job as the interface and the log can be printed. However NeosegPipeline is still submitting a new job for each registration, thus the execution of the registrations is still unaivalable for printing 2. Interface 2.5. Computation area

 To run the pipeline in KillDevil (option « KillDevil » or « KillDevil interactive ») you first need to connect to KillDevil with the command line: « ssh killdevil.unc.edu »  To run the pipeline with the « KillDevil » option, you just have to launch NeosegPipeline with the command line: « NeosegPipeline + arguments »  To run the pipeline with the « KillDevil interactive » option, you have to launch NeosegPipeline in an interactive job with the following command: « bsub -q day -n 1 –M 4 –R «span[hosts=1]» NeosegPipeline + arguments » 2. Interface 2.5. Computation area

 When pressing the « Run pipeline » button, NeosegPipeline - Check the data, parameters and software - Write the Python scripts - Run the Python scripts  When the pipeline is running, the busy indicator is shown and the modification of options or parameters is disabled.  When pressing the « Stop pipeline » button, Neoseg Pipeline terminate the execution of all the Python scripts.  Then the parameters can be changed and the pipeline restarted as many times as necessary 2. Interface 2.5. Computation area

 NeosegPipeline also has a command line interface (CLI) that allows passing arguments for the data, parameters and software.  The execution of the command « NeosegPipeline --help » will give you more information about the syntax of the command line.  Here is an example of a command line: « NeosegPipeline – output output_directory --T1 T1.nrrd --T2 T2.nrrd --mask mask.nrrd --DWI DWI.nrrd --parameters parameters.xml --executables executable.xml »  If opening the GUI, the fields are pre-filled with the values passed through the command line but they can still be modified.  It is also possible not opening the GUI and launching directly the pipeline by adding the flag « --noGui ». (If you do not want to open the GUI, be sure to pass all the data required) 3. Command line interface (CLI)