Bioimage Data Analysis Workflows (Learning Materials in Biosciences) - , 978-3030223854
Bioimage Data Analysis Workflows (Learning Materials in Biosciences) - , 978-3030223854
Biosciences)
Visit the link below to download the full version of this book:
https://cheaptodownload.com/product/bioimage-data-analysis-workflows-learning-ma
terials-in-biosciences-full-pdf-download/
Learning Materials in Biosciences textbooks compactly and concisely discuss a specific biological, bio-
medical, biochemical, bioengineering or cell biologic topic. The textbooks in this series are based on lec-
tures for upper-level undergraduates, master’s and graduate students, presented and written by
authoritative figures in the field at leading universities around the globe.
The titles are organized to guide the reader to a deeper understanding of the concepts covered.
Each textbook provides readers with fundamental insights into the subject and prepares them to
independently pursue further thinking and research on the topic. Colored figures, step-by-step protocols
and take-home messages offer an accessible approach to learning and understanding.
In addition to being designed to benefit students, Learning Materials textbooks represent a valuable
tool for lecturers and teachers, helping them to prepare their own respective coursework.
Bioimage Data
Analysis Workflows
Editors
Kota Miura Nataša Sladoje
Im Neuenheimer Feld 267 Department of Information Technology
Nikon Imaging Center Bioquant BQ 0004 Centre for Image Analysis,
Heidelberg, Germany Uppsala University
Uppsala, Sweden
© The Editor(s) (if applicable) and The Author(s) 2020. This book is an open access publication.
Open Access This book is licensed under the terms of the Creative Commons Attribution 4.0 Interna-
tional License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation,
distribution and reproduction in any medium or format, as long as you give appropriate credit to the
original author(s) and the source, provide a link to the Creative Commons license and indicate if changes
were made.
The images or other third party material in this book are included in the book's Creative Commons
license, unless indicated otherwise in a credit line to the material. If material is not included in the book's
Creative Commons license and your intended use is not permitted by statutory regulation or exceeds
the permitted use, you will need to obtain permission directly from the copyright holder.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publica-
tion does not imply, even in the absence of a specific statement, that such names are exempt from the
relevant protective laws and regulations and therefore free for general use.
The publisher, the authors, and the editors are safe to assume that the advice and information in this
book are believed to be true and accurate at the date of publication. Neither the publisher nor the
authors or the editors give a warranty, express or implied, with respect to the material contained herein
or for any errors or omissions that may have been made. The publisher remains neutral with regard to
jurisdictional claims in published maps and institutional affiliations.
This Springer imprint is published by the registered company Springer Nature Switzerland AG
The registered company address is: Gewerbestrasse 11, 6330 Cham, Switzerland
V
Preface
The often-posed question among life science researchers, “Which software tool is the best
for bioimage analysis,” indicates misunderstanding which calls for explanations. It
appears that this question cannot be answered easily, maybe even not at all. Biological
research problems are not general, and each of them questions specific events among
various phenomena seen in biological systems. Therefore, the answer to the “Which is
the best?” question to a high extent depends not only on the biological problem that is to
be addressed but also on the specific goals and criteria to be met. Moreover, the misun-
derstanding seems to be based on an assumption that at some point in the future, there
will be an almighty software tool for bioimage analysis that solves most of the problems
just by clicking on a button. This, most likely, is simply a dream that may never come true.
Software tools are developed with their central value towards having generic applicabil-
ity of offered functionality to be as wide as possible. In a sense, this is the agenda towards
“almighty.” On the other hand, the biological question asked by each researcher is unique
and specific. “Novel findings,” which biologists are seeking, come as answers to specific
and original questions that others have not thought about or by using a novel method
that others have not used to approach the mystery of biological systems. There is a clear
gap between how bioimage analysis tools are developed and how biological questions are
valued. The former is towards generality, and the latter is towards specificity.
The gap can be filled by designing unique combinations of general tools. More precisely,
image analysis software tools should be used by a researcher in a one-and-only, specific
way, by designing a customized workflow combining various suitable implementations
of algorithms, to address a specific biological problem. Such novel designs help the
researchers to see and quantify the biological system in a way that no one has done
before. The highly desired optimal combination of the generality of the available soft-
ware tools and the specificity of biological problem is thus achieved. The outcome can
lead to outstanding scientific results. However, when this gap between generality and
specificity is overlooked, bioimage analysis becomes simply a pain: life science research-
ers do not know how to approach it and benefit from it. Question such as “A great soft-
ware tool is available in my computer but why can’t I solve my problem?” can be rather
frustrating.
As digital image data have become one of the fundamental infrastructures of biological
research activities, students and researchers in the biomedical and life sciences more and
more want to learn how to use the available tools. They want to know how to use various
resources for image analysis and combine them to set up an appropriate workflow for
addressing their own biological question. Getting used to bioimage analysis tools means
learning about the various components that are available as a part of the software and
becoming proficient in combining them for quantifying the biological systems.
The Network of European Bioimage Analysts (NEUBIAS) was established in 2016, with
the aim to promote and share information about rich image analysis resources that have
become widely available nowadays and to encourage, through education, their uses.
VI Preface
Nowadays, we can access many resources. These are good news, but at the same time,
this variety of options may be overwhelming, leading to difficult choices regarding tools
and resources most suitable for a particular problem and their most effective combina-
tions for any specific purpose.
The aim of this textbook is to offer guidance in learning to make such choices. It provides
“guided tours” through the five selected bioimage analysis workflows relevant in real
biological studies, which combine different software packages and tools. Realistically,
these workflows are not general and cannot be directly applied to other problems. How-
ever, the best (if not the only) way to learn to design own specialized workflows is to
study the craft (approaches and solutions) of others. Bioimage Data Analysis (Wiley
2016) was published with the same motivation; this textbook is a sequel, contributing to
the same goal. We hope to continue by including more bioimage analysis workflows and,
by that, inspiring new creative solutions of life science problems.
One prominent contribution of the NEUBIAS team to the life science community is the
conceptual apparatus required for swimming in the sea of rich image analysis resources:
definitions of components, collections, and workflows. These notions are introduced and
explained in 7 Chap. 1 and then utilized in the subsequent ones.
7 Chapter 4 aims at teaching the principles and pitfalls of single particle tracking (SPT).
Tracking is, in general, very important for dynamic studies; focus is on propagating
object identities over time and subsequently computing relevant quantities from the
identified tracks. The developed workflow combines tools available in ImageJ/Fiji (for
generating the tracks) and in MATLAB (for analyzing them).
7 Chapter 5 introduces some of the powerful and flexible image analysis methods native
to MATLAB, also providing a crash course in programming for those with no, or limited,
experience. The tools are used to simulate a time series of Brownian motion or diffusion
process, to analyze time-series data, and to plot and export the results as figures ready for
publication. The workflow presented in this chapter is quite powerful in analyzing track-
ing data such as those presented in 7 Chap. 4.
This textbook is the first bioimage analysis textbook published as an output of the com-
mon efforts of NEUBIAS, the Network of European Bioimage Analysts, funded under
COST Action CA15124. We would like to thank the leaders of workgroups (WGs) in
NEUBIAS: Sebastian Munck, Arne Seitz and Florian Levet (WG1 “Strategy”), Paula
Sampaio and Irene Fondón (WG2 “Outreach”), Perrine Paul-Gilloteaux and Chong
Zhang (WG4 “Webtool biii.eu”), Sébastien Tosi and Graeme Ball (WG5 “Benchmarking
and Sample Datasets”), Julia Fernandez-Rodriguez and Clara Prats Gavalda (WG7
“Short-Term Scientific Missions and Career Path”), and Julien Colombelli (NEUBIAS
Chair). Their efforts to create a synergistic effect of the diverse workgroup activities
towards the establishment of “Bioimage Analysts” are the strong backbone that has led to
the successful realization of this book. We are very much grateful to the reviewers of each
chapter: Anna Klemm, Jan Eglinger, Marion Louveaux, Christian Tischer, and Ulrike
Schulze. Their critical comments largely improved the presented workflows. We are par-
ticularly grateful to the authors of each workflow chapters: Fabrice P. Cordeliéres, Chong
Zhang, Perrine Paul-Gilloteaux, Martin Schorb, Simon F. Nørrelykke, Jean-Yves Tinevez,
and Sébastien Herbert. They have traveled together with selfless commitment to achieve
the demanding publication format we chose, which is to offer both the normal printed
textbook and the “continuously updated” online electronic version. The publication of
this book was enabled by the financial support from the COST Association (funded
through EU framework Horizon2020), through the granted project “A New Network of
European Bioimage Analysts (NEUBIAS, COST Action CA15124).” Finally, we thank all
the members of NEUBIAS who, with their enthusiasm and commitment to the network’s
activities, have contributed to keep the momentum of the initiative constantly high, a
vital element to enable it to reach its objectives, including the publication of this book.
Nataša Sladoje
Uppsala, Sweden
Kota Miura
Heidelberg, Germany
Acknowledgements
This textbook is based upon the work from COST Action CA15124, supported by COST
(European Cooperation in Science and Technology).
7 www.cost.eu
IX
Contents
Supplementary Information
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Contributors
Sébastien Herbert
Sébastien Tosi
Image Analysis Hub – C2RT – Institut Pasteur
Advanced Digital Microscopy Core Facility,
Paris, France
Institute for Research in Biomedicine, IRB
[email protected]
Barcelona, Spain
1.1 Introduction – 2
Bibliography – 6
1.1 Introduction
Software tools used for bioimage analysis tend to be seen as utilities that solve problems
off-the-shelf. The extreme version of such is like: “If I know where to click, I can get good
results!”. In case of gaming software, as the user gets more used to the software, the user
can achieve the final stage faster. To some extent, this might be true also with bioimage
analysis software, but there is a big difference. As bioimage analysis is a part of scientific
research, the goal to achieve is not to clear the common final stage that everyone heads
toward, but something original that others have not found out. The difficulty of the usage
of bioimage analysis software does not only reside in the hidden commands, but also in
the fact that the user needs to come up with more-or-less original analysis. Then, how can
we do something original using tools that are provided in public?
In this short chapter, we define several terms describing the world of bioimage analysis
software, which are “workflows”, “components”, and “collections”, and explain their rela-
tionships. We believe that clarifying the definition of these terms can contribute largely to
those who want to learn bioimage analysis, as well as to those who need to design the
teaching of bioimage analysis. The reason is that these terms link the generality of software
packages provided in public, with the specificity and the originality of the analysis that one
needs to achieve.
1 7 https://imagej.org
2 7 https://nl.mathworks.com
3 7 https://cellprofiler.org/
4 7 http://icy.bioimageanalysis.org
5 7 https://imagej.net/ImgLib2
6 7 https://opencv.org
7 7 https://itk.org
8 7 https://vtk.org
9 7 https://scikit-image.org
Workflows and Components of Bioimage Analysis
3 1
collections, carefully adjust their functional parameters to the problem and assemble
them in a meaningful order. Such a sequence of image processing algorithms with a spec-
ified parameter set is what we call a “workflow”. The implementations of the algorithms
that are used in the workflows are the “components” constituting that workflow (or
“workflow components”). From the point of view of the expert who needs to assemble a
workflow, a collection is a package bundling many different components. As an example,
many plugins offered for ImageJ are mostly also collections (e.g. Trackmate (Tinevez
et al. 2016),10 3D Suite (Ollion et al. 2013),11 MosaicSuite12…), as they bundle multiple
components. On the other hand, some plugins, such as Linear Kuwahara filter plugin,13
are a single component implemented as a single plugin.
Each workflow is uniquely associated with a specific biological research project
because the question asked therein as well as the acquired image quality are often unique.
This calls for a unique combination of components and parameter set. Some collections,
especially those designed with GUI, offer workflow templates. These templates are pre-
assembled sequences of image processing tasks to solve a typical bioimage analysis prob-
lem; all one needs to do is to adjust the parameters of each step. For example, in the case
of Trackmate plugin for ImageJ (Tinevez et al. 2016), a GUI wizard guides the user to
choose an algorithm for each step among several candidates and also to adjust their
parameters to achieve a successful particle tracking workflow (see 7 Chap. 4). When
these algorithms and parameters are set, the workflow is built. CellProfiler also has a help-
ful GUI that assists the user in building a workflow based on workflow templates
(Carpenter et al. 2006). It allows the user to easily swap the algorithms for each step and
test various parameter combinations. . Figure 1.1 summarizes the above explanations.
Though such templates are available for some typical tasks, collections generally do
not provide helpful clues to construct a workflow—choice of components to be used and
approach taken to assemble those components depend on expert knowledge, empirical
knowledge or testing. Since the biological questions are so diverse, the workflow often
needs to be original and might not match any available workflow templates. Building a
workflow from scratch needs some solid knowledge about the components and the ways
to combine them. It also requires an understanding of the biological problem itself. Each
workflow is in essence associated with a specific biological question, and this question
together with the image acquisition setup affect the required precision of the analysis. For
example, image data in general should not be analyzed at a precision higher than the
physical resolution of the imaging system that captures those data.14 In some cases, a
higher precision does not imply more meaningful results just because such precision can
be irrelevant to the biological question. These aspects should be carefully considered dur-
ing the planning of the analysis and the choice of the components, together with the
choice of statistical treatment.
Many biologists feel difficulty in analyzing image data, because of the lack in skills
and knowledge to close the gap between a collection of components and a practical
10 7 https://imagej.net/TrackMate
11 7 http://imagejdocu.tudor.lu/doku.php?id=plugin:stacks:3d_ij_suite:start
12 7 http://mosaic.mpi-cbg.de/?q=downloads/imageJ
13 7 https://imagej.net/Linear_Kuwahara
14 If the model-based approach designed to compute sub-pixel resolution results is used e.g. single
molecule localization microscopy, precision does go beyond the given optical resolution and the
approach is thus validated.
4 K. Miura et al.
1 Collection Workflow
Biological Image Data
Component Component
Component
Component Component
Component Component
Component
Component Component
.. Fig. 1.1 Relationship between components, collection and workflow. Components (e.g. Gaussian
blurring filter) are selected from collection (e.g. ImageJ) and assembled into a specific workflow (red
arrow) for analyzing image data in each research project (e.g. scripts associated with journal papers)
kFurther Readings
1. Miura and Tosi (2016) discusses the general challenges of bioimage analysis.
2. Miura and Tosi (2017) provides more details on the structure and designing of
bioimage analysis workflows.
3. Details about NEUBIAS can be found at the following web pages:
55 7 http://neubias.org
55 7 https://www.cost.eu/actions/CA15124: The Memorandum of Understanding
describes the objectives of the network, that includes the motivation to create
the registry 7 http://biii.eu.
Acknowledgements We are grateful to Nataša Sladoje for critically reading this text. We
thank Matúš Kalaš for checking the text and correcting our mistakes.
15 7 https://www.elixir-europe.org
6 K. Miura et al.
Bibliography
1
Bradski G (2000) The OpenCV Library. Dr. Dobb’s Journal of Software Tools. http://www.drdobbs.com/
open-source/the-opencv-library/184404319
Carpenter AE, Jones TR, Lamprecht MR, Clarke C, Kang IH, Friman O, Guertin DA, Chang JH, Lindquist RA,
Moffat J, Golland P, Sabatini DM (2006) CellProfiler: image analysis software for identifying and quan-
tifying cell phenotypes. Genome Biol 7(10):R100. ISSN: 1465-6914. https://doi.org/10.1186/gb-2006-
7-10-r100
de Chaumont F, Dallongeville S, Chenouard N, Hervé N, Pop S, Provoost T, Meas-Yedid V, Pankajakshan P,
Lecomte T, Le Montagner Y, Lagache T, Dufour A, Olivo-Marin J-C (2012) Icy: an open bioimage infor-
matics platform for extended reproducible research. ISSN: 1548-7091
Ison J, Kalaš M, Jonassen I, Bolser D, Uludag M, McWilliam H, Malone J, Lopez R, Pettifer S, Rice P (2013)
EDAM: an ontology of bioinformatics operations, types of data and identifiers, topics, and formats.
Bioinformatics 29(10):1325–1332. https://doi.org/10.1093/bioinformatics/btt113
Johnson HJ, McCormick MM, Ibanez L (2015a) Template: the ITK software guide book 1: introduction and
development guidelines, vol 1
Johnson HJ, McCormick MM, Ibanez L (2015b) Template: the ITK software guide book 2: design and func-
tionality, vol 2
Kalaš M, Plantard L, Sladoje N, Lindblad J, Kirschmann MA, Jones M, Chessel A, Scholz LA, Rössler F, Dufour
A, Bogovic J, Waithe CZD, Sampaio P, Paavolainen L, Hörl D, Munck S, Golani O, Moore J, Gaignardand
A, Levet F, Participants in the NEUBIAS Taggathons, Paul-Gilloteaux P, Ison J, the EDAM Dev Team,
Miura K, Colombelli J, Welcoming New Contributors (2019) EDAM-bioimaging: the ontology of bioim-
age informatics operations, topics, data, and formats (2019 update) [version 1; not peer reviewed].
F1000Research 8(ELIXIR):158. https://doi.org/10.7490/f1000research.1116432.1
Miura K, Tosi S (2016) Introduction. In: Miura K (ed) Bioimage data analysis. Wiley-VCH, Weinheim, pp 1–3.
ISBN: 978-3-527-34122-1
Miura K, Tosi S (2017) Epilogue: a framework for bioimage analysis. In: Standard and super-resolution
bioimaging data analysis. Wiley, Chichester, pp 269–284. https://doi.org/10.1002/9781119096948.
ch11
Ollion J, Cochennec J, Loll F, Escudé C, Boudier T (2013) TANGO: a generic tool for high-throughput 3D
image analysis for studying nuclear organization. Bioinformatics 29(14):1840–1841. ISSN: 13674803.
https://doi.org/10.1093/bioinformatics/btt276
Pietzsch T, Preibisch S, Tomančák P, Saalfeld S (2012) ImgLib2–generic image processing in Java.
Bioinformatics (Oxford, England) 28(22):3009–3011. ISSN: 1367-4811. https://doi.org/10.1093/bioin-
formatics/bts543
Schneider CA, Rasband WS, Eliceiri KW (2002) NIH Image to ImageJ: 25 years of image analysis. Nat
Methods 9(7):671–675 (2012). ISSN: 1548-7105. http://www.ncbi.nlm.nih.gov/pubmed/22930834
Schroeder W, Martin K, Lorensen B (2006) The visualization toolkit, 4th edn. Kitware Inc. ISBN:
978-1930934191. https://vtk.org/
Tinevez J-Y, Perry N, Schindelin J, Hoopes GM, Reynolds GD, Laplantine E, Bednarek SY, Shorte SL, Eliceiri
KW (2016) TrackMate: an open and extensible platform for single-particle tracking. Methods. ISSN:
10462023. https://doi.org/10.1016/j.ymeth.2016.09.016. http://linkinghub.elsevier.com/retrieve/pii/
S1046202316303346
van der Walt S, Schönberger JL, Nunez-Iglesias J, Boulogne F, Warner JD, Yager N, Gouillart E, Yu T (2014)
Scikit-image: image processing in Python. PeerJ 2:e453. ISSN: 2167-8359. https://doi.org/10.7717/
peerj.453. https://peerj.com/articles/453
Workflows and Components of Bioimage Analysis
7 1
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0
International License (7 http://creativecommons.org/licenses/by/4.0/), which permits use, sharing,
adaptation, distribution and reproduction in any medium or format, as long as you give appropriate
credit to the original author(s) and the source, provide a link to the Creative Commons license and
indicate if changes were made.
The images or other third party material in this chapter are included in the chapter’s Creative
Commons license, unless indicated otherwise in a credit line to the material. If material is not included in
the chapter’s Creative Commons license and your intended use is not permitted by statutory regulation
or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
9 2
Measurements of Intensity
Dynamics at the Periphery
of the Nucleus
Kota Miura
2.1 Introduction – 10
2.2 Tools – 11
2.3 Dataset – 11
2.4 Workflow – 12
2.4.1 S egmentation of Nucleus Rim – 12
2.4.2 Integration: The Measurement Over Time – 24
2.4.3 Integrating Segmentation and Measurements – 25
Bibliography – 32
2.1 Introduction
1 7 http://jcb.rupress.org/content/209/5/705
2 The images shown in the . Fig. 2.1 are from a 4D hyperstack “NPC1.tif”, which can be downloaded
using ImageJ plugin “CMCI-EMBL”. More details are in “Dataset” section.
Measurements of Intensity Dynamics at the Periphery of the Nucleus
11 2
a b
.. Fig. 2.1 Lamin receptor localization difference at two time points: More Lamin receptor in nucleus
periphery. a Time point 1. b Time point 15
This chapter should be a good guide not only limited to study the intensity changes
occurring at the nuclear envelope, but also in general for segmenting the edge (perimeter)
of biological compartments such as the edge of organelle, plasma membrane and tissue
boundaries. In principle, similar post-processing strategy is also applicable to 3D volumes
by using 3D morphology filters.
2.2 Tools
In addition, a plugin is required for loading the sample image data. Using the “Update
sites” function, please add “CMCI-EMBL” to your Fiji installation. Please restart Fiji after
this plugin installation.
2.3 Dataset
All ImageJ macro codes can be downloaded from the Github repository.3
The image data we used in this chapter can be downloaded using the plugin
“CMCI-EMBL”. After installation of this plugin, select the menu item [EMBL > Sample
Images > NPCsingleNucleus.tif] to load the image data. This is a time-lapse
3 7 https://github.com/miura/NucleusRimIntensityMeasurementsV2/
12 K. Miura
sequence of a cell, extracted from “NPC1.tif ” which can be also downloaded through the
same plugin.
55 Cell Type: Hela Cells
2 55 Scale: 0.165 μm/pixel
55 Frame Rate: 400 Sec/Frame
55 Channels
55Red channel (C1): H2B-mCherry (ex:561nm)
55Green Channel (C2): Lamin B Receptor-GFP (ex:488nm)
2.4 Workflow
We first write a macro for the nucleus rim segmentation by taking following steps:
1. Split the original multi-channel image stack and create two image stacks of each
channel for processing them independently (. Fig. 2.3a)
2. Blur the image to attenuate noise (. Fig. 2.3b)
3. Nucleus segmentation: Binarize the image by intensity thresholding (. Fig. 2.3c)
4. Remove other Nuclei: At the right-bottom corner of the image, a small part of
different nucleus is present. This should be removed.
5. Duplicate the image
(a) Erode the original (. Fig. 2.3e)
(b) Dilate the duplicated (. Fig. 2.3d)
6. Subtract the eroded from the dilated (. Fig. 2.3f)
In the following we record these steps as macro commands using the Command Recorder
([Plugins > Macros > Record…]). We recommend you NOT to launch the com-
mand recorder from the beginning. Please first try to reproduce the workflow using mouse
and the graphical user interface (GUI). This is like a rehearsal before recording your actions.
When you become clear with the steps you have to take, record the processing steps. When
you use the command recorder, be sure that “Macro” is selected in the “Record:” drop down
menu at the top-left corner of the recorder.
Measurements of Intensity Dynamics at the Periphery of the Nucleus
13 2
2-Channel Time
Series
Channel
Splitting Block
Ch1
Nucleus
Pre-processing
Gaussian blur
Intensity
Thresholding (Otsu)
Dilation Erosion
Image
Measurement Block
Subtraction
Ch2
NPC
Define the region /
measurements
run("Split Channels");
a b c
d e f
.. Fig. 2.3 The strategy of segmentation. a Original nucleus image. b Blurred nucleus image.
c Binarized image, after thresholding. d Dilated binary image. e Eroded binary image. f Subtraction
result, the rim
run(”command”[, ”options”])
Executes an ImageJ menu command. The optional second argument contains values that
are automatically entered into dialog boxes (must be GenericDialog or OpenDialog). Use
the Command Recorder (Plugins>Macros>Record) to generate run() function calls. Use
string concatenation to pass a variable as an argument. With ImageJ 1.43 and later, variables
can be passed without using string concatenation by adding “&” to the variable name.
The run function takes a menu item as the first argument and optional values (values you
fill-in in a dialog window) in the second argument. In case of channel splitting, there is no
such optional value so the second argument is ignored.
We then process the nucleus image. Click the nucleus image window to bring it up to
the top—We call this action as “activating a window”. By this clicking, we activated
Channel 2 (red, nucleus image).
Please confirm that a new command shown below, is added to the recorder after acti-
vating the nucleus image.
selectWindow("C1-NPCsingleNucleus.tif");
…Here is the explanation from the macro function reference.
selectWindow(”name”)
Activates the window with the title ”name”.