User Tools

Site Tools


pipeline:utilities:sxpipe_resample_micrographs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
pipeline:utilities:sxpipe_resample_micrographs [2018/08/22 11:35]
fmerino
pipeline:utilities:sxpipe_resample_micrographs [2019/04/02 10:29]
lusnig [See also]
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
  
-===== sxpipe resample_micrographs =====+===== sp_pipe resample_micrographs =====
 Resample Micrographs: Resample micrographs in input directory specified by input micrograph pattern with user-specified ratio. This operation changes the image dimensitions and the pixel size. Mainly, it is designed to reduce the demensions and pixel size of micrographs taken with the super resolution mode of the K2 direct electron detector. Resample Micrographs: Resample micrographs in input directory specified by input micrograph pattern with user-specified ratio. This operation changes the image dimensitions and the pixel size. Mainly, it is designed to reduce the demensions and pixel size of micrographs taken with the super resolution mode of the K2 direct electron detector.
  
Line 9: Line 9:
 Usage in command line Usage in command line
  
-  sxpipe.py  resample_micrographs  input_micrograph_pattern  output_directory  --resample_ratio=RATIO  --selection_list=FILE_PATH  --check_consistency+  sp_pipe.py  resample_micrographs  input_micrograph_pattern  output_directory  --resample_ratio=RATIO  --selection_list=FILE_PATH  --check_consistency
  
 \\ \\
 ===== Typical usage ===== ===== Typical usage =====
  
-sxpipe resample_micrographs exists in both MPI and non-MPI versions. +sp_pipe resample_micrographs exists in both MPI and non-MPI versions. 
  
 There are several modes to run the program: There are several modes to run the program:
  
 \\ __1. All Micrographs Mode - Process all micrographs in a directory:__ \\ __1. All Micrographs Mode - Process all micrographs in a directory:__
-\\ Specify path pattern of input micrographs with a wild card (*).. The path pattern must be enclosed by single quotes (') or double quotes ("). (Note: sxgui.py automatically adds single quotes (')). bdb files cannot be selected as input micrographs. Next, set %%--%%resample_ratio to the desired resampling ratio.  Then, specify output directory where all outputs should be saved. In this mode, all micrographs matching the path pattern will be processed. +\\ Specify path pattern of input micrographs with a wild card (*).. The path pattern must be enclosed by single quotes (') or double quotes ("). (Note: sp_gui.py automatically adds single quotes (')). bdb files cannot be selected as input micrographs. Next, set %%--%%resample_ratio to the desired resampling ratio.  Then, specify output directory where all outputs should be saved. In this mode, all micrographs matching the path pattern will be processed. 
-  mpirun  -np  48  sxpipe.py  resample_micrographs  './mic*.hdf'  outdir_pipe_resample_micrographs  --resample_ratio=0.5+  mpirun  -np  48  sp_pipe.py  resample_micrographs  './mic*.hdf'  outdir_pipe_resample_micrographs  --resample_ratio=0.5
  
 \\ __2. Selected Micrographs Mode - Process all micrographs in a selection list file:__ \\ __2. Selected Micrographs Mode - Process all micrographs in a selection list file:__
 \\ In addition input micrographs path pattern, resampling ratio, and output directry, specify a name of micrograph selection list text file using --selection_list option. In this mode, only micrographs in the selection list which matches the file name part of the pattern (ignoring the directory paths) will be processed. If a micrograph name in the selection list does not exists in the directory specified by the micrograph path pattern, processing of the micrograph will be skipped. \\ In addition input micrographs path pattern, resampling ratio, and output directry, specify a name of micrograph selection list text file using --selection_list option. In this mode, only micrographs in the selection list which matches the file name part of the pattern (ignoring the directory paths) will be processed. If a micrograph name in the selection list does not exists in the directory specified by the micrograph path pattern, processing of the micrograph will be skipped.
-  mpirun  -np  48  sxpipe.py  resample_micrographs  './mic*.hdf'  outdir_pipe_resample_micrographs  --resample_ratio=0.5  --selection_list=mic_list.txt  --check_consistency+  mpirun  -np  48  sp_pipe.py  resample_micrographs  './mic*.hdf'  outdir_pipe_resample_micrographs  --resample_ratio=0.5  --selection_list=mic_list.txt  --check_consistency
  
 \\ __3. Single Micrograph Mode - Process a single micrograph:__ \\ __3. Single Micrograph Mode - Process a single micrograph:__
 \\ In addition input micrographs path pattern, resampling ratio, and output directry, specify a single micrograph name using %%--%%selection_list option. In this mode, only the specified single micrograph will be processed. If this micrograph name does not matches the file name part of the pattern (ignoring the directory paths), the process will exit without processing it. If this micrograph name matches the file name part of the pattern but does not exists in the directory which specified by the micrograph path pattern, again the process will exit without processing it. \\ In addition input micrographs path pattern, resampling ratio, and output directry, specify a single micrograph name using %%--%%selection_list option. In this mode, only the specified single micrograph will be processed. If this micrograph name does not matches the file name part of the pattern (ignoring the directory paths), the process will exit without processing it. If this micrograph name matches the file name part of the pattern but does not exists in the directory which specified by the micrograph path pattern, again the process will exit without processing it.
-  sxpipe.py  resample_micrographs  './mic*.hdf'  outdir_pipe_resample_micrographs  --resample_ratio=0.5  --selection_list=mic0.hdf  --check_consistency+  sp_pipe.py  resample_micrographs  './mic*.hdf'  outdir_pipe_resample_micrographs  --resample_ratio=0.5  --selection_list=mic0.hdf  --check_consistency
  
 \\ \\
 ===== Input ===== ===== Input =====
 === Main Parameters === === Main Parameters ===
-  ; input_micrograph_pattern : Input micrograph path pattern: Specify path pattern of input micrographs with a wild card (*).. The path pattern must be enclosed by single quotes (\') or double quotes (\"). (Note: sxgui.py automatically adds single quotes (\')). The substring at the variable part must be same between the associated pair of input micrograph and coordinates file. bdb files cannot be selected as input micrographs. (default required string)+  ; input_micrograph_pattern : Input micrograph path pattern: Specify path pattern of input micrographs with a wild card (*).. The path pattern must be enclosed by single quotes (\') or double quotes (\"). (Note: sp_gui.py automatically adds single quotes (\')). The substring at the variable part must be same between the associated pair of input micrograph and coordinates file. bdb files cannot be selected as input micrographs. (default required string)
   ; output_directory : Output directory: The results will be written here. It cannot be an existing one. (default required string)   ; output_directory : Output directory: The results will be written here. It cannot be an existing one. (default required string)
  
Line 68: Line 68:
 \\ \\
 ==== Files ==== ==== Files ====
-sparx/bin/sxpipe.py+sparx/bin/sp_pipe.py
  
 \\ \\
 ==== See also ==== ==== See also ====
-[[pipeline:cter:sxcter|sxcter]].+[[pipeline:cter:sx_cter|sp_cter]].
  
 \\ \\
Line 83: Line 83:
  
 \\ \\
 +
pipeline/utilities/sxpipe_resample_micrographs.txt · Last modified: 2019/04/02 10:29 by lusnig