AllenNeuralDynamics / aind-ophys-motion-correction

MIT License
1 stars 0 forks source link

Motion Correction

This capsule performs motion correction using Suite2p. The default is piece-wise rigid motion correction as in NoRMCorre.

Input

All parameters are passed to registration.py using python registration.py [parameters] All parameters are defined in main using argparse. The most important one is 'input-filename' which should point at an hdf5 file with a 'data' 3D array.

Output

The main output is the motion corrected h5 data file, defaults to [input]_registered.h5 for raw data [input].h5.

The motion transform offsets are stored as csv file (for historic LIMS reasons), defaults to [input]_motion_transform.csv.

For QC some videos and figures are created:

Interpreting the outputs: How to tell if motion correction worked well

Movie