Name

sxhelixboxer.py - Overview of particle picking utility for selecting rectangular 2D projections of helices from a micrograph and extracting overlapping particles from the boxed helices

Usage

The boxing must be done in GUI mode, but extracting particles from boxed regions may be done from the GUI or from the command line.

sxhelixboxer.py encapsulates several functionalities

1. Boxing a micrograph using GUI

2. Windowing selected helices (long-boxes) from command line, one micrograph at a time:

3. Windowing overlapping segments from boxed helices from command line, one micrograph at a time:

4. Windowing overlapping segments from boxed helices from command line, multiple micrographs, multiple directories:

5. Import the CTF parameters estimated by sxcter.py using "--importctf" option.

Input

<micrograph>
micrograph filenames to process

Output

<particles>
particles, either as boxed particle images or coordinates list

Parameters

window segments from boxed filaments of multiple micrographs located in one or more directories

--window
window segments from boxed filaments (or helices in sxhelixboxer lingo)
--dirid
A string for identifying directories containing relevant micrographs. Any directory containing dirid as a contiguous string will be searched for micrographs. These micrographs are assumed to be those which were used to box the helices which are to be windowed.
--topdir
Path name of directory containing relevant micrograph directories. The program will look in topdir for directories identified by the option --dirid.
--micid
A string for identifying the name (minus extension) of relevant micrographs. --micsuffix::A string denoting micrograph type. Currently only handles suffix types, e.g. 'hdf', 'ser' etc.
--boxsize
x and y dimensions of squares to be windowed from boxed helices. Pixel size is assumed to be new_pixel_size.
--ptcl-dst

Integer. Distance in pixels between adjacent squares windowed from a single boxed helix. If ptcl_dst < 0, then the program will set it so ptcl_dst is ~ one rise in pixels: int( (dp/new_pixel_size) + 0.5). Overlap between adjacent squares windowed from the same helix is calculated as boxsize - ptcl-dst

--outstacknameall
File name plus path and type (only handles bdb and hdf right now) under which ALL windowed segments from ALL micrograph directories will be saved, e.g. 'bdb:adata' or 'adata.hdf'
--hcoords_dir
Directory containing helix box coordinates
--hcoords_suffix
String identifier which when concatenated with a micrograph name (minus extension) gives the name of the text file containing coordinates of ALL helices boxed from the micrograph. If there is no such file, helices boxed from the micrograph will not be windowed. Default is '_boxes.txt', so if mic0.hdf is a micrograph, then the text file containing coordinates of the helices boxed in it is mic0_boxes.txt. The coordinate file is assumed to be in the format used by sxhelixboxer.
--new_apix
New target pixel size to which the micrograph should be resampled. Default is -1, in which case there is no resampling.
--freq
Cut-off frequency at which to high-pass filter micrographs before windowing. Default is -1, in which case, the micrographs will be high-pass filtered with cut-off frequency 1.0/boxsize, where boxsize is the target x dimension of the segments.
--apix
pixel size in Angstroms
--dp
delta z - translation in Angstroms
--dphi
delta phi - rotation in degrees
--rmax
maximal radius for hsearch (Angstroms)
--debug
If 1, then intermediate files in output directory will not be deleted; if 0, then all output directories where intermediate files were stored will be deleted. Default is 1.
--indir
Directory containing micrographs to be processed (only for --cter option).
--nameroot
Prefix of micrographs to be processed (only for --cter option).
--importctf
Import CTF parameters estimated by sxcter.py.
--astigmatismerror
Astigmatism correction will be not performed if the astigmatism error estimated by sxcter.py is bigger than this value.

Description of typical usage

  1. Select a "typical" micrograph and activate sxhelixboxer.py in GUI mode.
  2. Box helices using GUI mode.

Author / Maintainer

sxhelixboxer originated from e2helixboxer by Steve Ludtke.

Keywords

category 1
APPLICATIONS

Files

sxhelixboxer.py

sxhelixboxer (last edited 2015-03-17 20:25:43 by penczek)