<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.dynamo-em.org//w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Miguel+Sanchez</id>
	<title>Dynamo - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.dynamo-em.org//w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Miguel+Sanchez"/>
	<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=Special:Contributions/Miguel_Sanchez"/>
	<updated>2026-10-28T04:06:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5855</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5855"/>
		<updated>2025-12-11T14:59:28Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Alignment projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually aligning a few particles and averaging them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Attention&#039;&#039;&#039;: only if you find an error in the Matlab version running the command above, please try instead this version of the command:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;slt = dpktbl.star.FullTable();&lt;br /&gt;
tbl = dread(&#039;thermosomeParticles.Data/crop.tbl&#039;);&lt;br /&gt;
slt.fillFromClassicalTable(tbl);&lt;br /&gt;
gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, slt);&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Table&#039;&#039; and &#039;&#039;save edited table&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to write in the terminal &amp;lt;tt&amp;gt;&amp;quot;dynamo_execute_project drun1&amp;quot;&amp;lt;/tt&amp;gt; or to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5854</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5854"/>
		<updated>2025-12-11T14:54:00Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Alignment projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually aligning a few particles and averaging them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Attention&#039;&#039;&#039;: only if you find an error in the Matlab version running the command above, please try instead this version of the command:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;slt = dpktbl.star.FullTable();&lt;br /&gt;
tbl = dread(&#039;thermosomeParticles.Data/crop.tbl&#039;);&lt;br /&gt;
slt.fillFromClassicalTable(tbl);&lt;br /&gt;
gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, slt);&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Table&#039;&#039; and &#039;&#039;save edited table&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to write in the terminal &amp;lt;tt&amp;gt;&amp;quot;dynamo_execute_project drun1.exe&amp;quot;&amp;lt;/tt&amp;gt; or to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5848</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5848"/>
		<updated>2025-12-10T16:20:04Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Subtomogram alignment and averaging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually aligning a few particles and averaging them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Table&#039;&#039; and &#039;&#039;save edited table&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5847</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5847"/>
		<updated>2025-12-10T16:17:50Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Subtomogram alignment and averaging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually aligning a few particles and averaging them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Selection&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5846</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5846"/>
		<updated>2025-12-10T16:16:33Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Initial reference generation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually aligning a few particles and averaging them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;ThermosomeParticles.Data&#039;, &#039;t&#039;, &#039;ThermosomeParticles.Data/crop.tbl&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Selection&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5844</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5844"/>
		<updated>2025-12-10T12:01:39Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Initial reference generation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually aligning a few particles and averaging them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Selection&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5843</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5843"/>
		<updated>2025-12-10T11:58:31Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Subtomogram alignment and averaging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually align a few particles and average them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:DpkdataMontage Aligned.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the corresponding table by clicking &#039;&#039;Selection&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=File:DpkdataMontage.png&amp;diff=5842</id>
		<title>File:DpkdataMontage.png</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=File:DpkdataMontage.png&amp;diff=5842"/>
		<updated>2025-12-10T11:54:16Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=File:DpkdataMontage_Aligned.png&amp;diff=5841</id>
		<title>File:DpkdataMontage Aligned.png</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=File:DpkdataMontage_Aligned.png&amp;diff=5841"/>
		<updated>2025-12-10T11:53:30Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5840</id>
		<title>User:Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=User:Starters_guide_(I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025)&amp;diff=5840"/>
		<updated>2025-12-10T11:44:26Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Subtomogram alignment and averaging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
