MotionCor2 is a multi-GPU accelerated program which corrects anisotropic image motion at the single pixel level. Iterative, patch-based motion detection is combined with spatial and temporal constraints and dose weighting. MotionCor2 works on a wide range of data sets, including those very close to focus or with very short integration times, obviating the need for particle polishing. The application significantly improves Thon ring quality and 3D reconstruction resolution.
References:
- Zheng SQ, Palovcak E, Armache JP, Verba KA, Cheng Y, Agard DA. MotionCor2: anisotropic correction of beam-induced motion for improved cryo-electron microscopy. Nat Methods. 2017 Apr;14(4):331-332.
- MotionCor2 Main Site
- MotionCor2 User Manual (version 1.1.0)
- MotionCor2 User Manual (version 1.3.0)
- MotionCor2 User Manual (version 1.5.0)
- Type MotionCor2 --help
- Module Name: MotionCor2 (see the modules page for more information)
- Singlethreaded, GPU-accelerated
- Environment variables set
- MOTIONCOR2_HOME
- RELION_MOTIONCORR_EXECUTABLE
- RELION_MOTIONCOR2_EXECUTABLE
- Example files in /fdb/app_testdata/cryoEM
Allocate an interactive session and run the program. Sample session:
[user@biowulf]$ sinteractive --constraint= salloc.exe: Pending job allocation 46116226 salloc.exe: job 46116226 queued and waiting for resources salloc.exe: job 46116226 has been allocated resources salloc.exe: Granted job allocation 46116226 salloc.exe: Waiting for resource configuration salloc.exe: Nodes cn3144 are ready for job [user@cn3144 ~]$ module load MotionCor2 [user@cn3144 ~]$ MotionCor2 -InMrc mymovie.mrcs -OutMrc mymicrograph.mrc -LogFile output.log -Bft 150 -PixSize 3.49 -OutStack 1 -Patch 1 1 -Trunc 1 -Gpu 0 [user@cn3144 ~]$ exit salloc.exe: Relinquishing job allocation 46116226 [user@biowulf ~]$
Create a batch input file (e.g. MotionCor2.sh). For example:
#!/bin/bash module load MotionCor2 MotionCor2 -InMrc /path/to/raw/data/12345.mrcs -OutMrc Micrographs/12345.mrc -LogFile output.log -Bft 150 -PixSize 3.49 -OutStack 1 -Patch 1 1 -Trunc 1 -Gpu 0
Submit this job using the Slurm sbatch command.
sbatch [--cpus-per-task=#] [--mem=#] --partition=gpu --gres=gpu:p100:1 MotionCor2.sh
Create a swarmfile (e.g. MotionCor2.swarm). For example:
MotionCor2 -InMrc /path/to/raw/data/0001.mrcs -OutMrc Micrographs/0001.mrc -LogFile output.log -Bft 150 -PixSize 3.49 -OutStack 1 -Patch 1 1 -Trunc 1 -Gpu 0 MotionCor2 -InMrc /path/to/raw/data/0002.mrcs -OutMrc Micrographs/0002.mrc -LogFile output.log -Bft 150 -PixSize 3.49 -OutStack 1 -Patch 1 1 -Trunc 1 -Gpu 0 MotionCor2 -InMrc /path/to/raw/data/0003.mrcs -OutMrc Micrographs/0003.mrc -LogFile output.log -Bft 150 -PixSize 3.49 -OutStack 1 -Patch 1 1 -Trunc 1 -Gpu 0 MotionCor2 -InMrc /path/to/raw/data/0004.mrcs -OutMrc Micrographs/0004.mrc -LogFile output.log -Bft 150 -PixSize 3.49 -OutStack 1 -Patch 1 1 -Trunc 1 -Gpu 0
Submit this job using the swarm command.
swarm -f MotionCor2.swarm [-g #] [-t #] --partition=gpu --gres=gpu:p100:1 --module MotionCor2where
-g # | Number of Gigabytes of memory required for each process (1 line in the swarm command file) |
-t # | Number of threads/CPUs required for each process (1 line in the swarm command file). |
--module MotionCor2 | Loads the MotionCor2 module for each subjob in the swarm |