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

Problematic use of UID to get unique units in RankOrder.m #1

Open
ryanharvey1 opened this issue Mar 22, 2022 · 0 comments
Open

Problematic use of UID to get unique units in RankOrder.m #1

ryanharvey1 opened this issue Mar 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ryanharvey1
Copy link
Member

If restricting data prior to call to RankOrder.m, rank order will be incorrect.

spikes = importSpikes('brainRegion',"CA1",'cellType',"Pyramidal Cell");

spikes

UID: [1×240 double]
times: {1×240 cell}

Only 240 units. However,

[spkEventTimes] = getRipSpikes('spikes',spikes,'events',eventInt);

[rankStats] = RankOrder('spkEventTimes',spkEventTimes)

size(rankUnits)
ans =
275 4803

units = unique(evtTimes{event}(2,:),'stable');

@ryanharvey1 ryanharvey1 added the bug Something isn't working label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant