Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding for calcium imaging #285

Open
ZhaomingPsych opened this issue May 18, 2024 · 3 comments
Open

Decoding for calcium imaging #285

ZhaomingPsych opened this issue May 18, 2024 · 3 comments

Comments

@ZhaomingPsych
Copy link

Hi everyone, I have some questions regarding the shuffle method, tuning curves, and decoding in your library:

  1. Shuffle Method: Is the TsDataFrame suitable for the shuffle method? Can TsDataFrame be transformed into a TsGroup?
  2. Tuning Curves: It appears that Tsd cannot be used as an input for tuning curves, despite the documentation indicating that it should be possible.
  3. Decoding: Can TsDataFrame be used as an input for the decoding process?

Thank you for your assistance.

@gviejo
Copy link
Contributor

gviejo commented May 20, 2024

Hey,

  1. Currently the shuffle methods works only for timestamps object (Ts) or TsGroup. In what case would you want to shuffle a TsdFrame? In any case, you can transform a Tsd into a TsGroup but not a TsdFrame.
  2. Which function did you try to use?
  3. Not yet. It's in the roadmap. Feel free to describe your use case here.

@ZhaomingPsych
Copy link
Author

Thank you for your reply!

  1. You're right! I transformed TsDataframe to Tsd, and now it works!
  2. compute_1d_tuning_curves_continuous
  3. Currently, I am trying to analyze place fields from two-photon calcium imaging using pynapple. Our goal is to decode the mouse's position from the calcium imaging data. Do you have any suggestions?

@gviejo
Copy link
Contributor

gviejo commented May 29, 2024

For 3. it's in the roadmap to add more capabilities for decoding with calcium imaging data but it's not ready yet. I would just try to train a machine learning model from scikit-learn if you want to do some decoding. I can leave this issue open until new decoding functions are implemented.

@gviejo gviejo changed the title Question about Tsdataframe and Tsgroup Decoding for calcium imaging May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants