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

Some network plots (step 4 of the pipeline) are not made #16

Closed Timothysit closed 2 years ago

Timothysit commented 2 years ago

Issue

Currently, when running step 4 - network activity of the pipeline, some plots are missing in: 4A_IndividualNetworkAnalysis/[genotype]/[culture_name]/[lag_value]/ only plots 1, 2, 8, 9 and 10 were generated, but not 3 - 7.

Proposed solution

This is likely to be caused by try/catch statements in ExtractNetMetOrganoid, which skips over these plots when an error is encountered. Please remove those and debug

Timothysit commented 2 years ago

This was caused by Params.network_plot_cmap_bounds not being accessed properly via z2name, as a temporary (hard-coded) solution I have created a correct mapping between the provided network metric colormap axis label and the cmap bound value to access, though in the future it will be better to have the user specify the key to use to access the theoretical bounds (so the user can freely change the network colormap axis label without changing the mapping object). See: 3095e1c