LernerLab / GuPPy

Guided Photometry Analysis in Python, a free and open-source FP analysis tool.
GNU General Public License v3.0
63 stars 11 forks source link

IndexError: list index out of range #48

Closed LUTaha closed 6 months ago

LUTaha commented 1 year ago

Hi,

I get this error when I try to run group analysis through guppy. Any ideas?

data_csv event_csv Launching server at http://localhost:5056 ['20230623_00602_06557_signal', '20230623_00602_06557_control', '20230623_00602_06557_timestamp'] [['20230623_00602_06557_signal' '20230623_00602_06557_control' '20230623_00602_06557_timestamp'] ['signal_06557' 'control_06557' 'Injection1']] Input Parameters File Saved. Computing PSTH, Peak and Area for each event... Average for group : True Averaging group of data... Traceback (most recent call last): File "computePsth.py", line 682, in psthForEachStorename(json.loads(sys.argv[1])) File "computePsth.py", line 636, in psthForEachStorename averageForGroup(storesListPath, storesList[1,k], inputParameters) File "computePsth.py", line 489, in averageForGroup new_path[idx].append(path[i]) IndexError: list index out of range Finding transients in z-score data and calculating frequency and amplitude.... Combining results for frequency and amplitude of transients in z-score data... Traceback (most recent call last): File "findTransientsFreqAndAmp.py", line 326, in executeFindFreqAndAmp(json.loads(sys.argv[1])) File "findTransientsFreqAndAmp.py", line 294, in executeFindFreqAndAmp averageForGroup(storesListPath, inputParameters) File "findTransientsFreqAndAmp.py", line 245, in averageForGroup new_path[idx].append(path[i]) IndexError: list index out of range

venus-sherathiya commented 1 year ago

May I please see the screenshots of all the storeslist.csv file from the output folder which you are selecting for group analysis ?

Thank you !!

LUTaha commented 1 year ago

MicrosoftTeams-image (12)

Does this help?

venus-sherathiya commented 11 months ago

I am so sorry !! I am having a hard time following the storeslist.csv file. I want to look at the storeslist.csv files which gets saved in the data folder when you run individual analysis. So, if you are selecting 4 folders for group analysis. I wanna see all 4 storeslist files which are inside those folders.

alanpkania commented 7 months ago

Hello, having very similar issue trying to average across files:

Input Parameters File Saved. Read progress bar increment values function started... Computing PSTH, Peak and Area for each event... Average for group : True Averaging group of data... Traceback (most recent call last): File "C:\Users\alank\GuPPy-main\GuPPy\computePsth.py", line 772, in raise e File "C:\Users\alank\GuPPy-main\GuPPy\computePsth.py", line 763, in inputParameters = psthForEachStorename(json.loads(sys.argv[1])) File "C:\Users\alank\GuPPy-main\GuPPy\computePsth.py", line 700, in psthForEachStorename averageForGroup(storesListPath, storesList[1,k], inputParameters) File "C:\Users\alank\GuPPy-main\GuPPy\computePsth.py", line 538, in averageForGroup new_path[idx].append(path[i]) IndexError: list index out of range

Attaching my storelist files.

storesList (2).csv storesList (3).csv storesList (4).csv storesList (5).csv storesList (6).csv storesList (7).csv storesList (8).csv storesList (9).csv storesList (10).csv storesList (11).csv storesList (12).csv storesList (13).csv storesList (14).csv storesList (15).csv storesList.csv

I did not have isosbestic control in my experiment.

Best regards, Alan

venus-sherathiya commented 7 months ago

Let me explain how group analysis works :

Let's say, you have two group : X and Y

The storeslist files for all the data corresponding to group X should have signal_X and control_X

The storeslist files for all the data corresponding to group Y should have signal_Y and control_Y

So, basically X and Y work as identifiers. When I look into your storeslist files, I could not find any common identifiers which can be used for group analysis.

I hope this helps. If not, please let me know

venus-sherathiya commented 6 months ago

Closing issue because no further questions asked !!