Skip to content

Signal extraction and decontamination

drim2p uses FISSA (DOI) for signal extraction and decontamination. Both of those steps are done in one command.

Running the command

Like previous steps in this tutorial, extraction and decontamination only requires a single command:

drim2p extract signal .

If all goes well, you will see something along these lines:

Extracting and decontaminating signal for 'imaging_file'.
Extracting traces: 100%|██████████████████| 1/1 [00:00<00:00, 3548.48it/s]
Finished extracting raw signals from 1 ROIs across 1 trials in 1 min, 0 sec.
Separating data: 100%|██████████████████| 1/1 [00:00<00:00, 41.16it/s]
Finished separating signals from 1 ROIs across 1 trials in 1 min, 0 sec
Finished extracting signal.

Once again, no extra file should be added to the directory, instead the extracted signals will be embedded into the HDF5 file.

Note

The extracted signal arrays for each ROIs will have 5 signals. The first signal is the "true" signal after decontamination while the other four are the neuropil signals estimated by FISSA.

What's next?

The next step in the workflow is to compute ΔF/F₀ for the extracted signals.