-
Notifications
You must be signed in to change notification settings - Fork 164
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
Process: Add combine recordings #717
Process: Add combine recordings #717
Conversation
hello @rcassani This PR is ready for review. The only things I am not sure are: the events ( how to merge event from multiple file - esp after synchronization there will be a lot of duplicate if we just concatenate the events), and the channel flag. Let me know if you have any questions. I'll try to complete all the PR I have as draft soon :) |
ok i completed my todo list. @rcassani, let me know when you would have time to review this. Let me know if you need an example dataset |
@Edouard2laire, apologies for closing the PR, I was trying to close my comment —duh! |
Add checks for same Subject and same Time for input files
Naming of binary file follows the approach as with reviewing raw data
@Edouard2laire, my changes are done, thanks for the patience. |
Thanks a lot. I am starting the test now. |
it seems to be working. However, i am getting this error a lot on the data of PA14 that I sent you: is this something I should worry about? It seems to be present at the end of the file: But when I look at the nirs file at the same time it looks like this: So the individual files are from 0 to 7056.855, 7056.9 and 7056.856 but the output is 7078.996 I am wondering why 22 sec were added at the end of the file. |
@rcassani so it was an issue with how my file was imported. Reimported from raw file and it is now working ! Ready to merge :) |
Actually wait. i am trying something for the events :) |
@Edouard2laire, thanks for noticing the part for events with same name. Don't you think it is necessary to keep the events separated per file? If we merge the events at combining recordings, it will not possible to split them after. Also, it is possible that events with the same name are different type (single / extended) in that case merging is not even possible. On the other hand, if we keep the events separated in the combined file, the user can easily decide to merge them. This is done with the This could be implementing by reverting to 54d1cb4 and this patch:
|
I don't see why it is necessary. At least I think it is important not to duplicate identical events. (since we duplicate them during the synchronization) it would lead to so many events in the combined file.
First, i dont think this is a good idea to split a combine file: we had to upsample a lot the recording. so splitting the signal again doesnt make too much sense. The combining is only here for visualization since we cant visualize multiple signal with different frequency. But even then, it is easy to split: If an event has no channel information:it belong to all channel and can be split easily. just copy to each file.
I agree that we can keep the events that are not identical but have the same name and not merge them. |
This reverts commit 68f7a2d.
Would this work for you ? @rcassani in this case, we end up with the following events: and yes we can merge the motion latter using the GUI or process |
Makes sense for the event that was used for synchronization.
Yes, this is true. But there is no way to separate events based on the channels that the belong in the GUI or with a process. The user would need to program it. But by not merging (in the combining process), the user can decide to merge them, which can be done with the GUI and there is already a process.
Oh! I'll add this on my TODO list, outside of this PR. Thanks for the heads-up |
Sounds good |
@Edouard2laire, two changes in 83b10d0:
|
yes, me too. but i was not sure on the best way to fix that :) Glad you have done it :) |
Hello,
This is the continuation of #660 in the attempt to enhance multimodal data analysis in Brainstorn.
Since, having multiple raw viewer recording with multiple sampling rate is not accessible (#656), i made this process to combine recording and resampling them to the highest frequency.
This allows to make such visualization directly from Brainstorm:
This assume that the signals were synchronized
Todo:
Question:
- [x] Better way to merge channels?I am not sure if the way I am doing is ok; especially if I need to merge headpoints / fiducials ...- [x] How to deal with events ?Same thing, I am only copying events from the first file ? Should we merge them adding a sufixe to the name to identify the file ?