Pick filaments in IMOD and extract coordinates
- Open the tomogram in
3dmod. - Select mode to model.
-
Edit » Object » Type…: In the object window, set Object type to Open and close the object window.

-
Press
vto open Model window. -
In Model window, Edit » Object.
-
In the Object window, choose the desired sphere size for visualisation (e.g., 3).

- In the ZaP window:
- Go to one end of one filament
- Click mouse middle key to create a point for the new Contour
- Move along the Z with “page up&down” to the next slices
- Click mouse middle key to create the next point
- Make a few points until the other end of the filament
- Left click on an empty space to unselect the current Contour
- To the next filament and repeat…
- Press
\to open the slicer view, where you can change the tomogram rotation to better visualize your filaments in any direction.

Useful shortcuts:
- Press
nto start a new filament Shift + dto delete a filament
-
After picking, save the model as
$ROOT/warp/processing/reconstruction/$TOMONAME_filaments.mod
(on ZaP window, presss). - Add points between start-end coordinates and create a coordinate file:
(First, make sure you have sourced the parameters file):source params.sh# Move to warp reconstruction folder cd $ROOT/warp/processing/reconstruction # Add points between start-end, every 1 (binned) pixel addModPts $TOMONAME'_filaments.mod' 1 # Convert to coordinate file model2point -c $TOMONAME'_filaments_PtsAdded.mod' $TOMONAME'_filaments_PtsAdded.coords'This will create the txt file with 4 columns: [filament_ID X Y Z]. The column order needs to be changed to [X Y Z filament_ID] with this command:
awk '{print $2, $3, $4, $1}' $TOMONAME'_filaments_PtsAdded.coords' > $TOMONAME'_filaments_PtsAdded_XYZI.coords' - Export particles with cryolo:
cryolo_boxmanager_tools.py coords2star -i *_XYZI.coords -o out_warp/ --scale $RECBINNING --apix $ANGPIX --mag $MAGNIFICATION --flipratio 0.5In the output .star file, correct the name of the tomostar file:
sed -i 's/'$TOMONAME'_filaments_PtsAdded_.tomostar/'$TOMONAME'_ali.tomostar/g' out_warp/particles_warp.starFinally, add
_rlnHelicalTrackLengthAngst(a Relion parameter) to the starfile and save the result in$ROOT/warp:conda activate tomotools # Add tracklength python $REPOSITORY/add_tracklength_to_star.py \ -i $ROOT/warp/processing/reconstruction/out_warp/particles_warp.star \ -o $ROOT/warp/particles_warp.star \ -d $(echo "$ANGPIX * $RECBINNING" | bc)
End of filament picking!