-
Notifications
You must be signed in to change notification settings - Fork 15
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
Wrong coordinates for electrophysiology #83
Comments
Hello, Would you mind attaching the output that you get from SHARP track so I can play around and see what conversion might me needed? Many thanks, |
Of course. The original output is a matlab file containing multiple probes, I just wrote the matrix for this probe to CSV and changed the column order to put the coordinates in ML/AP/DV to get this file. Thanks! |
Hi, Thank you very much, it works now and solves everything. Thanks, |
Great! The aligned results of the GUI are interpolated along the original traced track that is input, so if this is kinked then the aligned version will also be. |
Thanks, with the smoothing it works nicely. |
Hi there, I am trying to convert the probe tracking from AP_histology, and saved a NPY file for each probe. %%%%%% Code from Andrew Peters %%%%%%%%%%%%%% % Convert probe_ccf.mat into .npy for IBL ephys alignment for each probe After exporting the coordinates for each probe (each shank of NPX2.0), I tried to convert the coordinate in ML/AP/DV, but has some error messages: (iblenv) d:\repos>python
I cannot upload npy file so I converted into .csv |
Hello, Looking at the script you have written above it looks like the import that you have is incorrect. Can you change For the second question, at the moment the app only supports a full histology volume, is the idea that you would like to be able to just show one specific slice instead? |
Hi,
Thanks for designing this tool. I have been trying to use it with probes aligned on allenCCF SHARP-Track (https://github.com/cortex-lab/allenCCF/wiki) and I cannot seem to be able to get the correct coordinates.
I have my data as AllenCCF coordinates, in ML/AP/DV order, with a resolution of 10um and I am using this code to transfer them to bregma coordinates
It works fine but when I get to the data, the electrode is outside of the brain:
This seems to be the right angle for our probe but not the right origin point, in all directions.
I thought that the problem might be the bregma coordinates, as in the allenCCF SHARP-Track tool the bregma coordinates are 570/540/0 in ML/AP/DV. I tried solving that by adding an offset in the DV dimension but it did not change much.
I also tried multiplicating the ccf_mlapdv matrix by 1e6 as I saw for the lasagna tool, it improves the location but it still does not give the right coordinate and I am not sure if it is correct for my data. Do you have an idea of what could be going wrong?
Thanks,
Alice
The text was updated successfully, but these errors were encountered: