Closed ajcheng1 closed 1 month ago
It's true we haven't exposed multi-stream control to either PlexonRecording or Sorting yet - mostly because we haven't seen any data like that to my knowledge and we usually want to make sure it works first before allowing that option
@h-mayorquin Should know much more about this
We will take a look into it.
Hi, @ajcheng1.
Short answer: The branch on #1013 with the branch of neo https://github.com/NeuralEnsemble/python-neo/pull/1524 should allow you to solve your problem. If you need to do it quickly you can go in that direction, if you can wait, we will merge all of this at some point but is summer and the developers of neo are mostly European so maybe it will take a bit : P
Long answer:
Yes, this is a limtation of our API that derives of some of the problems in the ecosystem. Two main points: 1) As @CodyCBakerPhD noted we don't expose the stream_id or stream_name in our interface. In this case, there are good reasons not to do it, plexon has some streams (e.g. auxiliar input) that should not be written as an ElectricalSeries so we should only constrain the data to be wideband data for plexon (this is done in #1013). If you know which stream your wideband data is, you can expose that yourself by modifying the same lines that #1013 in a local copy and run it. However, here comes the second problem.
2) The streams of plexon 1 are neither human friendly nor stable in neo. The PR https://github.com/NeuralEnsemble/python-neo/pull/1524 attempst to fix this and should make it through eventually.
There is a remaining issue that we don't know exactly what to do with the stream to which channels that are named 'V{x}" belongs to. I expect your channels to come from wideband and therefore to be named "WB{X}" in which case there won't be a problem but if you happen to know what channels named "V{x}" in plexon stand for this will help us to build better software
Best regards,
What happened?
Apologies if this is not a bug, it may be something more on my end.
I slightly modified the program from the Plexon sorting data conversion (https://neuroconv.readthedocs.io/en/main/conversion_examples_gallery/sorting/plexon.html) and I was successfully able to convert a .plx file to a .nwb using example code #206 here (File_plexon_3) however I cannot replicate the same results with other .plx files.
I can't upload .plx files on github, but you are welcome to download it here https://plexon.com/software-downloads/#software-downloads-data-samples [Sample PLX File – Four Channel Demo]. I got a stream error from this .plx file but I am not sure how to specify a specific one I tried a .plx file from a MEA recording I did and I got a Error: list index out of range,
Steps to Reproduce
Traceback
Operating System
Windows
Python Executable
Python
Python Version
3.9
Package Versions
Code of Conduct