&lt;br /&gt;
This tutorial shows how to manually pick particles in a tomogram, extract them, align and classify them. This tutorial is a shortened version of the original [[Starters_guide | starters guide]] that was adapted for the use in &#039;&#039;Dynamo&#039;&#039; workshops.&lt;br /&gt;
&lt;br /&gt;
=Manual particle picking and &#039;&#039;Dynamo&#039;&#039; catalogues=&lt;br /&gt;
The &#039;&#039;Dynamo&#039;&#039; catalogues are databases that manage tomograms and link the tomographic data to the extracted particles. Start the catalogue manager by typing the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dcm&amp;lt;/tt&amp;gt;&lt;br /&gt;
After the catalogue manager opens, we create 3 synthetic tomograms that include our particles (thermosomes) in the following way:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure1.png|thumb|center|600px| Figure 1: creating a set of synthetic tomograms with &#039;&#039;Dynamo&#039;&#039; Catalogue Manager]]&lt;br /&gt;
&lt;br /&gt;
You can see the list of your tomograms and their metadata in a table in the bottom of your catalogue manager. When workin on your own projects, you can add tomograms to the catalogue by &#039;&#039;Catalogue -&amp;gt; Browse for new volume&#039;&#039;. The tomograms are situated in the directory &amp;lt;tt&amp;gt;testCatalogue&amp;lt;/tt&amp;gt;. They contain a small amount of noise and a missing wedge associated to rotation around Y-axis. We added the information about location of the particles in the tomograms in an additional catalogue called &amp;lt;tt&amp;gt;testCatalogue_withmodels&amp;lt;/tt&amp;gt;. If needed, it can be opened from the current folder with &#039;&#039;Catalogue -&amp;gt; look for local catalogues&#039;&#039; in the catalogue manager window.&lt;br /&gt;
&lt;br /&gt;
==Viewing tomograms==&lt;br /&gt;
Select the first tomogram in the list and go to &#039;&#039;View volume&amp;gt;Full tomogram file in tomoslice&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
[[ File:StartersSelectTomoSliceInCatalogue.png |thumb| center |600px| Figure 2: Selecting a volume in the catalogue manager to be inspected in &amp;lt;tt&amp;gt;dpreview&amp;lt;/tt&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The volume browser tomoslicer loads the entire tomograms into memory and allows making annotations to the regions of interest. The tomograms in this tutorial are small, and you can load them directly into memory. For real life tomograms, bear in mind that you will need to [[Prebinned tomograms| prebin]] the files before loading them into memory. Tomoslice has a simple set of controls and is suitable for visualization tasks that require oblique sections through the tomogram. It uses the same tool as other &#039;&#039;Dynamo&#039;&#039; browsers to keep track of your annotations: a pool of models. You might need to adjust the contrast (blue arrow). To move through the tomogram slices, you can either use the mouse wheel, click and drag the tomogram slice up and down (orange arrows), or move the position control left and right (orange box).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ File:StartersTomoSlice.png |thumb| center |600px|]]&lt;br /&gt;
&lt;br /&gt;
==Picking and extracting particles in tomograms==&lt;br /&gt;
Coordinates of picked particles are represented by data types called models. In the tomoslicer window go to &#039;&#039;Model Pool -&amp;gt; Create new model in pool (choose type) -&amp;gt; General&#039;&#039;. This is the simplest type of [[model]] where each clicked/model point corresponds to a single isolated particle. Now you can navigate up and down the tomogram, place the mouse on the center of a particle and press the [c] key on your keyboard to add a new model point. (Note the &#039;&#039;Help -&amp;gt; all hot keys&#039;&#039; options that lists the different the actions of the different keystrokes). Backspace button deletes the last clicked point (you can also use the right-click to delete single points).&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure4.png|thumb|center|600px| Generating a new model]]&lt;br /&gt;
&lt;br /&gt;
After you are done clicking about 10 particles click on &#039;&#039;Active model &amp;gt; Update Crop points&#039;&#039; in the tomoslice window.&lt;br /&gt;
￼￼￼￼&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideUpdate.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Save the model into the catalogue by &#039;&#039;Active model -&amp;gt; Save active model into catalogue (disk)&#039;&#039; and close the slicer window.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure6.png|thumb|center|600px| ]]&lt;br /&gt;
&lt;br /&gt;
Pick particles for tomograms 2 and 3. In total, there are around 30-40 particles in the generated dataset. When you open a new tomogram, make sure that you delete the pool of models from memory when asked. This will have no effect onto the models stored in disk, and it is necessary in order to ensure that you are not mixing models from different tomograms.&lt;br /&gt;
&lt;br /&gt;
==An alternate visualization: orthogonal projections==&lt;br /&gt;
&lt;br /&gt;
Clicking in the menu on &#039;&#039;Projection -&amp;gt; project full shown fragment along z&#039;&#039; (still in dtmslice) and you will get a screen where the x-y projection of the tomogram is shown. Use the secondary click on it to launch the orthogonal views of x-z and y-z planes that traverse that point. These views can also be used to click particles, in case the standard view is not sufficient.&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin: 0 auto;&amp;quot;&lt;br /&gt;
| [[File:orthoPickMain.png|thumb|upright|250px| click on the main projection determines two orthogonal slices]]&lt;br /&gt;
| [[File:orthoPickX.png|thumb|upright|250px| Slice xz ]]&lt;br /&gt;
| [[File:orthoPickY.png|thumb|upright|250px| Slice xy]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Extracting particles from tomograms=&lt;br /&gt;
In the catalogue manager window select the rows for tomograms from which you want to extract particles from. You can either select them one by one with a mouse click and holding the [ctrl] key or by clicking the &#039;&#039;Select all&#039;&#039; button. Then, go to &#039;&#039;Crop Particles -&amp;gt; Open Volume List Manager&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideopenVolumeList.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
A new window opens with all the models in the catalogue listed in the bottom. Pick (by checking boxes) the models of type &#039;&#039;general&#039;&#039; that you have just clicked. Click &#039;&#039;Create list&#039;&#039; and then &#039;&#039;Crop particle&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideSelectModels.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
In the new window, change the data name to something meaningful, such as &#039;&#039;thermosomeParticles&#039;&#039;, change the sidelength from 32 to 48 and click start cropping.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideCrop.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
After cropping is done, explore your cropped particles by clicking &#039;&#039;ddbrowse&#039;&#039; (in the window above). A new window opens where you can simply click on &#039;&#039;show&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideShow.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
You see a 2D representation (projections) of all cropped 3D subtomograms. Make sure your particles are well centered and fit the box.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideParticles.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
We also introduce the concept of the &#039;&#039;dynamo&#039;&#039; table: The information about each particle is stored in tables. Each particle has an entry in the table that contains shifts and rotations to describe its orientation (by default these values are initialized as zeroes). It also contains the particle ID (tag), the orientation of the missing wedge and others. For full info type the command &amp;lt;tt&amp;gt;dthelp&amp;lt;/tt&amp;gt;. The &#039;&#039;Dynamo&#039;&#039; catalogue generates an initial table during particle extraction. Its location is in &amp;lt;tt&amp;gt;particles/crop.tbl &amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=Subtomogram alignment and averaging=&lt;br /&gt;
&lt;br /&gt;
==Initial reference generation==&lt;br /&gt;
We want to align the extracted tomograms to a common reference. For that, we need an initial reference (which will later be refined during the iterative alignment). Here, we create such an initial reference by manually align a few particles and average them. We use the command &amp;lt;tt&amp;gt;dpkdata.montage&amp;lt;/tt&amp;gt; to generate initial orientations for some of our particles that will be used to generate the initial reference. Close all open &#039;&#039;Dynamo&#039;&#039; windows and type into the &#039;&#039;Dynamo&#039;&#039; command line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; gui = dpkdata.montage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;thermosomeParticles.Data/crop.tbl&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The gui opens. Click the bottons below to show more or fewer images.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideGallery.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
To manually align the particles, do the following for about 10 particles:&lt;br /&gt;
# Place the mouse over the particle center and press the key [c] (this centers the particle).&lt;br /&gt;
# Place the mouse over its top (or bottom) part and press the key [n] (this aligns the particle). &lt;br /&gt;
This is just done to create an initial reference, so orientations don&#039;t need to be very exact.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideGallery2.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Save the selected tags and corresponding table by clicking &#039;&#039;Selection&#039;&#039; button in the top and save. It saves an editedTable.tbl that will be used later. To generate the average you need to apply the table on the particles. For this, type&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; oa = daverage(&#039;thermosomeParticles.Data&#039;, &#039;t&#039;, &#039;editedTable.tbl&#039;); &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and save the result with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dwrite(oa.average, &#039;my_average.em&#039;) &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the result by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dview(&#039;my_average.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alignment projects==&lt;br /&gt;
Iterative alignment of subtomograms to their average is performed by &#039;&#039;dynamo&#039;&#039; projects that you can run in various high-performance computational environments. To run an alignment project you need the particles, an initial reference and a table. All of these files we generated before. Start the alignment project GUI by typing&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; dcp&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In thw new window, do the following:&lt;br /&gt;
# Add the project name &#039;&#039;drun1&#039;&#039;, press the &#039;&#039;enter&#039;&#039; key and select &#039;&#039;create a new project&#039;&#039; in the pop-up window.&lt;br /&gt;
# Click on &#039;&#039;particles&#039;&#039; and provide the particle folder name &#039;&#039;thermosomeParticles.Data&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;table&#039;&#039; and provide the table name &#039;&#039;thermosomeParticles.Data/crop.tbl&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;template&#039;&#039; and provide the initial reference name &#039;&#039;my_average.em&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and simply click on &#039;&#039;use default masks&#039;&#039;. Click ok. You could also specify the semi-axis of the ellipsoid masks or go to “Mask editor” to make more sophisticated masks. Note that &#039;&#039;Dynamo&#039;&#039; by default uses Rossman correlation which eliminates the artefacts associated with hard (non-soft) mask. &lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideAli1.png|thumb|center|500px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;numerical parameters&#039;&#039; to set all parameters and details about the different iterations of the alignment project. You can select any parameter in the table with a mouse and click the &#039;&#039;?&#039;&#039; button on the top right of the parameter window to see a description of the parameters. The most important parameters to consider are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Number of iterations&#039;&#039;: Make 3 rounds with 2 iterations each. The first round will be a global search with a coarse angular step and the following rounds will be used for refinement.&lt;br /&gt;
* &#039;&#039;Angular search ranges&#039;&#039;: Cone aperture is the scan range for the first two Euler angles around the initial orientation defined in the table. 360 degrees is the full scan range. Azimuth rotation range defines the rotation range around the new vertical axis of the particle.&lt;br /&gt;
* &#039;&#039;High- and lowpass values&#039;&#039;: Fourier voxels to limit the used frequency range.&lt;br /&gt;
*&#039;&#039;Particle dimensions&#039;&#039;: Defined as sidelength of your subvolume. If you put a lower value, the particles will be downsampled for the particular round. This will speed up the process.&lt;br /&gt;
* &#039;&#039;Refine&#039;&#039;: After each angular scan, the search step is reduced by the &#039;&#039;refine factor&#039;&#039;. This is repeated &#039;&#039;refine&#039;&#039; times. I.e., if your cone sampling is 10 degrees, &#039;&#039;refine&#039;&#039; is 3 and &#039;&#039;refine factor&#039;&#039; is 2, then 10, 5, 2.5 and 1.25 degrees will be sampled. This is the optimization of angular search space.&lt;br /&gt;
*&#039;&#039;Shift limits&#039;&#039;: Limits the translation of particles from the center of the box (if shifts limiting way is 1) or from the previously estimated center (if shifts limiting way is 2). The previous estimates for the shifts and rotations are taken from input tables and are updated at the end of each iteration.&lt;br /&gt;
*&#039;&#039;Symmetry&#039;&#039;: If you know the symmetry of your protein it will speed up the convergence and result in higher resolution.&lt;br /&gt;
&lt;br /&gt;
￼￼Set the parameters as follows and click &#039;&#039;ok&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideFigure10.png|thumb|center|600px|]]&lt;br /&gt;
&lt;br /&gt;
Click on &#039;&#039;Computing environment&#039;&#039; and select your computing environment (choose &#039;&#039;standalone&#039;&#039; if you are working on the standalone version or GPU standalone if you are working in the AWS Machine). Set &#039;&#039;CPU cores&#039;&#039; and &#039;&#039;parallelize averaging step&#039;&#039; to the maximum available (e.g., 4). Leave the rest as it is and click &#039;&#039;ok&#039;&#039;. In the alignment GUI click &#039;&#039;check&#039;&#039; and &#039;&#039;unfold&#039;&#039;. To run the project&lt;br /&gt;
&lt;br /&gt;
* in a Matlab session, you can just click on “run”.  &lt;br /&gt;
* in a standalone project it is more convenient to open a new terminal, load &#039;&#039;Dynamo&#039;&#039; (but do not run it) and run the project by typing &amp;lt;tt&amp;gt;./drun1.exe&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While the project is running, open another Matlab window (or in standalone open another terminal with &#039;&#039;Dynamo&#039;&#039; running) and you can monitor the progress of the alignment project by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the project is running, you can look at projections of the intermediate results by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a:ite=* -j c10&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or at the latest average by typing:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun1:a -v &amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The final result should look similar to:&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsAlignment.png|thumb|center|400px| ￼Results of alignment.]]&lt;br /&gt;
￼&lt;br /&gt;
&lt;br /&gt;
=Subtomogram classification=&lt;br /&gt;
To demonstrate a classification example we provide particles with 2 slightly different sizes. We can then classify them with a simple Multi-reference Analysis (MRA). To do that, we first generate a dataset which has 2 populations of particles. For this, type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dynamo_tutorial(&#039;data_classification&#039;,&#039;M&#039;,8,&#039;N&#039;,8);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates two sets of particles, 8 particles in each including their table. The idea behind [[Multireference Analysis|MRA]] is the following: The particles are aligned to several references (here only 2). After each iteration, each particle is assigned to only one single reference where it fits the best. This procedure is repeated iteratively. Similar particles will have higher correlation to similar references and will eventually group together. For classification into N classes we will need N initial references and N initially identical tables.Follow these steps to run the MRA:&lt;br /&gt;
&lt;br /&gt;
# Create a new project by typing “drun2” in the project name of the alignment GUI.&lt;br /&gt;
# Set number of references to 2.&lt;br /&gt;
# Activate the &#039;&#039;Swap particles&#039;&#039; button.&lt;br /&gt;
# Go to &#039;&#039;particles&#039;&#039; and add &amp;lt;tt&amp;gt;data_classification/data&amp;lt;/tt&amp;gt; to the particle data. Click ok.&lt;br /&gt;
# Go to &#039;&#039;table&#039;&#039; and type &amp;lt;tt&amp;gt;data_classification/real.tbl&amp;lt;/tt&amp;gt; into the field &#039;&#039;clone this&#039;&#039; and press &#039;&#039;copy&#039;&#039;. Click ok.&lt;br /&gt;
# Go to &#039;&#039;template&#039;&#039; and clone &amp;lt;tt&amp;gt;data_classification/original_template.em&amp;lt;/tt&amp;gt; with addition of some extra noise with amplitude 1. &lt;br /&gt;
# Click on &#039;&#039;masks&#039;&#039; and click on &#039;&#039;use default masks&#039;&#039;. Click ok.&lt;br /&gt;
# Click on &#039;&#039;numerical parameters&#039;&#039; and set the following parameters. Click ok.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification2.png|thumb|center|400px|]]&lt;br /&gt;
&lt;br /&gt;
Choose the same computing environment as in the previous alignment project and run the project in the same way too. MRA projects usually run longer, because each particle will be aligned to two references. Here, however, we chose the parameters in a way that the process is still fast (e.g., small dimensions). Monitor the progress of the project same as before:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;dvstatus drun2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And visualize the results using the command:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;ddb drun2:a:ref=* -j c5&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should get two averages with particle in one slightly class larger than in the other.&lt;br /&gt;
&lt;br /&gt;
[[File:StartersGuideResultsClassification.png|thumb|center|600px| ￼Results of classification.]]&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5833</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5833"/>
		<updated>2025-12-09T16:35:10Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Entering in the AWS Machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
Before accessing, it may be helpful to set the browser zoom  to 50% or less and refresh the website. This will help later to visualize some GUIs in a friendlier way.&lt;br /&gt;
&lt;br /&gt;
=== Activating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to activate Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /home/student/dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Initializing Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Working with AWS Machine in the Work Shop may entails some minor cons that you may encounter. Here we present the most common ones so you can solve them quickly.&lt;br /&gt;
&lt;br /&gt;
==== Problem opening a GUI Window ====&lt;br /&gt;
&lt;br /&gt;
If you are working on a small laptop screen, opening a GUI window, for example when typing the &amp;quot;dcp&amp;quot; command to start a project, may make appear it with the header of the window hidden on the top of the screen:&lt;br /&gt;
&lt;br /&gt;
[[File:Problem GUI Window Hidden.png|thumb|center|600px|The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.]]&lt;br /&gt;
&lt;br /&gt;
A quick way of solving it is pressing Alt+Click on the window and move it down until the header appears so it is possible to change its size.&lt;br /&gt;
&lt;br /&gt;
==== Problem pressing right click in a MAC laptop with no external mouse ====&lt;br /&gt;
&lt;br /&gt;
For some walkthroughs, like &amp;quot;Walkthrough on GUI based tilt series alignment&amp;quot;, you need to press the right click on the &amp;quot;View&amp;quot; botton:&lt;br /&gt;
&lt;br /&gt;
[[File:View Button.png|thumb|center|450px|Necessity of right clicking view button]]&lt;br /&gt;
&lt;br /&gt;
If you are working on a MAC laptop with no external mouse, just press with two fingers on the trackpad at the same time.&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5832</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5832"/>
		<updated>2025-12-09T13:10:29Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Activating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to activate Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /home/student/dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Initializing Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Working with AWS Machine in the Work Shop may entails some minor cons that you may encounter. Here we present the most common ones so you can solve them quickly.&lt;br /&gt;
&lt;br /&gt;
==== Problem opening a GUI Window ====&lt;br /&gt;
&lt;br /&gt;
If you are working on a small laptop screen, opening a GUI window, for example when typing the &amp;quot;dcp&amp;quot; command to start a project, may make appear it with the header of the window hidden on the top of the screen:&lt;br /&gt;
&lt;br /&gt;
[[File:Problem GUI Window Hidden.png|thumb|center|600px|The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.]]&lt;br /&gt;
&lt;br /&gt;
A quick way of solving it is pressing Alt+Click on the window and move it down until the header appears so it is possible to change its size.&lt;br /&gt;
&lt;br /&gt;
==== Problem pressing right click in a MAC laptop with no external mouse ====&lt;br /&gt;
&lt;br /&gt;
For some walkthroughs, like &amp;quot;Walkthrough on GUI based tilt series alignment&amp;quot;, you need to press the right click on the &amp;quot;View&amp;quot; botton:&lt;br /&gt;
&lt;br /&gt;
[[File:View Button.png|thumb|center|450px|Necessity of right clicking view button]]&lt;br /&gt;
&lt;br /&gt;
If you are working on a MAC laptop with no external mouse, just press with two fingers on the trackpad at the same time.&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5831</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5831"/>
		<updated>2025-12-09T13:09:24Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Activating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to activate Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /home/student/dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Initializing Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Working with AWS Machine in the Work Shop may entails some minor cons that you may encounter. Here we present the most common ones so you can solve them quickly.&lt;br /&gt;
&lt;br /&gt;
==== Problem opening a GUI Window ====&lt;br /&gt;
&lt;br /&gt;
If you are working on a small laptop screen, opening a GUI window, for example when typing the &amp;quot;dcp&amp;quot; command to start a project, may make appear it with the header of the window hidden on the top of the screen:&lt;br /&gt;
&lt;br /&gt;
[[File:Problem GUI Window Hidden.png|thumb|center|600px|The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.]]&lt;br /&gt;
&lt;br /&gt;
A quick way of solving it is pressing Alt+Click on the window and move it down until the header appears so it is possible to change its size.&lt;br /&gt;
&lt;br /&gt;
==== Problem pressing right click in a MAC laptop with no external mouse ====&lt;br /&gt;
&lt;br /&gt;
For some walkthroughs, like &amp;quot;Walkthrough on GUI based tilt series alignment&amp;quot;, you need to press the right click on the &amp;quot;View&amp;quot; botton:&lt;br /&gt;
&lt;br /&gt;
[[File:View Button.png|thumb|center|550px|Necessity of right clicking view button]]&lt;br /&gt;
&lt;br /&gt;
If you are working on a MAC laptop with no external mouse, just press with two fingers on the trackpad at the same time.&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5830</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5830"/>
		<updated>2025-12-09T12:13:59Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Activating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to activate Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /home/student/dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Initializing Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Working with AWS Machine in the Work Shop may entails some minor cons that you may encounter. Here we present the most common ones so you can solve them quickly.&lt;br /&gt;
&lt;br /&gt;
==== Problem opening a GUI Window ====&lt;br /&gt;
&lt;br /&gt;
If you are working on a small laptop screen, opening a GUI window, for example when typing the &amp;quot;dcp&amp;quot; command to start a project, may make appear it with the header of the window hidden on the top of the screen:&lt;br /&gt;
&lt;br /&gt;
[[File:Problem GUI Window Hidden.png|thumb|center|600px|The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.]]&lt;br /&gt;
&lt;br /&gt;
A quick way of solving it is pressing Alt+Click on the window and move it down until the header appears so it is possible to change its size.&lt;br /&gt;
&lt;br /&gt;
==== Problem pressing right click in a MAC laptop with no external mouse ====&lt;br /&gt;
&lt;br /&gt;
For some walkthroughs, like &amp;quot;Walkthrough on GUI based tilt series alignment&amp;quot;, you need to press the right click on the &amp;quot;View&amp;quot; botton:&lt;br /&gt;
&lt;br /&gt;
[[File:View Button.png|thumb|center|600px|Necessity of right clicking view button]]&lt;br /&gt;
&lt;br /&gt;
If you are working on a MAC laptop with no external mouse, just press with two fingers on the trackpad at the same time.&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5829</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5829"/>
		<updated>2025-12-09T12:11:53Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Activating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to activate Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /home/student/dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Initializing Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Working with AWS Machine in the Work Shop may entails some minor cons that you may encounter. Here we present the most common ones so you can solve them quickly.&lt;br /&gt;
&lt;br /&gt;
==== Problem opening a GUI Window ====&lt;br /&gt;
&lt;br /&gt;
If you are working on a small laptop screen, opening a GUI window, for example when typing the &amp;quot;dcp&amp;quot; command to start a project, may make appear it with the header of the window hidden on the top of the screen:&lt;br /&gt;
&lt;br /&gt;
[[File:Problem GUI Window Hidden.png|thumb|center|600px|The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.]]&lt;br /&gt;
&lt;br /&gt;
A quick way of solving it is pressing Alt+Click on the window and move it down until the header appears so it is possible to change its size.&lt;br /&gt;
&lt;br /&gt;
==== Problem pressing right click in a MAC laptop with no external mouse ====&lt;br /&gt;
&lt;br /&gt;
For some walkthroughs, like &amp;quot;Walkthrough on GUI based tilt series alignment&amp;quot;, you need to press the right click on the &amp;quot;View&amp;quot; botton:&lt;br /&gt;
&lt;br /&gt;
[[File:View Button.png|thumb|center|600px|Necessity of right clicking view button]]&lt;br /&gt;
&lt;br /&gt;
If you are working on a MAC laptop with no external mouse&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=File:View_Button.png&amp;diff=5827</id>
		<title>File:View Button.png</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=File:View_Button.png&amp;diff=5827"/>
		<updated>2025-12-09T12:08:55Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: Need to press right button with the mouse&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Need to press right button with the mouse&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=File:Problem_GUI_Window_Hidden.png&amp;diff=5825</id>
		<title>File:Problem GUI Window Hidden.png</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=File:Problem_GUI_Window_Hidden.png&amp;diff=5825"/>
		<updated>2025-12-09T11:52:33Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
The open GUI Window appears hidden in the AWS Machine. Pressing Alt+Click will make it possible to move it so it is possible to access to the header of the window.&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5822</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5822"/>
		<updated>2025-12-09T11:50:28Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Activating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to activate Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /home/student/dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Initializing Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Working with AWS Machine in the Work Shop may entails some minor cons that you may encounter. Here we present the most common ones so you can solve them quickly.&lt;br /&gt;
&lt;br /&gt;
==== Problem opening a GUI Window ====&lt;br /&gt;
&lt;br /&gt;
If you are working on a small laptop screen, opening a GUI window, for example when typing the &amp;quot;dcp&amp;quot; command to start a project, may make appear with the header of the window hidden on the top of the screen&lt;br /&gt;
&lt;br /&gt;
==== Problem pressing right click in a MAC laptop with no external mouse ====&lt;br /&gt;
&lt;br /&gt;
Walkthrough on GUI based tilt series alignment&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5817</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5817"/>
		<updated>2025-12-09T11:31:27Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Initializating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to initialize Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Working with the Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
For a specific explanation of the Standalone see [https://www.dynamo-em.org//w/index.php?title=Standalone]. &lt;br /&gt;
Once dynamo has been initialized, you can enter in dynamo by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also type&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dynamo x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so dynamo will open a GUI console, instead of using the terminal, nevertheless the first option is strongly reccommended for some Walkthroughs.&lt;br /&gt;
&lt;br /&gt;
=== Solution of some possible minor cons of working in a laptop ====&lt;br /&gt;
&lt;br /&gt;
Since&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5816</id>
		<title>I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=I2PC_%E2%80%93_Instruct_Course_on_Electron_Tomography_and_Subtomogram_Averaging_2025&amp;diff=5816"/>
		<updated>2025-12-09T11:16:17Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Amazon machines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:WalkthroughsSpecific]]&lt;br /&gt;
= The course = &lt;br /&gt;
== The venue ==&lt;br /&gt;
This page describes the contents of the &#039;&#039;Dynamo&#039;&#039;-specific part of the course &amp;quot;I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025&amp;quot;, which will take part at the premises of the Centro Nacional de Biotecnología in Madrid, from the 9th to the 12th of December 2025.&lt;br /&gt;
== Contents == &lt;br /&gt;
Whole pipelines for cryo-ET processing will be covered in the Scipion-related area of the course (days 1 and 2). The &#039;&#039;Dynamo&#039;&#039; part will covered selected parts of the pipeline.&lt;br /&gt;
&lt;br /&gt;
= Installation of Dynamo and Matlab =&lt;br /&gt;
== Dynamo on your own laptop == &lt;br /&gt;
To follow the course in your own laptop, please install &#039;&#039;&#039;[https://drive.google.com/file/d/1x5he7ctkC4BUCNFhfXLk6heggGohELoM/view?usp=drive_link the Dynamo for Matlab version]&#039;&#039;&#039; as explain in [[ Downloads ]] page.&lt;br /&gt;
&lt;br /&gt;
= Computing resources = &lt;br /&gt;
&lt;br /&gt;
== Laptops ==&lt;br /&gt;
Participants can use their own laptops to complete the Dynamo part of the course. For this, participants need to have and active &#039;&#039;&#039;Matlab installation&#039;&#039;&#039; and an Dynamo installation.&lt;br /&gt;
* For Matlab, we advise the (R2025b version). If you don&#039;t have a license through your home institution, a [https://ch.mathworks.com/campaigns/products/trials.html licence free trial version is available] from the Mathworks company. &lt;br /&gt;
* &#039;&#039;&#039;The Dynamo Download link is currently down&#039;&#039;&#039;, we will update it later today  (17:00 ECT): prior to installation make sure you have a compiler. On Linux you probably have one by default. On Mac, Xcode needs to be installed. On Windows, the recommended option is to install it via Matlab: &lt;br /&gt;
&lt;br /&gt;
https://es.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; is delivered as a single .tar file. To install it, move the file to the location where you want to install &#039;&#039;Dynamo&#039;&#039;, then open a Matlab session and type after the Matlab prompt:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;  &amp;gt;&amp;gt; tar -xvf dynamo_temp_1.1.579.tar &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to untar the installation file. &#039;&#039;Dynamo&#039;&#039; will be installed in the folder that contained the .tar. If we call this folder &amp;lt;DYNAMO_ROOT&amp;gt;, you can activate &#039;&#039;Dynamo&#039;&#039; in your MATLAB session by typing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you are in that folder, or with &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; &amp;gt;&amp;gt; run &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate.m &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you are in some other folder. Wait while some packages are compiled. Activate it again.&lt;br /&gt;
&lt;br /&gt;
== Amazon machines ==&lt;br /&gt;
&lt;br /&gt;
If you want to follow the course with virtual machines provided by the course, follow this instructions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Entering in the AWS Machine ===&lt;br /&gt;
&lt;br /&gt;
Access the link of your AWS Machine provided by the organizers, that appears in the [https://docs.google.com/spreadsheets/d/15o8IUOSsNjGHxK0Bmi1QBfI9KCCWCpX603R4l_rn6KA/edit?gid=653170857#gid=653170857 Google Sheet]. After introducing your password (also given in the same google sheet), you will have entered in the AWS Machine.&lt;br /&gt;
&lt;br /&gt;
=== Initializating Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
Once you have accessed the AWS Machine, you need to initialize Dynamo Standalone. Open the terminal emulator and type the next command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source dynamo-v-1.1.579/dynamo_activate_linux_shipped_MCR.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After some lines asserting the correct addition of several paths and tests, it should appear as the last line: &amp;quot;Dynamo is ready for standalone use in your Linux system&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Working with the Dynamo Standalone ===&lt;br /&gt;
&lt;br /&gt;
The complete&lt;br /&gt;
&lt;br /&gt;
== Workshop data ==&lt;br /&gt;
&lt;br /&gt;
The data that will be used during the workshop can be downloaded through the SACO server of CSIC. In detail, the data for the respective modules is as follows (for a total of about 61 Gb ):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Module and data source&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Data source&lt;br /&gt;
|-&lt;br /&gt;
| Starters Guide: subtomogram averaging || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Filaments || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Vesicles || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Models: Surfaces || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching || {{Template:DownloadLinkTemplateMatchingBasic}} (750MB)&lt;br /&gt;
|-&lt;br /&gt;
| Template Matching (GUI) || {{Template:DownloadLinkTemplateMCP}} (7.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Alignment of tilt series || {{Template:DownloadLinkAWFHIV1TS}} (600MB)&lt;br /&gt;
|-&lt;br /&gt;
| Virus like particles ||  {{Template:DownloadLinkVLPs}} (4.6GB)&lt;br /&gt;
|-&lt;br /&gt;
| Spherical geometries || {{Template:DownloadLinkBasicHIVTomo}}  (64 MB)&lt;br /&gt;
|-&lt;br /&gt;
| Principal Component Analysis || Data generated locally by Dynamo&lt;br /&gt;
|-&lt;br /&gt;
| Complete walkthrough on FHV virus || {{Template:DownloadLinkFHV}} (2GB)&lt;br /&gt;
|-&lt;br /&gt;
| Walkthrough on hexagonal lattice coherence through neighborhood analysis || {{Template:DownloadLinkNeighborhoodData}}&lt;br /&gt;
|-&lt;br /&gt;
| High-resolution HIV1 || {{Template:DownloadLinkHighResHIV1}} (48Gb)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Time schedule =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Morning) 11th of December&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 09:30 - 10:00|| Hands-on tutorial. First steps and formats.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 10:00 - 11:00|| [[Starters guide (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Starters Guide: subtomogram averaging]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 11:00 - 11:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 11:30 - 12:30||  Starters Guide: subtomogram averaging (continuation).&lt;br /&gt;
|-&lt;br /&gt;
| 3 || 12:30 - 13:00 || General modeling&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 3 (Afternoon)  11th of December&lt;br /&gt;
|-&lt;br /&gt;
| 3a ||14:00 - 14:30  || [[Walkthrough_on_filament_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Filaments]] &amp;lt;br/&amp;gt;  Additional material: [[Walkthrough model workflow reuse (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Coordinated extraction from several filaments]]&lt;br /&gt;
|-&lt;br /&gt;
| 3b || 15:00 - 15:30 || [[Walkthrough_on_vesicle_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Models: Vesicles ]] &lt;br /&gt;
|-&lt;br /&gt;
| 3c || 15:30 - 16:00 || [[Walkthrough_on_membrane_models (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Models: Surfaces ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 16:30 - 17:30 || [[Getting a Structure from Multiple Tomograms of HIV Capsids (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Virus like particles]] or [[Walkthrough for lattices on vesicles (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Spherical geometries]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Morning: 12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
| 5a || 09:30 - 09:45 || Presentation of FHV: Advanced starters guide&lt;br /&gt;
|-&lt;br /&gt;
| 5b || 09:45 - 11:00 || [[Complete walkthrough on FHV virus (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Hands-on tutorial: Advanced starters guide ]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee  || 11:00 - 11:30 || Coffee break &lt;br /&gt;
|-&lt;br /&gt;
| 5b || 11:30 - 12:00 ||   Hands-on tutorial: Advanced starters guide (continued)&lt;br /&gt;
|-&lt;br /&gt;
| 6a || 12:00 - 12:20 || [[Walkthrough on manual marker clicking (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: Manual]] &lt;br /&gt;
|-&lt;br /&gt;
| 6b || 12:20 - 12:40 || [[Walkthrough on GUI based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: GUI ]]&lt;br /&gt;
|-&lt;br /&gt;
| 6c || 12:40 - 13:00 || [[Walkthrough on command line based tilt series alignment (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Alignment of tilt series: command line]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|+ Day 4, Afternoon session:  12th of December (Friday)&lt;br /&gt;
|-&lt;br /&gt;
! Module !! Time !! Subject&lt;br /&gt;
|-&lt;br /&gt;
| 7a || 14:00 - 15:00 || [[Walkthrough for template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| 7b || 15:00 - 16:00 || [[Walkthrough for GUI-based template matching (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025) | Geometry aware template Matching]]&lt;br /&gt;
|-&lt;br /&gt;
| coffee || 16:00 - 16:30 || Coffee Break&lt;br /&gt;
|-&lt;br /&gt;
| 8  || 16:30- 17:30 ||  [[Walkthrough on PCA through the command line (I2PC – Instruct Course on Electron Tomography and Subtomogram Averaging 2025)| Principal Component Analysis ]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Instructors =&lt;br /&gt;
* Daniel Castano-Diez (CSIC Bilbao, Spain).&lt;br /&gt;
* Raffaele Coray (CSIC Bilbao, Spain).&lt;br /&gt;
* Laura García-Cornejo (CSIC Bilbao, Spain).&lt;br /&gt;
* Andrés Molina (CSIC Bilbao, Spain).&lt;br /&gt;
* Miguel Sánchez López-Cuervo (CSIC Bilbao, Spain).&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=Standalone&amp;diff=5719</id>
		<title>Standalone</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=Standalone&amp;diff=5719"/>
		<updated>2025-12-05T13:32:26Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Testing your standalone */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:&#039;&#039;Dynamo&#039;&#039; standalone}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Dynamo standalone&#039;&#039; is the version of &#039;&#039;Dynamo&#039;&#039; that runs without any Matlab installation. A &#039;&#039;standalone&#039;&#039; package carries its own &amp;quot;Matlab&amp;quot; version in the form of  [[MCR libraries]].&lt;br /&gt;
&lt;br /&gt;
==Activating the standalone==&lt;br /&gt;
To use &#039;&#039;Dynamo&#039;&#039; is standalone modus in a shell, you need to activate first that shell, typically with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;source &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate_linux_shipped_MCR.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using the standalone==&lt;br /&gt;
&lt;br /&gt;
Our advice to work with the &#039;&#039;Dynamo&#039;&#039; standalone is to use at least two linux shells. You would use one shell (let&#039;s call it &#039;&#039;console shell&#039;&#039;)  to run an interactive [[Dynamo console]], where you can create projects, view tomograms or analyse results. In a second linux shell (let&#039;s call it &#039;&#039;computing shell&#039;&#039;), you can launch the projects edited on the first shell. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; must be active in both shells!&lt;br /&gt;
&lt;br /&gt;
=== On the Console shell===&lt;br /&gt;
A console shell can be launched through typing &amp;lt;tt&amp;gt;dynamo&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;dynamo x&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
*Using the Wizard  GUI&lt;br /&gt;
*:Make certain that when you create a project, you use the &amp;lt;tt&amp;gt;standalone&amp;lt;/tt&amp;gt; option in the [[Computing environment GUI]].  Each  &amp;quot;core&amp;quot; will be handled by a different openMP process. You can also run alignment projects in the GPU, in which case you also have to mark the set of [[GPU identifiers]].&lt;br /&gt;
*Using the command line  &lt;br /&gt;
*: In case that you are designing your project from the command line, the parameter that controls the environment is called {{t|destination}}. To use the standalone, it should be tuned to {{t|system_omp}} for multicore projects, or to {{t|system_gpu}} for GPU projects.&lt;br /&gt;
&lt;br /&gt;
In both cases you can check and unfold the project in the GUI handled by the [[Dynamo console]] to produce an [[execution script]]. A project called {{t|myProject}} will generate an standalone script called {{t|myProject.exe}}. Instead of running the project in the Console shell, the Console will be blocked until the project is finished (and wont show any results on screen).&lt;br /&gt;
&lt;br /&gt;
=== On the computation shell===&lt;br /&gt;
To execute a project {{t|myProject}} in a shell, you don&#039;t need to open any [[Dynamo console]] first. Just type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;./myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on your system configuration. You might also need to adjust permissions through: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;chmod u=rxw ./myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, anyway, that you can run in the Linux shell any project that has been unfolded as standalone: you can thus create your projects in a Matlab shell, check and unfold them under Matlab, an then run them inside a Linux shell using the generated execution script.&lt;br /&gt;
&lt;br /&gt;
[[File:Computing_environment_gui_standalone.png|thumb|center|400px|Computing environment GUI with the standalone option]]&lt;br /&gt;
&lt;br /&gt;
===For independent commands===&lt;br /&gt;
You can use the standalone version to execute independent &#039;&#039;Dynamo&#039;&#039; commands from the linux shell (avoiding the &#039;&#039;Dynamo&#039;&#039; [[console]]). Use the sign &amp;lt;tt&amp;gt;&amp;quot;&amp;lt;/tt&amp;gt; to encase the literal  expression that you would write on a Matlab shell. Importantly do NOT use the short version of the commands, i.e., do not use {{t|dwrite}} instead of {{t|dynamo_write}}. For example, writing in your (&#039;&#039;Dynamo&#039;&#039;-activated) shell:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;x=rand(64,64,64);dynamo_write(x,&#039;test.em&#039;);&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create a cube containing random uniform noise in the temporary workspace and then write it into a file {{t|test.em}}. Note that the workspace is local to each call to &#039;&#039;Dynamo&#039;&#039; through the {{t|dynamo}} command, so that you can NOT divide the order in two: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;x=rand(64,64,64);&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;dynamo_write(x,&#039;test.em&#039;);&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would throw an error on the second line.&lt;br /&gt;
&lt;br /&gt;
In general, calling the command {{t|dynamo}} will require an initiation time of several seconds, so it is convenient to pile as many operations as possible inside a single call. Loops are allowed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;dynamo &amp;quot;for i=1:10;x=rand(64,64,64);dynamo_write(x,sprintf(&#039;test%d.em&#039;,i));end&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As an alternative, you can write Dynamo instructions in a text file and pass the name of the file to the {{t|dynamo}} command. For intance, if you have a text file called {{t|commnads.sh}} with this content:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; x=rand(64,64,64);&amp;lt;/tt&amp;gt; &lt;br /&gt;
 &amp;lt;tt&amp;gt; dynamo_write(x,&#039;test.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you can execute the script by writing: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;dynamo commands.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this imposes a maximum of 1024 characters for the full script. &lt;br /&gt;
&lt;br /&gt;
With this technique, it is possible to [[ Scripted creation of a project in the Linux command line| fully design and run a project from the command line  ]], or to integrate &#039;&#039;Dynamo&#039;&#039; operations in third party pipelines.&lt;br /&gt;
&lt;br /&gt;
==Advantages over the Matlab version==&lt;br /&gt;
Besides the obvious advantage of not requiring the purchase of any Matlab license, there are some minor functionalities in &#039;&#039;Dynamo&#039;&#039; that would require an extra Toolbox on top of the basic Matlab license, as Statistics or Curve fitting. These functionalities are never used in the basic pipeline of &#039;&#039;Dynamo&#039;&#039;, but are part of the extended tools offered by &#039;&#039;Dynamo&#039;&#039; through  its command line.&lt;br /&gt;
When you use the standalone, all mathematical toolboxes are automatically available.&lt;br /&gt;
&lt;br /&gt;
Additionally, the standalone version is automatically delivered with the newest Matlab version. If you are running &#039;&#039;Dynamo&#039;&#039; on Matlab versions previous to release R2014b, you can experiment visualization problems in some programs.&lt;br /&gt;
&lt;br /&gt;
== Testing your standalone ==&lt;br /&gt;
&lt;br /&gt;
You can quickly run a test project in order to check that your standalone is correctly installed:&lt;br /&gt;
# Open a system shell. Let&#039;s call it &#039;&#039;dynamo console shell&#039;&#039;&lt;br /&gt;
# Activate Dynamo on this shell: &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt;source &amp;lt;Dynamo Root&amp;gt;/dynamo_activate_linux_shipped_MCR.sh&amp;lt;/tt&amp;gt; &amp;lt;br/&amp;gt;or equivalently for your system (Mac or Windows).&lt;br /&gt;
#Start the &#039;&#039;Dynamo&#039;&#039; console  on it by typing &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt; dynamo &amp;lt;/tt&amp;gt; &amp;lt;br /&amp;gt; on it. Now this shell will work as a console when you can type &#039;&#039;Dynamo&#039;&#039; commands after the prompt &amp;lt;tt&amp;gt;Dynamo &amp;gt;&amp;gt; &amp;lt;/tt&amp;gt;&lt;br /&gt;
#Under the &amp;lt;tt&amp;gt;Dynamo &amp;gt;&amp;gt;&amp;lt;/tt&amp;gt; prompt, we will create a tutorial project; &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt; dtutorial mytest -p ptest&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
#Open a &#039;&#039;&#039;different&#039;&#039;&#039; system shell. Let&#039;s call it &#039;&#039;project execution shell&#039;&#039;.&lt;br /&gt;
#On this shell, &#039;&#039;activate&#039;&#039; &#039;&#039;Dynamo&#039;&#039;:  &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;source &amp;lt;Dynamo Root&amp;gt;/dynamo_activate_linux_shipped_MCR.sh&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
#Go to same folder in which you created the project. Both shells should have the same &amp;lt;tt&amp;gt;pwd&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Execute the project in the  &#039;&#039;project execution shell&#039;&#039;: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;./ptest.exe &amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;Please note that this project has been unfolded during creation. For your own projects, you&#039;ll need to unfold them manually through the [[dcp GUI]] or with the command: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;dvunfold ptest&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt; invoked inside the &#039;&#039;Dynamo console&#039;&#039;&lt;br /&gt;
# Check the result in the &#039;&#039;dynamo console shell&#039;&#039; by &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;ddb ptest:a -v &amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt; This should show a reconstructed thermosome.&lt;br /&gt;
&lt;br /&gt;
== Typical problems with the standalone ==&lt;br /&gt;
&lt;br /&gt;
Some of the software installed in your system may enter in conflict with the [[MCR libraries]] supplied by &#039;&#039;Dynamo&#039;&#039;. Is it also possible that some system libraries enter in conflict with the [[MCR libraries]]. In most cases, [[Library conflicts | preloading a valid library]] solves the problem.&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=Standalone&amp;diff=5718</id>
		<title>Standalone</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=Standalone&amp;diff=5718"/>
		<updated>2025-12-05T13:32:11Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Testing your standalone */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:&#039;&#039;Dynamo&#039;&#039; standalone}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Dynamo standalone&#039;&#039; is the version of &#039;&#039;Dynamo&#039;&#039; that runs without any Matlab installation. A &#039;&#039;standalone&#039;&#039; package carries its own &amp;quot;Matlab&amp;quot; version in the form of  [[MCR libraries]].&lt;br /&gt;
&lt;br /&gt;
==Activating the standalone==&lt;br /&gt;
To use &#039;&#039;Dynamo&#039;&#039; is standalone modus in a shell, you need to activate first that shell, typically with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;source &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate_linux_shipped_MCR.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using the standalone==&lt;br /&gt;
&lt;br /&gt;
Our advice to work with the &#039;&#039;Dynamo&#039;&#039; standalone is to use at least two linux shells. You would use one shell (let&#039;s call it &#039;&#039;console shell&#039;&#039;)  to run an interactive [[Dynamo console]], where you can create projects, view tomograms or analyse results. In a second linux shell (let&#039;s call it &#039;&#039;computing shell&#039;&#039;), you can launch the projects edited on the first shell. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; must be active in both shells!&lt;br /&gt;
&lt;br /&gt;
=== On the Console shell===&lt;br /&gt;
A console shell can be launched through typing &amp;lt;tt&amp;gt;dynamo&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;dynamo x&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
*Using the Wizard  GUI&lt;br /&gt;
*:Make certain that when you create a project, you use the &amp;lt;tt&amp;gt;standalone&amp;lt;/tt&amp;gt; option in the [[Computing environment GUI]].  Each  &amp;quot;core&amp;quot; will be handled by a different openMP process. You can also run alignment projects in the GPU, in which case you also have to mark the set of [[GPU identifiers]].&lt;br /&gt;
*Using the command line  &lt;br /&gt;
*: In case that you are designing your project from the command line, the parameter that controls the environment is called {{t|destination}}. To use the standalone, it should be tuned to {{t|system_omp}} for multicore projects, or to {{t|system_gpu}} for GPU projects.&lt;br /&gt;
&lt;br /&gt;
In both cases you can check and unfold the project in the GUI handled by the [[Dynamo console]] to produce an [[execution script]]. A project called {{t|myProject}} will generate an standalone script called {{t|myProject.exe}}. Instead of running the project in the Console shell, the Console will be blocked until the project is finished (and wont show any results on screen).&lt;br /&gt;
&lt;br /&gt;
=== On the computation shell===&lt;br /&gt;
To execute a project {{t|myProject}} in a shell, you don&#039;t need to open any [[Dynamo console]] first. Just type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;./myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on your system configuration. You might also need to adjust permissions through: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;chmod u=rxw ./myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, anyway, that you can run in the Linux shell any project that has been unfolded as standalone: you can thus create your projects in a Matlab shell, check and unfold them under Matlab, an then run them inside a Linux shell using the generated execution script.&lt;br /&gt;
&lt;br /&gt;
[[File:Computing_environment_gui_standalone.png|thumb|center|400px|Computing environment GUI with the standalone option]]&lt;br /&gt;
&lt;br /&gt;
===For independent commands===&lt;br /&gt;
You can use the standalone version to execute independent &#039;&#039;Dynamo&#039;&#039; commands from the linux shell (avoiding the &#039;&#039;Dynamo&#039;&#039; [[console]]). Use the sign &amp;lt;tt&amp;gt;&amp;quot;&amp;lt;/tt&amp;gt; to encase the literal  expression that you would write on a Matlab shell. Importantly do NOT use the short version of the commands, i.e., do not use {{t|dwrite}} instead of {{t|dynamo_write}}. For example, writing in your (&#039;&#039;Dynamo&#039;&#039;-activated) shell:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;x=rand(64,64,64);dynamo_write(x,&#039;test.em&#039;);&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create a cube containing random uniform noise in the temporary workspace and then write it into a file {{t|test.em}}. Note that the workspace is local to each call to &#039;&#039;Dynamo&#039;&#039; through the {{t|dynamo}} command, so that you can NOT divide the order in two: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;x=rand(64,64,64);&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;dynamo_write(x,&#039;test.em&#039;);&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would throw an error on the second line.&lt;br /&gt;
&lt;br /&gt;
In general, calling the command {{t|dynamo}} will require an initiation time of several seconds, so it is convenient to pile as many operations as possible inside a single call. Loops are allowed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;dynamo &amp;quot;for i=1:10;x=rand(64,64,64);dynamo_write(x,sprintf(&#039;test%d.em&#039;,i));end&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As an alternative, you can write Dynamo instructions in a text file and pass the name of the file to the {{t|dynamo}} command. For intance, if you have a text file called {{t|commnads.sh}} with this content:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; x=rand(64,64,64);&amp;lt;/tt&amp;gt; &lt;br /&gt;
 &amp;lt;tt&amp;gt; dynamo_write(x,&#039;test.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you can execute the script by writing: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;dynamo commands.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this imposes a maximum of 1024 characters for the full script. &lt;br /&gt;
&lt;br /&gt;
With this technique, it is possible to [[ Scripted creation of a project in the Linux command line| fully design and run a project from the command line  ]], or to integrate &#039;&#039;Dynamo&#039;&#039; operations in third party pipelines.&lt;br /&gt;
&lt;br /&gt;
==Advantages over the Matlab version==&lt;br /&gt;
Besides the obvious advantage of not requiring the purchase of any Matlab license, there are some minor functionalities in &#039;&#039;Dynamo&#039;&#039; that would require an extra Toolbox on top of the basic Matlab license, as Statistics or Curve fitting. These functionalities are never used in the basic pipeline of &#039;&#039;Dynamo&#039;&#039;, but are part of the extended tools offered by &#039;&#039;Dynamo&#039;&#039; through  its command line.&lt;br /&gt;
When you use the standalone, all mathematical toolboxes are automatically available.&lt;br /&gt;
&lt;br /&gt;
Additionally, the standalone version is automatically delivered with the newest Matlab version. If you are running &#039;&#039;Dynamo&#039;&#039; on Matlab versions previous to release R2014b, you can experiment visualization problems in some programs.&lt;br /&gt;
&lt;br /&gt;
== Testing your standalone ==&lt;br /&gt;
&lt;br /&gt;
You can quickly run a test project in order to check that your standalone is correctly installed:&lt;br /&gt;
# Open a system shell. Let&#039;s call it &#039;&#039;dynamo console shell&#039;&#039;&lt;br /&gt;
# Activate Dynamo on this shell: &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt;source &amp;lt;Dynamo Root&amp;gt;/dynamo_activate_linux_shipped_MCR.sh&amp;lt;/tt&amp;gt; &amp;lt;br/&amp;gt;or equivalently for your system (Mac or Windows).&lt;br /&gt;
#Start the &#039;&#039;Dynamo&#039;&#039; console  on it by typing &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt; dynamo &amp;lt;/tt&amp;gt; &amp;lt;br /&amp;gt; on it. Now this shell will work as a console when you can type &#039;&#039;Dynamo&#039;&#039; commands after the prompt &amp;lt;tt&amp;gt;Dynamo &amp;gt;&amp;gt; &amp;lt;/tt&amp;gt;&lt;br /&gt;
#Under the &amp;lt;tt&amp;gt;Dynamo &amp;gt;&amp;gt;&amp;lt;/tt&amp;gt; prompt, we will create a tutorial project; &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt; dtutorial mytest -p ptest&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
#Open a &#039;&#039;&#039;different&#039;&#039;&#039; system shell. Let&#039;s call it &#039;&#039;project execution shell&#039;&#039;.&lt;br /&gt;
#On this shell, &#039;&#039;activate&#039;&#039; &#039;&#039;Dynamo&#039;&#039;:  &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;source &amp;lt;Dynamo Root&amp;gt;/dynamo_activate_linux_with_shippedMRC.sh&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
#Go to same folder in which you created the project. Both shells should have the same &amp;lt;tt&amp;gt;pwd&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Execute the project in the  &#039;&#039;project execution shell&#039;&#039;: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;./ptest.exe &amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;Please note that this project has been unfolded during creation. For your own projects, you&#039;ll need to unfold them manually through the [[dcp GUI]] or with the command: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;dvunfold ptest&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt; invoked inside the &#039;&#039;Dynamo console&#039;&#039;&lt;br /&gt;
# Check the result in the &#039;&#039;dynamo console shell&#039;&#039; by &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;ddb ptest:a -v &amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt; This should show a reconstructed thermosome.&lt;br /&gt;
&lt;br /&gt;
== Typical problems with the standalone ==&lt;br /&gt;
&lt;br /&gt;
Some of the software installed in your system may enter in conflict with the [[MCR libraries]] supplied by &#039;&#039;Dynamo&#039;&#039;. Is it also possible that some system libraries enter in conflict with the [[MCR libraries]]. In most cases, [[Library conflicts | preloading a valid library]] solves the problem.&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
	<entry>
		<id>https://www.dynamo-em.org//w/index.php?title=Standalone&amp;diff=5717</id>
		<title>Standalone</title>
		<link rel="alternate" type="text/html" href="https://www.dynamo-em.org//w/index.php?title=Standalone&amp;diff=5717"/>
		<updated>2025-12-05T13:31:27Z</updated>

		<summary type="html">&lt;p&gt;Miguel Sanchez: /* Activating the standalone */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:&#039;&#039;Dynamo&#039;&#039; standalone}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Dynamo standalone&#039;&#039; is the version of &#039;&#039;Dynamo&#039;&#039; that runs without any Matlab installation. A &#039;&#039;standalone&#039;&#039; package carries its own &amp;quot;Matlab&amp;quot; version in the form of  [[MCR libraries]].&lt;br /&gt;
&lt;br /&gt;
==Activating the standalone==&lt;br /&gt;
To use &#039;&#039;Dynamo&#039;&#039; is standalone modus in a shell, you need to activate first that shell, typically with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;source &amp;lt;DYNAMO_ROOT&amp;gt;/dynamo_activate_linux_shipped_MCR.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using the standalone==&lt;br /&gt;
&lt;br /&gt;
Our advice to work with the &#039;&#039;Dynamo&#039;&#039; standalone is to use at least two linux shells. You would use one shell (let&#039;s call it &#039;&#039;console shell&#039;&#039;)  to run an interactive [[Dynamo console]], where you can create projects, view tomograms or analyse results. In a second linux shell (let&#039;s call it &#039;&#039;computing shell&#039;&#039;), you can launch the projects edited on the first shell. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Dynamo&#039;&#039; must be active in both shells!&lt;br /&gt;
&lt;br /&gt;
=== On the Console shell===&lt;br /&gt;
A console shell can be launched through typing &amp;lt;tt&amp;gt;dynamo&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;dynamo x&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
*Using the Wizard  GUI&lt;br /&gt;
*:Make certain that when you create a project, you use the &amp;lt;tt&amp;gt;standalone&amp;lt;/tt&amp;gt; option in the [[Computing environment GUI]].  Each  &amp;quot;core&amp;quot; will be handled by a different openMP process. You can also run alignment projects in the GPU, in which case you also have to mark the set of [[GPU identifiers]].&lt;br /&gt;
*Using the command line  &lt;br /&gt;
*: In case that you are designing your project from the command line, the parameter that controls the environment is called {{t|destination}}. To use the standalone, it should be tuned to {{t|system_omp}} for multicore projects, or to {{t|system_gpu}} for GPU projects.&lt;br /&gt;
&lt;br /&gt;
In both cases you can check and unfold the project in the GUI handled by the [[Dynamo console]] to produce an [[execution script]]. A project called {{t|myProject}} will generate an standalone script called {{t|myProject.exe}}. Instead of running the project in the Console shell, the Console will be blocked until the project is finished (and wont show any results on screen).&lt;br /&gt;
&lt;br /&gt;
=== On the computation shell===&lt;br /&gt;
To execute a project {{t|myProject}} in a shell, you don&#039;t need to open any [[Dynamo console]] first. Just type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;./myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on your system configuration. You might also need to adjust permissions through: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;chmod u=rxw ./myProject.exe&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, anyway, that you can run in the Linux shell any project that has been unfolded as standalone: you can thus create your projects in a Matlab shell, check and unfold them under Matlab, an then run them inside a Linux shell using the generated execution script.&lt;br /&gt;
&lt;br /&gt;
[[File:Computing_environment_gui_standalone.png|thumb|center|400px|Computing environment GUI with the standalone option]]&lt;br /&gt;
&lt;br /&gt;
===For independent commands===&lt;br /&gt;
You can use the standalone version to execute independent &#039;&#039;Dynamo&#039;&#039; commands from the linux shell (avoiding the &#039;&#039;Dynamo&#039;&#039; [[console]]). Use the sign &amp;lt;tt&amp;gt;&amp;quot;&amp;lt;/tt&amp;gt; to encase the literal  expression that you would write on a Matlab shell. Importantly do NOT use the short version of the commands, i.e., do not use {{t|dwrite}} instead of {{t|dynamo_write}}. For example, writing in your (&#039;&#039;Dynamo&#039;&#039;-activated) shell:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;x=rand(64,64,64);dynamo_write(x,&#039;test.em&#039;);&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create a cube containing random uniform noise in the temporary workspace and then write it into a file {{t|test.em}}. Note that the workspace is local to each call to &#039;&#039;Dynamo&#039;&#039; through the {{t|dynamo}} command, so that you can NOT divide the order in two: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;x=rand(64,64,64);&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt; dynamo &amp;quot;dynamo_write(x,&#039;test.em&#039;);&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would throw an error on the second line.&lt;br /&gt;
&lt;br /&gt;
In general, calling the command {{t|dynamo}} will require an initiation time of several seconds, so it is convenient to pile as many operations as possible inside a single call. Loops are allowed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;dynamo &amp;quot;for i=1:10;x=rand(64,64,64);dynamo_write(x,sprintf(&#039;test%d.em&#039;,i));end&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As an alternative, you can write Dynamo instructions in a text file and pass the name of the file to the {{t|dynamo}} command. For intance, if you have a text file called {{t|commnads.sh}} with this content:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt; x=rand(64,64,64);&amp;lt;/tt&amp;gt; &lt;br /&gt;
 &amp;lt;tt&amp;gt; dynamo_write(x,&#039;test.em&#039;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you can execute the script by writing: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;dynamo commands.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this imposes a maximum of 1024 characters for the full script. &lt;br /&gt;
&lt;br /&gt;
With this technique, it is possible to [[ Scripted creation of a project in the Linux command line| fully design and run a project from the command line  ]], or to integrate &#039;&#039;Dynamo&#039;&#039; operations in third party pipelines.&lt;br /&gt;
&lt;br /&gt;
==Advantages over the Matlab version==&lt;br /&gt;
Besides the obvious advantage of not requiring the purchase of any Matlab license, there are some minor functionalities in &#039;&#039;Dynamo&#039;&#039; that would require an extra Toolbox on top of the basic Matlab license, as Statistics or Curve fitting. These functionalities are never used in the basic pipeline of &#039;&#039;Dynamo&#039;&#039;, but are part of the extended tools offered by &#039;&#039;Dynamo&#039;&#039; through  its command line.&lt;br /&gt;
When you use the standalone, all mathematical toolboxes are automatically available.&lt;br /&gt;
&lt;br /&gt;
Additionally, the standalone version is automatically delivered with the newest Matlab version. If you are running &#039;&#039;Dynamo&#039;&#039; on Matlab versions previous to release R2014b, you can experiment visualization problems in some programs.&lt;br /&gt;
&lt;br /&gt;
== Testing your standalone ==&lt;br /&gt;
&lt;br /&gt;
You can quickly run a test project in order to check that your standalone is correctly installed:&lt;br /&gt;
# Open a system shell. Let&#039;s call it &#039;&#039;dynamo console shell&#039;&#039;&lt;br /&gt;
# Activate Dynamo on this shell: &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt;source &amp;lt;Dynamo Root&amp;gt;/dynamo_activate_linux_with_shippedMRC.sh&amp;lt;/tt&amp;gt; &amp;lt;br/&amp;gt;or equivalently for your system (Mac or Windows).&lt;br /&gt;
#Start the &#039;&#039;Dynamo&#039;&#039; console  on it by typing &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt; dynamo &amp;lt;/tt&amp;gt; &amp;lt;br /&amp;gt; on it. Now this shell will work as a console when you can type &#039;&#039;Dynamo&#039;&#039; commands after the prompt &amp;lt;tt&amp;gt;Dynamo &amp;gt;&amp;gt; &amp;lt;/tt&amp;gt;&lt;br /&gt;
#Under the &amp;lt;tt&amp;gt;Dynamo &amp;gt;&amp;gt;&amp;lt;/tt&amp;gt; prompt, we will create a tutorial project; &amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt; dtutorial mytest -p ptest&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
#Open a &#039;&#039;&#039;different&#039;&#039;&#039; system shell. Let&#039;s call it &#039;&#039;project execution shell&#039;&#039;.&lt;br /&gt;
#On this shell, &#039;&#039;activate&#039;&#039; &#039;&#039;Dynamo&#039;&#039;:  &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;source &amp;lt;Dynamo Root&amp;gt;/dynamo_activate_linux_with_shippedMRC.sh&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
#Go to same folder in which you created the project. Both shells should have the same &amp;lt;tt&amp;gt;pwd&amp;lt;/tt&amp;gt;&lt;br /&gt;
#Execute the project in the  &#039;&#039;project execution shell&#039;&#039;: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;./ptest.exe &amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;Please note that this project has been unfolded during creation. For your own projects, you&#039;ll need to unfold them manually through the [[dcp GUI]] or with the command: &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;dvunfold ptest&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt; invoked inside the &#039;&#039;Dynamo console&#039;&#039;&lt;br /&gt;
# Check the result in the &#039;&#039;dynamo console shell&#039;&#039; by &amp;lt;br /&amp;gt;&amp;lt;tt&amp;gt;ddb ptest:a -v &amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt; This should show a reconstructed thermosome.&lt;br /&gt;
&lt;br /&gt;
== Typical problems with the standalone ==&lt;br /&gt;
&lt;br /&gt;
Some of the software installed in your system may enter in conflict with the [[MCR libraries]] supplied by &#039;&#039;Dynamo&#039;&#039;. Is it also possible that some system libraries enter in conflict with the [[MCR libraries]]. In most cases, [[Library conflicts | preloading a valid library]] solves the problem.&lt;/div&gt;</summary>
		<author><name>Miguel Sanchez</name></author>
	</entry>
</feed>