Difference between revisions of "Programmatic control of alignment and reconstruction workflows"

From Dynamo
Jump to navigation Jump to search
(Created page with "'''Article in progress'''. These functionalities will be released in the ''Dynamo'' 1.2 series. Alignment and reconstruction workflows can be used with the GUI or on a total...")
 
Line 5: Line 5:
  
 
= Description =
 
= Description =
 +
 +
This section describes qualitatively the organization logic of the workflow and it elements. Actual syntax is described in the [[next section]]
  
 
== The workflow folder ==
 
== The workflow folder ==
Line 36: Line 38:
 
By default, intermediate and final results will be stored as fixed locations inside the workflow folder. This is the recommended behaviour for starting users.
 
By default, intermediate and final results will be stored as fixed locations inside the workflow folder. This is the recommended behaviour for starting users.
  
== Data ==
+
== Input data ==
  
Data does not need to be stored physically  
+
Data does not need to be stored physically in the workflow folder.
  
 
=== Tilt series data ===
 
=== Tilt series data ===
 +
 +
The full sized tilt series can be stored somewhere else and just linked to the workflow, as <tt>mrc</tt> or <tt>st</tt> file.
 +
 +
==== Original location of the tilt series ====
 +
If you lose the overview of where the tilt series in a workflow is actually located, you can use general data location system of the workflow (explained elsewhere), or just the shortcut:
 +
 +
<tt>file = w.io.getMatrixFile()</tt>
 +
 +
where <tt>w</tt> is a workflow object.
  
 
=== Tilt angles ===
 
=== Tilt angles ===
 +
 +
By default, the nominal tilt angles as delivered by the data acquisition software will be stored in the workflow folder, as file name <tt>nominalTiltAngles.tlt</tt> which is a text file.
 +
The order of the angles must correspond to order of tilt series stack.
 +
 +
=== Manually excluded tilt indices ===
 +
Some micrographs might be detected to be of low quality by simple visual inspection (because of focusing errors, big shifts, etc). The identity of such micrographs is stored in a text file called <tt>discardedTiltIndices.txt</tt>.
 +
This file is updated when the workflow is handled through a GUI and the user excludes tilts manually. On the other hand, if the identity of the excluded tilts is known, the user can simply create a text file with the affected indices in the pre-established location.
 +
 +
Indices are always referred to the angle ordering of <tt>nominalTiltAngles.tlt</tt>
 +
 +
==== Algorithmically excluded tilt indices ====
 +
 +
Bear in mind that further micrographs in a tilt series might be excluded during the alignment procedure, even if the user didn't mark them for forceful exclusion.  This happens when the gold bead indexing algorithm fails to recognize the identity of all the markers of a micrograph, or if the fitting error computed on the markers of a micrograph is considered too high.
 +
These indices will be stored under the file <tt>dynamicallyExcludedTiltIndices.txt</tt>
  
 
= Syntax =  
 
= Syntax =  
 +
 +
Command line acces to workflows can be used in different ways:
 +
* Creating a workflow for posterior use.
 +
* Accessing a workflow previously created
 +
* Creation and execution: all the way from tilt series file to reconstructed tomogram files.
  
 
== dtsar command ==
 
== dtsar command ==
  
 
== Examples ==
 
== Examples ==
 +
 +
=== Create a workflow ===
  
 
= Used for batching =
 
= Used for batching =

Revision as of 11:22, 11 July 2018

Article in progress. These functionalities will be released in the Dynamo 1.2 series.

Alignment and reconstruction workflows can be used with the GUI or on a totally programmatic manner. Programmatic control allows for batched reconstructions of sets of several tilt series.


Description

This section describes qualitatively the organization logic of the workflow and it elements. Actual syntax is described in the next section

The workflow folder

Workflows in Dynamo are stored typically in folders (named with a capital case extension) that contain:

  • a file that represents the workflow object itself. You kind think of it as a lightweight database that keeps track of every operation and parameter value.
  • files and folders containing intermediate results.

Alignment and reconstruction workflow folders are marked with the extension .AWF

The workflow object

The workflow object is contained in a file called object.mat inside the .AWF folder.

If you need to perform low-level operations on the object, your can bring it to memory through dread

w = dread(<my workflow folder>);

or

w = dread(<my workflow folder>/object.mat);

which will create a memory a variable w that represents the workflow object. Most users, however, do not need to operate directly on the object, and can use instead

  • dtsa for invoking a GUI that controls a workflow and allows on-screen design of steps and parameter selection.
  • dtsar (dynamo_tilt_series_alignment_run) for running a workflow, i.e. executing all or part of their steps in non-interactive mode.

Both commands are valid for creating new workflows or manipulating existing ones.

Results

By default, intermediate and final results will be stored as fixed locations inside the workflow folder. This is the recommended behaviour for starting users.

Input data

Data does not need to be stored physically in the workflow folder.

Tilt series data

The full sized tilt series can be stored somewhere else and just linked to the workflow, as mrc or st file.

Original location of the tilt series

If you lose the overview of where the tilt series in a workflow is actually located, you can use general data location system of the workflow (explained elsewhere), or just the shortcut:

file = w.io.getMatrixFile()

where w is a workflow object.

Tilt angles

By default, the nominal tilt angles as delivered by the data acquisition software will be stored in the workflow folder, as file name nominalTiltAngles.tlt which is a text file. The order of the angles must correspond to order of tilt series stack.

Manually excluded tilt indices

Some micrographs might be detected to be of low quality by simple visual inspection (because of focusing errors, big shifts, etc). The identity of such micrographs is stored in a text file called discardedTiltIndices.txt. This file is updated when the workflow is handled through a GUI and the user excludes tilts manually. On the other hand, if the identity of the excluded tilts is known, the user can simply create a text file with the affected indices in the pre-established location.

Indices are always referred to the angle ordering of nominalTiltAngles.tlt

Algorithmically excluded tilt indices

Bear in mind that further micrographs in a tilt series might be excluded during the alignment procedure, even if the user didn't mark them for forceful exclusion. This happens when the gold bead indexing algorithm fails to recognize the identity of all the markers of a micrograph, or if the fitting error computed on the markers of a micrograph is considered too high. These indices will be stored under the file dynamicallyExcludedTiltIndices.txt

Syntax

Command line acces to workflows can be used in different ways:

  • Creating a workflow for posterior use.
  • Accessing a workflow previously created
  • Creation and execution: all the way from tilt series file to reconstructed tomogram files.

dtsar command

Examples

Create a workflow

Used for batching

Recommendations

Use through the repository system