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

Issues with running GuPPy #5

Closed h1408 closed 2 years ago

h1408 commented 2 years ago

Hi! I am trying to run Guppy on some of my own data acquired from TDT. I do not have storenames of behaviors, since I handscored the time stamps of different behaviors of interest. Do I need to import this somehow into the storenames GUI? Thank you for your help!

venus-sherathiya commented 2 years ago

you can create a csv file of your handscored timestamps following the structure as shown in the file SampleData_TTL.csv. Copy created TTL csv files in the same folder where your TDT data is present and run the analysis. In this way, you will have storenames from TDT and you will also see TTL filenames as storenames in the Storenames GUI.

h1408 commented 2 years ago

Hi! I tried to do this by adding in the onset times of my handscored data using the same format as the SampleData_TTL.csv file. It has a heading in lowercase of 'timestamps' and underneath is a few rows of the timestamps. However, I notice the following error in my my terminal when I try to open the storenames GUI. I'm not sure why this is happening, since the sample csv file only has one column and my file is in the same format. I'm not even sure how I would get the sampling rate/data to fill in two other potential columns. Do you have any insight into this?

in import_np_csv raise Exception("\033[1m"+"Column names should be timestamps, data and sampling_rate (all lower-cases)"+"\033[0m") Exception: Column names should be timestamps, data and sampling_rate (all lower-cases)

I also had a couple other questions as I am trying to work through my data:

Thank you so much for your help!

venus-sherathiya commented 2 years ago

First things first, lets solve the error first can I please see the screenshot of the folder where your data is present and also the screenshot of the csv file which you are using for event TTLs ?

h1408 commented 2 years ago

Yes, attached are screenshots of both of these Screen Shot 2021-12-02 at 3 33 21 PM Screen Shot 2021-12-02 at 3 33 47 PM

venus-sherathiya commented 2 years ago

the file seems correct. can you do one thing ? please copy full column with the column name and paste it in a text editor or notepad and save that file as 'csv' make sure to delete the old file and run the analysis

h1408 commented 2 years ago

I tried doing that and it worked! Thank you! Would you have any insights on the other questions?

venus-sherathiya commented 2 years ago

I didn't get your second question. I didn't understand what you want to achieve. Can you please elaborate on it ? FYI, Window for moving average filter parameter is used to filter the raw isosbestic control and signal channel so that it eliminates the high frequency noise from the signal.

For the first question, does the time difference between onset and offset remains the same in the whole recording session ?

venus-sherathiya commented 2 years ago

done !!