nsteinme / steinmetz-et-al-2019

Code accompanying Steinmetz et al., 2019
GNU General Public License v3.0
55 stars 15 forks source link

how to get the location of the spikes in a common coordinate space #1

Closed adezfouli closed 4 years ago

adezfouli commented 4 years ago

My question is how to get the location of spikes in a common coordinate space.

Would that be enough to get the cluster of the spike (from spikes.clusters), and then getting the peakChannel from clusters.peakChannel and finally getting channels.brainLocation.tsv?

nsteinme commented 4 years ago

Yes, that is correct. Sorry, I can see that this seems like an extra step and it would have been helpful to include a clusters.brainLocation directly, but in any case you got it right.

adezfouli commented 4 years ago

@nsteinme Another related question about how to match clusters.peakChannel to channels.brainLocation.tsv. The indices in clusters.peakChannel start from 1 (not zero). Does it mean that the channel number 1 matches the first row of channels.brainLocation.tsv?

guidomeijer commented 8 months ago

I see this was a long time ago but I have the same question

nsteinme commented 8 months ago

Sorry to have missed answering this earlier. Yes, clusters.peakChannel -> channels.brainLocation. I believe it will be 1-indexed (made all this in matlab...).

Nick

On Thu, Mar 7, 2024 at 5:46 AM Guido Meijer @.***> wrote:

I see this was a long time ago but I have the same question

— Reply to this email directly, view it on GitHub https://github.com/nsteinme/steinmetz-et-al-2019/issues/1#issuecomment-1983540498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5IP5ZBJJ7X63G3IAC23DYXBVSPAVCNFSM4KQHH5N2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYGM2TIMBUHE4A . You are receiving this because you were mentioned.Message ID: @.***>