You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for providing the code to generate the amazing plots!
I want to plot egocentric rate maps with a fix object as the reference and use the animal's head direction defined from 0-360 degrees, with 0 being East, 90 -> North, 180 -> West, and 270 -> South. I noticed that in your Nature Communications paper you used movement direction from -180 -> -90 -> 0 -> 90 (South - West - North - East). Does the way I define my direction also work for the head directions? And how can I modify the code to allow a single point as the referenced boundary?
Thank you very much for your help!
Ed
The text was updated successfully, but these errors were encountered:
Hi Ed! Your head direction definition will be fine, the sin/cos functions will accommodate for -180:180 vs 0:360.
If your object of interest is large/distributed in space, you can use the EgocentricRatemap function provided, and select corners of the object instead of corners of the environment (we've used this internally in the lab).
If you're interested in just the tuning to a single point, you're probably better off calculating the egocentric rate map from scratch (which actually avoids many of the complications in calculating distance to each point on the boundary). Eg:
Thank you for the answers! The code for point reference also works. It is just that now the rate map doesn't show the reference point that the spikes are tuning to. I guess this is normal, though. After all, it is hard for one point to show up in a map.
Hello,
Thank you for providing the code to generate the amazing plots!
I want to plot egocentric rate maps with a fix object as the reference and use the animal's head direction defined from 0-360 degrees, with 0 being East, 90 -> North, 180 -> West, and 270 -> South. I noticed that in your Nature Communications paper you used movement direction from -180 -> -90 -> 0 -> 90 (South - West - North - East). Does the way I define my direction also work for the head directions? And how can I modify the code to allow a single point as the referenced boundary?
Thank you very much for your help!
Ed
The text was updated successfully, but these errors were encountered: