SAND-Lab / MEA-NAP

MEA-NAP. A streamlined diagnostic and analytic tool for data obtained using microelectrode arrays.
GNU General Public License v3.0
12 stars 6 forks source link

Not enough nodes #53

Open adampavlinek opened 2 months ago

adampavlinek commented 2 months ago

Hi I think I'm getting this message because I only have 16 electrodes per well:

I get the following message several times for each file: Not enough nodes to calculate network metrics!

However at the end I also get an error:

Error using struct2table Input structure is a scalar, but its fields have different numbers of rows. If you intended to create a table with one row, set 'AsArray' to true.

Error in saveNetMet (line 153) allRecordingLevelDataTable = struct2table(allRecordingLevelData);

Error in MEApipeline (line 451) saveNetMet(ExpName, Params, HomeDir)

Timothysit commented 2 months ago

Hi, can you go to debug mode in saveNetMet.m line 153, and let me know what is the value of allRecordingLevelData? I suspect that because all the recordings have only 16 electrodes, it is struggling with making a table out of empty data. If you want to do some analysis on 16 electrodes, you can also adjust the minimum number of nodes required by modifying it in the GUI: you first toggle the advanced settings, then go into the advanced connectivity tab and reduce the minimum node number (set to 25 by default): image