<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://home.cryonav.org/index.php?action=history&amp;feed=atom&amp;title=CryoNAV_IMOD_Pipeline_Reference</id>
	<title>CryoNAV IMOD Pipeline Reference - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://home.cryonav.org/index.php?action=history&amp;feed=atom&amp;title=CryoNAV_IMOD_Pipeline_Reference"/>
	<link rel="alternate" type="text/html" href="https://home.cryonav.org/index.php?title=CryoNAV_IMOD_Pipeline_Reference&amp;action=history"/>
	<updated>2026-06-24T19:23:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://home.cryonav.org/index.php?title=CryoNAV_IMOD_Pipeline_Reference&amp;diff=104&amp;oldid=prev</id>
		<title>Admin: Bot edit via cryonavedit.py: add reference pages and screenshots</title>
		<link rel="alternate" type="text/html" href="https://home.cryonav.org/index.php?title=CryoNAV_IMOD_Pipeline_Reference&amp;diff=104&amp;oldid=prev"/>
		<updated>2026-05-20T20:57:36Z</updated>

		<summary type="html">&lt;p&gt;Bot edit via cryonavedit.py: add reference pages and screenshots&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page summarizes the IMOD/Etomo tomographic reconstruction pipeline as it is invoked from within CryoNAV. It covers the sequence of processing steps from raw movie frames to a trimmed 3D tomogram, with the parameters that most often need adjustment and the outputs to inspect at each stage. For background on how these steps fit into CryoNAV&amp;#039;s broader tomography workflow, see the linked pages below.&lt;br /&gt;
