JohnDieSchere / quickpbsa

GNU General Public License v3.0
1 stars 7 forks source link

Working with background subtracted traces #3

Closed 96ankithsharma closed 2 years ago

96ankithsharma commented 2 years ago

Hey John,

Thank you for uploading the code.

I'm trying to use it to automate step detection on my traces that are already background subtracted. I don't have pixel coordinates for my traces, and comparing it with your examplestack_difference file my data starts from the 6th column. Reading your description of the code, it seems to me that I should be able to use this code directly on background-subtracted traces. My question is what should the format of the input .csv file look like if I don't have the pixel information?

I've tried removing all columns preceding the trace info from your examplestack_difference file, tried setting all pixel info values to 1, but it's not working (get an invalid syntax error). It runs partially though as I get kvout.csv and kvout.json files.

Thanks for your help!

JohnDieSchere commented 2 years ago

Hi

Could you be more specific on what syntax error you get? And could you check what the kvout.csv file looks like, to help me understand if this part of the analysis works? In principle it sounds like the code should run with your input...

best wishes

96ankithsharma commented 2 years ago

It's an invalid syntax error (screenshot attached). Screenshot (8)

The kvout.csv file results are almost identical to what I get when I run using your original file (kv_time is slightly different but <1% difference). I've uploaded the kvout.csv and the input file (ExampleStack_difference2). ExampleStack_difference2_kvout.csv

ExampleStack_difference2.csv

Thanks!

JohnDieSchere commented 2 years ago

Hi

Have you tried running this code with my original example file? Because the syntax error is clearly not inside the package but in your code. Validating that this code runs with the provided examples would be the first step to find it I think.

96ankithsharma commented 2 years ago

Hey,

Yes, it runs with your example file... That is why I'm confused!! The only difference between the two are columns 2-6 in your example file that I set to 1 (file attached in my previous comment).

96ankithsharma commented 2 years ago

Hey Johan,

An update: When I copy your example file (which runs correctly) and paste it into another .csv file and try to run it, it's giving me the same error. So perhaps something is wrong with how it's reading the data from the input file?

96ankithsharma commented 2 years ago

Final Update: Got it to work!! I switched to working from local directory and rectified the error. Thanks for the code, Johan.

JohnDieSchere commented 2 years ago

Great! Sorry I haven't been responsive, I had a very busy week and didn't have the time to look into it properly. Good to know it works now.

96ankithsharma @.***> schrieb am Do., 20. Jan. 2022, 16:19:

Closed #3 https://github.com/JohnDieSchere/quickpbsa/issues/3.

— Reply to this email directly, view it on GitHub https://github.com/JohnDieSchere/quickpbsa/issues/3#event-5926270545, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSQBAXH5NEED5CXPQQCAFTUXAYXLANCNFSM5LXQ2TMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>