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

Aligning on event median #19

Open
ClaraBesserer opened this issue Dec 15, 2021 · 1 comment
Open

Aligning on event median #19

ClaraBesserer opened this issue Dec 15, 2021 · 1 comment

Comments

@ClaraBesserer
Copy link

Hello,
I'm trying to apply warping to my data, following the 'rat motor cortex' tutorial.
I noticed that it always align to the max isi (for tap2 in the exemple). It is not ideal if my event distribution is polluted by some abnormaly long isi. Is it possible to align on the isi mean or median?

Figure 2021-12-15 095931

Here is how it looks like on my data : I don't think it makes sense to align on the max isi, especially for the 'align on both taps' column.

Thanks in advance!
Clara

@ahwillia
Copy link
Owner

Yes its possible, but you'll have to work out the math. See the docstring for manual_fit. It may be as easy as replacing tmax in the example notebook with whatever median or mean that you'd like to use as the anchor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants