nixpy icon indicating copy to clipboard operation
nixpy copied to clipboard

MultiTag intersection object

Open achilleas-k opened this issue 6 years ago • 6 comments

It came up in a discussion that intersecting MultiTags might be a useful feature. This could be a method that takes a list of MultiTags (or their names) and returns a new type (MultiTagView? similar to how a DataView is a sliced view of a DataArray) that has positions and extents that represent the intersection of the provided MTs. Similarly, the references of this MultiTagView would be the DataArrays that are referred to by all provided MultiTags.

achilleas-k avatar Jul 26 '19 13:07 achilleas-k

Would that be a transient object or something that you would want to store in the file?

gicmo avatar Jul 26 '19 13:07 gicmo

I guess this information should be stored in the file. much like a group with some more info.

jgrewe avatar Jul 26 '19 14:07 jgrewe

I was thinking transient, which is why I mentioned the DataView.

achilleas-k avatar Jul 26 '19 15:07 achilleas-k

Since this issue is still open I wanted to say that a MultiTag intersection object would be really useful for me. For example if I wanted to get all spikes (first MultiTag) that occur around a specific behavioural event (second MultiTag) in trials of a certain condition (third MultiTag).

refactoriel avatar Oct 21 '20 07:10 refactoriel

There's an open Pull Request for this in the nixworks library: https://github.com/G-Node/nixworks/pull/19

It needs a bit more testing and a deeper review, which is why it's been open for so long.

achilleas-k avatar Oct 21 '20 11:10 achilleas-k

Thanks for the link, I had only checked this repo and couldn't find a branch/PR for it.

refactoriel avatar Oct 21 '20 12:10 refactoriel