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

Understanding vis_data dictionary #58

Open
RejwanSalih opened this issue Feb 19, 2024 · 2 comments
Open

Understanding vis_data dictionary #58

RejwanSalih opened this issue Feb 19, 2024 · 2 comments

Comments

@RejwanSalih
Copy link

Hi Jingyi,

First of all, thanks a lot for developing the software. Clearly a lot of work went into this!

I am trying to map NP1.0 recorded neurons to anatomical location. For each neuron I have the peak channel, and I'm using the herbs output data my colleague provided to figure out where that channel was. I'm playing with the data output and have plotted the trajectory of the probe along with the channel locations:
Figure_4

However, I'm struggling to figure out the data structure. I have narrowed it down to 'vis_data', which contains 4 entries with keys of '0' up to '3':
Screenshot 2024-02-19 154023

Now, these structures also contain "sites", which I thought was the channel IDs starting from 1 at the tip. However, only two of the four site arrays are unique; they are duplicated between two columns. I show an example here:
Screenshot 2024-02-19 154148

Am I missing something fundamental? Any help would be appreciated!

Thanks again for this software!

Rejwan

@RejwanSalih
Copy link
Author

The only idea I have is that these 4 "sites" arrays should start from 1, 2, 3, and 4, and perhaps there is a bug in the code in that regard. If that's the case, how do I know which should be 1 vs 2 (and 3 vs 4), as the probe could be flipped and I have no way of knowing currently.

@JingyiGF
Copy link
Owner

Hi,
In case you did not read the tutorial about probes https://github.com/JingyiGF/HERBS/blob/main/Tutorial/Probe_Related/1-Important_to_know_before_you_start.md.

The vis_data is for visulisation in HERBS used to illustrate in "Probe information window". It is not related to actually voxels in atlas.

If you want to get the actually location related to atlas, you should check site_vox, or sites_loc_b, which is 3D locs related to Bregma.

If you don't know how the probe was handled while doing surgeries, I suggest to turn on "Merge sites" button.

Let me know if anything is not clear.

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