-
Notifications
You must be signed in to change notification settings - Fork 6
Import Marker coordinates from IMOD
.fid
file and the pre-transformation in a
.prexg
file. Moreover, the marker coordinates are stored in a coordinate system that is pre-shifted compared to the original files. The pre-shift binning value is somewhat hidden in the advanced options of the preprocessing tab in IMOD.
If you transform the marker coordinates in PyTom everything is straightforward. You obtain the WIMP files using 3dmod
:
- Start 3dmod by typing
3dmod
in the command line. - Select the model file (
myTiltSeries.fid
), which is generated by theetomo
workflow. - Press 'OK'.
- A viewer for the tilt series and the small 3dmod window opens.
- Save WIMP file in the 3dmod window using menu: File -> Write Model As -> Wimp.
Alternatively you can convert the coordinates using imod tools, which is mentioned for the sake of completeness here: To convert the pre-transformed marker coordinates back to their original values the following IMOD programs can be used from the command line (see also: xfmodel):
xfmodel -back -prealign myTiltSeries.prexg -input myTiltSeries.fid -o myTiltSeries_raw.fid
For tiltseries myTiltSeries
, this command will generate a .fid
file with back-transformed marker coordinates (=myTiltSeries_raw.fid
). In case you worked with binned
images in the IMOD alignment you will also need to revert the binning. For example, the command would be the following for selection scale=1/8 (1/binimod):
xfmodel -back -scale 0.1250 -prealign myTiltSeries.prexg -input myTiltSeries.fid -o myTiltSeries_raw.fid
The _raw.fid
file can now be converted into an WIMP file in 3dmod
from the IMOD package:
- Start 3dmod by typing
3dmod
in the command line. - Select the raw model file (the
myTiltSeries_raw.fid
, which was just generated). If you need to revert binning make sure you select model and also tilt series- otherwise the magnification is somehow not taken into account - weird ... - Press 'OK'.
- A viewer for the tilt series and the small 3dmod window opens.
- Save WIMP file in the 3dmod window using menu: File -> Write Model As -> Wimp.