nel-lab / mesmerize-core

High level pandas-based API for batch analysis of Calcium Imaging data using CaImAn
Other
60 stars 15 forks source link

cnmfe fails with keyerror: downsample_ratio #162

Closed X4ndri closed 1 year ago

X4ndri commented 1 year ago

cnmfe is failing with traceback:

'Traceback (most recent call last): File "/home/aabdalq/miniconda3/envs/caiman/lib/python3.10/site-packages/mesmerize_core/algorithms/cnmfe.py", line 72, in run_algo downsample_ratio = params["downsample_ratio"] KeyError: \'downsample_ratio\' '

cnmfe is run after motion correction was run. The input_movie_path parameter references a mcorr row in the dataframe like in the demos.

kushalkolar commented 1 year ago

A "downsample_ratio" key is required in the params dict, it determines how much the movie is downsampled for making the correlation image.

Here's an example of the param dict for cnmfe: https://github.com/nel-lab/mesmerize-core/blob/master/tests/params.py#L35

On Tue, Jan 17, 2023, 16:21 Xandri @.***> wrote:

cnmfe is failing with traceback:

'Traceback (most recent call last): File "/home/aabdalq/miniconda3/envs/caiman/lib/python3.10/site-packages/mesmerize_core/algorithms/cnmfe.py", line 72, in run_algo downsample_ratio = params["downsample_ratio"] KeyError: 'downsample_ratio' '

cnmfe is run after motion correction was run. The movie_path parameter references a mcorr row in the dataframe like in the demos.

— Reply to this email directly, view it on GitHub https://github.com/nel-lab/mesmerize-core/issues/162, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHXXRAUTMLI3DY7Y5OGY6DWS4EOHANCNFSM6AAAAAAT6KWN44 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kushalkolar commented 1 year ago

cnmfe should run properly now with v02.1, should be out on conda-forge tomorrow