
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 3 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 3 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, xy translation and rotation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
xfalign -initial rawstack.xf -warp 2048,512 -boundary rawstack_bound.mod rawstack.mrc rawstack_man.xf
Dewarping a stack
xfalign -bi -red 1 -prexcorr -params -1 -warp 512,512 alstack_ali.mrc alstack_ali.xf xftoxg -n 0 alstack_ali.xf alstack_ali.xg
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
| ||||||||
| Added: | ||||||||
| > > | New 2016: skew.pl
| |||||||
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
Curtain Removal
To remove using ImageJ?:
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 3 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 3 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, xy translation and rotation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
xfalign -initial rawstack.xf -warp 2048,512 -boundary rawstack_bound.mod rawstack.mrc rawstack_man.xf
Dewarping a stack
xfalign -bi -red 1 -prexcorr -params -1 -warp 512,512 alstack_ali.mrc alstack_ali.xf xftoxg -n 0 alstack_ali.xf alstack_ali.xg | ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < | d252 3 | |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > |
| |||||||
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
Curtain Removal
To remove using ImageJ?:
| ||||||||
| Changed: | ||||||||
| < < | * dewarping with -initial: | |||||||
| > > | ||||||||
| Deleted: | ||||||||
| < < | ![]() | |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > |
| |||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 3 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 3 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, xy translation and rotation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
xfalign -initial rawstack.xf -warp 2048,512 -boundary rawstack_bound.mod rawstack.mrc rawstack_man.xf | ||||||||
| Added: | ||||||||
| > > |
Dewarping a stack
xfalign -bi -red 1 -prexcorr -params -1 -warp 512,512 alstack_ali.mrc alstack_ali.xf xftoxg -n 0 alstack_ali.xf alstack_ali.xg | |||||||
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
Curtain Removal
To remove using ImageJ?:
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < | >xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf | |||||||
| > > | >xfalign -params 3 -reduce 1 rawstack.mrc rawstack.xf | |||||||
| ||||||||
| Changed: | ||||||||
| < < | > xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf [eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment] | |||||||
| > > | > xfalign -matt 0.25 -reduce 1 -bilinear -params 3 -sobel stack1_sm.mrc stack1_sm.xf [eliminate outer 25%, no binning, bilinear interp, xy translation and rotation, apply sobel (edge detecting) filter before alignment] | |||||||
clip median -2d stack1.mrc stack1_m.mrc | ||||||||
| Added: | ||||||||
| > > |
xfalign -initial rawstack.xf -warp 2048,512 -boundary rawstack_bound.mod rawstack.mrc rawstack_man.xf | |||||||
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
Curtain Removal
To remove using ImageJ?:
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc | ||||||||
| Added: | ||||||||
| > > | ||||||||
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
Curtain Removal
To remove using ImageJ?:
| ||||||||
| Added: | ||||||||
| > > | * sample decurtaining filter:![]() | |||||||
| ||||||||
| Deleted: | ||||||||
| < < | * sample decurtaining filter:![]() | |||||||
| Deleted: | ||||||||
| < < | * sample decurtaining filter:![]() | |||||||
* dewarping with -initial:
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc
clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc
---+ Handedness
* In the above scheme, the first image is the "top" of the physical sample, but it is located at the bottom of the stack
* MRC convention: the first Z slice in a stack is the bottom slice
* Therefore the stacks must be swapped in one dimension to preserve correct chirality
* following will reverse the Z-order of stacks:
<verbatim>
clip flipz stack_al.mrc stack_al_flipped.mrc
</verbatim>
* This can also be done in Amira by using the cropping tool
| ||||||||
| Added: | ||||||||
| > > | Curtain Removal
To remove using ImageJ?:
| |||||||
| ||||||||
| Added: | ||||||||
| > > | * sample decurtaining filter:
* sample decurtaining filter:
* dewarping with -initial:![]() | |||||||
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc
clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc
---+ Handedness
* In the above scheme, the first image is the "top" of the physical sample, but it is located at the bottom of the stack
* MRC convention: the first Z slice in a stack is the bottom slice
* Therefore the stacks must be swapped in one dimension to preserve correct chirality
* following will reverse the Z-order of stacks:
<verbatim>
clip flipz stack_al.mrc stack_al_flipped.mrc
</verbatim>
* This can also be done in Amira by using the cropping tool
* Set ALLOWTOPICVIEW =
-- Main.BillRice - 20 Nov 2012
|*META FILEATTACHMENT*|attachment="sample_filter.png" attr="" comment="sample decurtaining filter" date="1407178774" name="sample_filter.png" path="sample_filter.png" size="3186" stream="sample_filter.png" user="Main.BillRice" version="1"|
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
| ||||||||
| Added: | ||||||||
| > > | Manual alignment using MIDAS
> midas rawstack.mrc rawstack.xf
> xftoxg -n 0 rawstack.xfm rawstack.xgm
| |||||||
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc
clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc
---+ Handedness
* In the above scheme, the first image is the "top" of the physical sample, but it is located at the bottom of the stack
* MRC convention: the first Z slice in a stack is the bottom slice
* Therefore the stacks must be swapped in one dimension to preserve correct chirality
* following will reverse the Z-order of stacks:
<verbatim>
clip flipz stack_al.mrc stack_al_flipped.mrc
</verbatim>
* This can also be done in Amira by using the cropping tool
* Set ALLOWTOPICVIEW =
-- Main.BillRice - 20 Nov 2012
|*META FILEATTACHMENT*|attachment="sample_filter.png" attr="" comment="sample decurtaining filter" date="1407178774" name="sample_filter.png" path="sample_filter.png" size="3186" stream="sample_filter.png" user="Main.BillRice" version="1"|
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
| ||||||||
| Added: | ||||||||
| > > | Remove a slice from a stack
> newstack -secs 0-1198,1200-1282 rawstack.mrc rawstack-1.mrc
| |||||||
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Vertical Montaging
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc
clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc
---+ Handedness
* In the above scheme, the first image is the "top" of the physical sample, but it is located at the bottom of the stack
* MRC convention: the first Z slice in a stack is the bottom slice
* Therefore the stacks must be swapped in one dimension to preserve correct chirality
* following will reverse the Z-order of stacks:
<verbatim>
clip flipz stack_al.mrc stack_al_flipped.mrc
</verbatim>
* This can also be done in Amira by using the cropping tool
* Set ALLOWTOPICVIEW =
-- Main.BillRice - 20 Nov 2012
|*META FILEATTACHMENT*|attachment="sample_filter.png" attr="" comment="sample decurtaining filter" date="1407178774" name="sample_filter.png" path="sample_filter.png" size="3186" stream="sample_filter.png" user="Main.BillRice" version="1"|
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
clip median -2d stack1.mrc stack1_m.mrc
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
| ||||||||
| Changed: | ||||||||
| < < | d176 1 | |||||||
| > > | Vertical Montaging | |||||||
| Added: | ||||||||
| > > |
step 1: get a rough alignment
newstack -secs 0-11 top.mrc top12.mrc newstack -secs 0-11 bottom.mrc bottom12.mrc /cryoem/script/interleave.pl top11.mrc bottom11.mrc il11.mrc
midas il11.mrc il11.xf
/cryoem/script/make_init_xf.pl---+++ step 2: get a full alignment
/cryoem/script/interleave.pl top.mrc bottom.mrc il_full.mrc
xfalign -initial initial.xf -bpair -params 2 -bilinear il_full.mrc il_full.xf
newstack -secs 0-23 -xform il_full.xf il_full.mrc il_full_ali.mrc midas il_full_ali.mrc Step 3: magnification correction
newstack -xform il_full.xf il_full.mrc il_full_ali.mrc clip resize -x N,N -y N,N full_ali.mrc full_overlap.mrc | |||||||
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
| ||||||||
| Added: | ||||||||
| > > |
clip median -2d stack1.mrc stack1_m.mrc
| |||||||
d252 3
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
midas s3.mrc s3.xf
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > | midas s3.mrc s3.xf
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
d176 1
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift
> xftoxg -n 0 rawstack.xf rawstack.xg
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc
Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc | ||||||||
| Added: | ||||||||
| > > | Crop volume
> clip resize -oy 660 -cy 330 40_cell1_sm.mrc 40_cell1_sm_clipped.mrc | |||||||
Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
| ||||||||
| Deleted: | ||||||||
| < < | ||||||||
-- BillRice - 20 Nov 2012
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > |
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
For data collected at a non-orthogonal viewing angle (e.g. 38 degrees), use -n 0 option to eliminate sample drift | |||||||
> xftoxg -n 0 rawstack.xf rawstack.xg
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > |
| |||||||
| Deleted: | ||||||||
| < < | >newstack -xform rawstack.xg rawstack.mrc alstack.mrc
| |||||||
| >newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Added: | ||||||||
| > > | Squeeze Volume
> squeezevol -e 1 -x 1 -y 0.788 -z 1 stack1m_al.mrc stack1_alsq.mrc
Shrink Volume
> newstack -shrink 2 stack1_alsq.mrc stack1_alsqsh.mrc | |||||||
Montaging
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
| ||||||||
| Added: | ||||||||
| > > |
> xftoxg -n 0 rawstack.xf rawstack.xg
| |||||||
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
| ||||||||
| Added: | ||||||||
| > > |
>newstack -size 4096,4336 -xform rawstack.xg rawstack.mrc alstack.mrc | |||||||
Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc
| ||||||||
| Added: | ||||||||
| > > | ||||||||
-- BillRice - 20 Nov 2012
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
| ||||||||
| Added: | ||||||||
| > > | d176 1
Handedness
clip flipz stack_al.mrc stack_al_flipped.mrc | |||||||
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| d252 3 | ||||||||
| Deleted: | ||||||||
| < < | d62 21 | |||||||
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
> xfalign -matt 0.25 -reduce 1 -bilinear -params 2 -sobel stack1_sm.mrc stack1_sm.xf
[eliminate outer 25%, no binning, bilinear interp, only xy translation, apply sobel (edge detecting) filter before alignment]
| |||||||
| d252 3 | ||||||||
| Added: | ||||||||
| > > | d62 21 | |||||||
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
Montaging
| ||||||||
| Deleted: | ||||||||
| < < | ||||||||
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
| ||||||||
Slice and View Images
Processing of images using IMOD
Stacking of tiffs
> tif2mrc Image*.tif rawstack.mrc
Alignment of stack
>xfalign -params 2 -reduce 1 rawstack.mrc rawstack.xf
Apply Alignments
> xftoxg rawstack.xf rawstack.xg
>newstack -xform rawstack.xg rawstack.mrc alstack.mrc
Montaging
newstack -size 600,1768 -offset -800,0 stack1malsh0.mrc s1.mrc newstack -size 600,1768 -offset 800,0 stack2malsh0.mrc s2.mrc
xfalign -reduce 1 -params 2 -bilinear -bpair s3.mrc s3.xf
|