suite2p icon indicating copy to clipboard operation
suite2p copied to clipboard

getting cell ordering from rastermap in visualization window/rastermap error

Open jyang-2 opened this issue 3 years ago • 2 comments

Hi, thanks very much for this tool!

I was wondering what the easiest way is to get the cell ordering for the rastermap in the visualization window of the gui. When I try to export as a csv/h5, it seems to create an empty file, and I get the following message in the anaconda prompt window:

Traceback (most recent call last):
  File "c:\users\remy\anaconda3\envs\suite2p\lib\site-packages\pyqtgraph\exporters\Exporter.py", line 77, in fileSaveFinished
    self.export(fileName=fileName, **self.fileDialog.opts)
  File "c:\users\remy\anaconda3\envs\suite2p\lib\site-packages\pyqtgraph\exporters\CSVExporter.py", line 64, in export
    numRows = max([len(d[0]) for d in data])
ValueError: max() arg is an empty sequence

I've also tried running rastermap on it's own, after installing following directions on the rastermap/tutorial/ page, and I get the following error when I run the embedding algorithm:

ERROR<<< usage: main.py [-h] [--S S] [--ops OPS] [--iscell ISCELL] main.py: error: unrecognized arguments: @ Caltech Dropbox/Remy/mb_odor_rearing/processed_data/2021-03-24/1/movie_001/suite2p/plane0/spks.npy @ Caltech Dropbox/Remy/mb_odor_rearing/processed_data/2021-03-24/1/movie_001/suite2p/plane0/iscell.npy Interrupted by error (not finished)

Thanks again in advance!

jyang-2 avatar Apr 20 '21 19:04 jyang-2

you currently cannot export the ordering from the suite2p gui, I will add the enhancement tag

I think the problem you're running into with rastermap on the command line is that there are spaces in your file names, I think if you put them in " " quotes it will work

carsen-stringer avatar May 01 '21 12:05 carsen-stringer

good to know, thanks very much!

jyang-2 avatar May 11 '21 19:05 jyang-2