-
Notifications
You must be signed in to change notification settings - Fork 256
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
rezToPhy clusterIDs
are not assigned
#36
Comments
Not sure what that function is supposed to return, but if you want to use the clustering results in Matlab, you are better served by the rez structure. I think I forgot to document these outputs, I'll do that soon. |
Actually, nvm, it's in the wiki: https://github.com/MouseLand/Kilosort2/wiki/7.-Output-variables |
Sorry yes those return arguments were a deprecated old idea. As Marius says, just use rez directly, or if you discarded rez then you can load data with this function which has similar output to that list of return arguments: https://github.com/cortex-lab/spikes/blob/master/preprocessing/phyHelpers/loadKSdir.m Fixed via: Removed the return arguments from the function e7740f6 |
thanks for point out the functions to read |
That information is in the "rez" struct already, see the documentation that Marius linked to above. Or, you can write your own function based on rezToPhy. |
yeah, I guess it's better letting |
Well that was the original logic of having those return arguments, but I
think at this point it is better to leave rezToPhy alone since it is a core
component of the pipeline. Logically speaking, it has a separate function.
Thanks -
…On Tue, Mar 26, 2019 at 10:35 AM Li Alex Zhang ***@***.***> wrote:
yeah, I guess it's better letting rezToPhy to do just converting job, and
write another function to extract similar data from rez.
But the similar data have already been extracted in rezToPhy, so I
thought why not return it out. it's fairly Straightforward, I could make a
pull request if you permit.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHPUP-MUWmQpxSur3T9gLSauNN_sTTJVks5valp5gaJpZM4cEJML>
.
|
ok, I got it, thanks |
Hi,
when I do
[spikeTimes, clusterIDs, amplitudes, templates, templateFeatures, ... templateFeatureInds, pcFeatures, pcFeatureInds]=rezToPhy(rez, rootdir);
matlab error said it's not assigned, and indeed inrezToPhy
function.it seems the
spike_clusters.npy
is saved but not reflected in theclusterIDs
variable in line 107.If my guess is correct, the
clusterIDs
is meant to have the same meaning ofspike_cluster.npy
, then it could be easily fixed.The text was updated successfully, but these errors were encountered: