Describe the issue:
Hello!
First of all, thanks for creating a great tool! I have been using suite2p to analyse my 1P data. I use cellpose to find cells and then I manually add any cells that cellpose missed. I then wanted to look at the neuropil masks for all my ROIs but all the manually added ROIs are 'nan' while the cell pose ROIs have the mask coordinates. This seems strange as I can see neuropil fluorescence traces for all ROIs. Have I done something wrong or is this a bug?
Many thanks in advance for your help!
Amy
Reproduce the code example:
#this is the code I use to visualise the neuropil masks in jupyter lab. It works fine with ROIs that #were generated using the suite2p gui/cell pose ROI detection but I get an error when I try to run data #that was generated with manual ROIs, which is due to the nan values.
neumask = np.zeros((ops['Ly'], ops['Lx']))
for c in range(len(iscell)):
if iscell[c,0] == 0:
continue
neuy, neux = np.unravel_index(stats[c]['neuropil_mask'], (ops['Ly'], ops['Lx']))
neumask[neuy, neux] = 1
neumask[stats[c]['ypix'],stats[c]['xpix']] = 2
plt.imshow(neumask)
sns.despine(left=True, bottom=True)
Error message:
No response
Version information:
suite2p v0.14.4
Context for the issue:
No response
Describe the issue:
Hello!
First of all, thanks for creating a great tool! I have been using suite2p to analyse my 1P data. I use cellpose to find cells and then I manually add any cells that cellpose missed. I then wanted to look at the neuropil masks for all my ROIs but all the manually added ROIs are 'nan' while the cell pose ROIs have the mask coordinates. This seems strange as I can see neuropil fluorescence traces for all ROIs. Have I done something wrong or is this a bug?
Many thanks in advance for your help!
Amy
Reproduce the code example:
Error message:
No response
Version information:
suite2p v0.14.4
Context for the issue:
No response