Skip to the content.

Pick filaments in IMOD and extract coordinates

  1. Open the tomogram in 3dmod.
  2. Select mode to model.
  3. Edit » Object » Type…: In the object window, set Object type to Open and close the object window.

    Imod change object

  4. Press v to open Model window.

  5. In Model window, Edit » Object.

  6. In the Object window, choose the desired sphere size for visualisation (e.g., 3).

    Imod change sphere size

  7. 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.

    Imod picking

    Useful shortcuts:

    • Press n to start a new filament
    • Shift + d to delete a filament
  8. After picking, save the model as
    $ROOT/warp/processing/reconstruction/$TOMONAME_filaments.mod
    (on ZaP window, press s).

  9. 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'
    
  10. Export particles with cryolo:
    cryolo_boxmanager_tools.py coords2star -i *_XYZI.coords -o out_warp/ --scale $RECBINNING --apix $ANGPIX --mag $MAGNIFICATION --flipratio 0.5
    

    In 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.star
    

    Finally, 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!


← Back | Next →

Home