This capsule is designed to preprocess data for the AIND pipeline.
This capsule preprocessed the ephys stream with the following steps:
- Phase shift correction (see phase_shift)
- High-pass filtering
- Bad channel removal (using the method developed by IBL)
- Denoising: using one of the following methods
- Common Median Referenc (CMR)
- High-pass spatial filtering (see highpass_spatial_filter())
- (optional) Drift correction (estimation and interpolation)
The data/ folder must include the session data and at least one JSON file generated by the aind-ephys-job-dispatch capsule is required (1 is recommended).
Parameters are read from a params.json file that must be in the root folder of the capsule (next to code/, i.e. ../params.json from code/), with a logging and a preprocessing section (keys such as n_jobs (default -1), t_start, t_stop).
A full list of parameters can be found in the aind-ephys-pipeline repository, and are defined in this schema.
The output of this capsule is the following:
results/preprocessed_{recording_name}folder, containing the preprocessed data saved to binaryresults/motion_{recording_name}file, containing the motion estimation data (ifmotionisestimateorapply)results/preprocessed_{recording_name}.jsonfile, containing the JSON file to reload the processing chainresults/preprocessedviz_{recording_name}.jsonfile, all the information required to make a visualization of the preprocessing downstreamresults/data_process_preprocessing_{recording_name}.jsonfile, a JSON file containing aDataProcessobject from the aind-data-schema package.