wilsonlab / clusterless

Clusterless Decoding Source code from J Neurophysiol. 2014 Jan 1; 111(1): 217–227
1 stars 1 forks source link

function seg_or is missing? #1

Open yzhang511 opened 1 year ago

yzhang511 commented 1 year ago

I am currently attempting to apply your clusterless decoder to my own data. However, it seems that the seg_or function, which the compute_source function relies on, is missing from the provided code. I noticed that there is a seg_and function available, but I am not sure if it can be used as a substitute for seg_or in this context.

Would it be possible for you to kindly provide the seg_or function? Thank you :)

jonnew commented 1 year ago

Hi, probably not unfortunately. This code was saved from an ancient server and posted here as is. I've used in before on real data and not run into this, maybe you are hitting a code path that I didn't encounter due to your parameter selection though. You should be able to figure out what the intention of seg_or is (probably via simple induction based on what seg_and does along with context) and write your own. When you do, please feel free to submit a PR.

yzhang511 commented 1 year ago

Thank you! I also have a question about the data format:

For the function compute( obj, bins, varargin ), what should be the structure of bins? A specific example would be very helpful :) thanks