&lt;br /&gt;
== Motion Correction / Frame Alignment ==&lt;br /&gt;
&lt;br /&gt;
Runs &amp;#039;&amp;#039;alignframes&amp;#039;&amp;#039; (or an external tool such as MotionCor2) on the raw movie frames from a direct electron detector, producing one motion-corrected, optionally dose-weighted image per tilt. This step happens &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; the Etomo reconstruction proper.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Alignment strategy&amp;#039;&amp;#039;&amp;#039; (-pair): pairwise with 7 frames is the default for typical tilt-series SNR; use &amp;#039;&amp;#039;all pairs&amp;#039;&amp;#039; (-1) with grouping for noisy data.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Filter cutoff&amp;#039;&amp;#039;&amp;#039; (-radius2): high-frequency cutoff in cycles/pixel; default 0.06.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dose weighting&amp;#039;&amp;#039;&amp;#039; (-dtype): enables Grant &amp;amp; Grigorieff frequency-dependent attenuation; typically driven from the SerialEM .mdoc.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GPU&amp;#039;&amp;#039;&amp;#039; (-gpu) and &amp;#039;&amp;#039;&amp;#039;binning&amp;#039;&amp;#039;&amp;#039; (-binning): primary speed knobs; binning targets ~1250 px alignment images.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EER super-resolution&amp;#039;&amp;#039;&amp;#039; (-eer): 4K/8K/16K mode and Z-sum count for ThermoFisher EER frames.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; weighted residual mean (good ~ 0.05-0.3), leave-out cross-validation error, total raw-vs-smoothed shift distance, and FRC 0.5/0.25/0.125 crossings reported in alignframes.log.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
A configuration step (no image processing) where dataset name, pixel size, fiducial diameter, image rotation, tilt-angle source, voltage and Cs are declared. CryoNAV uses these to generate the .com scripts that drive every later step.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Pixel size&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;fiducial diameter&amp;#039;&amp;#039;&amp;#039; (nm): used by every downstream alignment program.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Image rotation&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;tilt-axis angle&amp;#039;&amp;#039;&amp;#039;: initial geometry seed for alignment.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Tilt-angle source&amp;#039;&amp;#039;&amp;#039;: extract from header, specify a range, or supply a .rawtlt file.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Exclude views&amp;#039;&amp;#039;&amp;#039;: comma-separated 1-based list applied throughout the pipeline; see also [[CryoNAV Tilt Image Exclusion|Tilt Image Exclusion]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; a populated .edf file and a complete set of .com scripts; verify the .rawtlt contents match the acquired tilt scheme.&lt;br /&gt;
&lt;br /&gt;
== Pre-processing ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;ccderaser&amp;#039;&amp;#039; removes X-ray hits, hot pixels and similar detector artifacts from the raw stack before alignment.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PeakCriterion&amp;#039;&amp;#039;&amp;#039;: peak strength in SDs above local mean (default 10).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DiffCriterion&amp;#039;&amp;#039;&amp;#039;: adjacent-pixel difference threshold (default 8).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;MaximumRadius&amp;#039;&amp;#039;&amp;#039;: largest artifact radius to erase (default 2.1 px).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TrialMode&amp;#039;&amp;#039;&amp;#039;: writes a detection model without erasing -- useful for tuning thresholds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; the corrected {dataset}_fixed.mrc and an eraser.log entry count consistent with expected X-ray rate; review the peak model in 3dmod if many pixels are erased.&lt;br /&gt;
&lt;br /&gt;
== Coarse Alignment ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;tiltxcorr&amp;#039;&amp;#039; cross-correlates adjacent tilts, &amp;#039;&amp;#039;xftoxg&amp;#039;&amp;#039; chains the transforms, and &amp;#039;&amp;#039;newstack&amp;#039;&amp;#039; applies them to produce a pre-aligned .preali stack.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;FilterSigma1/Sigma2&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;FilterRadius2&amp;#039;&amp;#039;&amp;#039;: bandpass that suppresses low-frequency ramp and high-frequency noise during correlation.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Cosine stretch&amp;#039;&amp;#039;&amp;#039; mode: corrects foreshortening at high tilt; &amp;#039;&amp;#039;absolute&amp;#039;&amp;#039; is recommended for steep tilts.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;AngleOffset&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;SkipViews&amp;#039;&amp;#039;&amp;#039;: compensate for known geometry errors and bad tilts.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SearchMagChanges&amp;#039;&amp;#039;&amp;#039;: enable when magnification drift between views is suspected.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; a smooth {dataset}.preali with no obvious jumps; inspect xcorr.log for per-view shifts that grow monotonically rather than randomly.&lt;br /&gt;
&lt;br /&gt;
== Fiducial Model Generation ==&lt;br /&gt;
&lt;br /&gt;
The major branch point in the pipeline. &amp;#039;&amp;#039;autofidseed&amp;#039;&amp;#039; + &amp;#039;&amp;#039;beadtrack&amp;#039;&amp;#039; is used when gold fiducials are present; otherwise patch tracking via &amp;#039;&amp;#039;tiltxcorr&amp;#039;&amp;#039; in patch mode generates a fiducial-like model.&lt;br /&gt;
&lt;br /&gt;
Key parameters (fiducial path):&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TargetNumberOfBeads&amp;#039;&amp;#039;&amp;#039; / &amp;#039;&amp;#039;&amp;#039;TargetDensityOfBeads&amp;#039;&amp;#039;&amp;#039;: controls how aggressively autofidseed seeds.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TwoSurfaces&amp;#039;&amp;#039;&amp;#039;: set when beads lie on both surfaces of the section.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;BeadDiameter&amp;#039;&amp;#039;&amp;#039; (pixels) and &amp;#039;&amp;#039;&amp;#039;BoxSizeXandY&amp;#039;&amp;#039;&amp;#039;: beadtrack search geometry.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LocalAreaTracking&amp;#039;&amp;#039;&amp;#039; with &amp;#039;&amp;#039;&amp;#039;LocalAreaTargetSize&amp;#039;&amp;#039;&amp;#039;: improves tracking on large fields.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RoundsOfTracking&amp;#039;&amp;#039;&amp;#039;: two rounds is standard.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; bead count and mean residual in track.log; trajectories with large gaps or residuals &amp;gt;&amp;gt; 1 px in 3dmod indicate the seed model or bead diameter is off.&lt;br /&gt;
&lt;br /&gt;
== Fine Alignment ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;tiltalign&amp;#039;&amp;#039; solves the projection geometry -- rotations, tilt angles, magnifications, distortions -- from the fiducial model.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SurfacesToAnalyze&amp;#039;&amp;#039;&amp;#039; (1 or 2): must match the actual specimen geometry.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RotOption / TiltOption / MagOption&amp;#039;&amp;#039;&amp;#039;: set which variables are solved and how they are grouped; over-fitting is the main risk.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LocalAlignments&amp;#039;&amp;#039;&amp;#039; with &amp;#039;&amp;#039;&amp;#039;NumberOfLocalPatchesXandY&amp;#039;&amp;#039;&amp;#039;: corrects beam-induced local distortions when enough fiducials exist.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RobustFitting&amp;#039;&amp;#039;&amp;#039;: down-weights outliers; recommended for noisy data.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;BeamTiltOption&amp;#039;&amp;#039;&amp;#039;: set to 2 to search for beam tilt when residuals show systematic curvature.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; weighted mean residual in align.log (target &amp;lt;1 px, ideally &amp;lt;0.5 px at the working binning); inspect ta{dataset}.log for per-bead outliers.&lt;br /&gt;
&lt;br /&gt;
== Tomogram Positioning ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;tilt&amp;#039;&amp;#039; generates a thin sample reconstruction and &amp;#039;&amp;#039;tomopitch&amp;#039;&amp;#039; fits a plane through it to determine final thickness, Z-shift, and X-axis tilt.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Thickness&amp;#039;&amp;#039;&amp;#039; (pixels): generous enough to enclose the specimen plus margin.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TiltAngleOffset&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;TiltAxisOffset&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ZShift&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;XAxisTilt&amp;#039;&amp;#039;&amp;#039;: normally taken directly from tomopitch.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; the model file should bracket the specimen tightly in the {dataset}_samp.rec sample volume; tomopitch.log angles should be small (degrees) -- large values suggest fine alignment problems.&lt;br /&gt;
&lt;br /&gt;
== Final Aligned Stack ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;newstack&amp;#039;&amp;#039; (newst) builds the {dataset}.ali stack used for back-projection. Optional CTF estimation with &amp;#039;&amp;#039;ctfplotter&amp;#039;&amp;#039; and 2D phase-flip correction with &amp;#039;&amp;#039;ctfphaseflip&amp;#039;&amp;#039; are applied here. Dose weighting and 2D filtering can also be turned on at this stage.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;BinByFactor&amp;#039;&amp;#039;&amp;#039;: output binning of the aligned stack.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SizeToOutputInXandY&amp;#039;&amp;#039;&amp;#039;: output X/Y from positioning.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ExpectedDefocus&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;AutoFitRangeAndStep&amp;#039;&amp;#039;&amp;#039; (ctfplotter): drive defocus search.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DefocusTol&amp;#039;&amp;#039;&amp;#039; (ctfphaseflip): strip width control for tiled phase flipping (default 200 nm).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;InvertTiltAngles&amp;#039;&amp;#039;&amp;#039;: set if tilt-axis convention differs from CTF estimation expectation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; the {dataset}.defocus file should have smoothly varying values across views; ctfplotter.log should show clear Thon-ring fits, and the CTF-corrected stack should not show ringing artifacts.&lt;br /&gt;
&lt;br /&gt;
== Tomogram Generation ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;tilt&amp;#039;&amp;#039; back-projects the aligned stack into the 3D volume; &amp;#039;&amp;#039;sirtsetup&amp;#039;&amp;#039; + &amp;#039;&amp;#039;tilt&amp;#039;&amp;#039; is used for SIRT reconstructions.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;THICKNESS&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;SHIFT&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;XAXISTILT&amp;#039;&amp;#039;&amp;#039;: inherited from positioning and fine alignment.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RADIAL&amp;#039;&amp;#039;&amp;#039;: bandwidth and falloff of the R-weighting filter (default 0.35, 0.035).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Reconstruction method&amp;#039;&amp;#039;&amp;#039;: WBP is standard; SIRT (or &amp;#039;&amp;#039;&amp;#039;FakeSIRTiterations&amp;#039;&amp;#039;&amp;#039; on WBP) increases contrast for visualization.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SuperSampleFactor&amp;#039;&amp;#039;&amp;#039;: higher values reduce back-projection artifacts at cost of runtime.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;UseGPU&amp;#039;&amp;#039;&amp;#039;: major speedup for large volumes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; tilt.log for any warnings about clipped slices or GPU fallbacks; inspect a central slice for ray artifacts (under-sampling) or fogging (residual mis-alignment).&lt;br /&gt;
&lt;br /&gt;
== Post-Processing ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;trimvol&amp;#039;&amp;#039; crops, reorients (typically &amp;#039;&amp;#039;&amp;#039;RotateX&amp;#039;&amp;#039;&amp;#039; so Z is up) and optionally byte-scales the reconstruction; &amp;#039;&amp;#039;squeezevol&amp;#039;&amp;#039; produces a downsampled copy for fast browsing.&lt;br /&gt;
&lt;br /&gt;
Key parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;XMin/XMax&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;YMin/YMax&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ZMin/ZMax&amp;#039;&amp;#039;&amp;#039;: crop ranges in IMOD coordinates.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RotateX&amp;#039;&amp;#039;&amp;#039; / &amp;#039;&amp;#039;&amp;#039;SwapYZ&amp;#039;&amp;#039;&amp;#039;: standard output is RotateX with Z up.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ConvertToBytes&amp;#039;&amp;#039;&amp;#039; with &amp;#039;&amp;#039;&amp;#039;FixedScaling&amp;#039;&amp;#039;&amp;#039;: smaller files at the cost of dynamic range; section-based scaling is more robust to variable contrast.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ReductionFactorX/Y/Z&amp;#039;&amp;#039;&amp;#039; (squeezevol): typically 1.25 for a lightweight preview.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;What to look for:&amp;#039;&amp;#039; verify final volume orientation in 3dmod, confirm the cropped Z range contains only the specimen, and check that byte scaling has not clipped features of interest.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[CryoNAV Overview Tomogram Processing|Tomogram Processing Overview]]&lt;br /&gt;
* [[CryoNAV Integration CryoEM Tools|Integration with Cryo-EM Tools]]&lt;br /&gt;
* [[CryoNAV Tilt Image Exclusion|Tilt Image Exclusion]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Reference]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>