You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contex:
We have a recording that includes Intracortical Microstimulation (ICMS) multiple times during the session. The data is in NWB format originally.
A collaborator has implemented an artifact removal using ERAASR (https://github.com/djoshea/eraasr) and provided a Matlab file with:
A matrix of [nSnippet X nChans X nStim] which contains snippets (length = nSnippet) of the high-pass filtered & centered cleaned traces for all the channels (nChans) from all the ICMS epochs (nStim)
An array of size [nStim] which contains the start_sample_index of each snippet.
Now, I'm working out how to insert these clean traces into the "filtered & centered" recording object that I got from the same NWB file. Afterward, I will use "neuroconv" to export this recording into a new NWB file (which I have already tested but without the snippet replacement).
Question:
Is there a function to insert these snippets into the recording object?
I hope my question makes sense, if not I can explain anything in further detail.
Thanks for any thoughts and comments on how to approach this.
Best
Pepe
The text was updated successfully, but these errors were encountered:
This will allow you to just put your data as a numpy array and run any spikeinterface routine your might want. This gives you a lot of flexibility but is limited by memory.
Now do I get your right that you want a recording object that has the following behavior:
get_traces(start_frame=a, end_frame=b)
1) normal recording object if the object is outside the snippet
2) the snippet data if the object on a snipet
The most similar thing that I can think off is InjectTemplatesRecording but it does not seem to fit perfectly.
It is a dataset with 32 channels at 30K, so it might not be feasible to load it into memory. But I can try to process individual channels, save them as a binary folder, and later combine them within spikeinterface. Is there a function to concatenate channels?
I saw your request to get non-electrical NWB timeseries¡ Thanks¡¡ that will be useful for filtering and processing our analog signals from behavioral channels. THANKS¡¡
Yes, I will wait. I'm still finishing our pipeline to export the curation from phy.
Reinserting the cleaned snippets will be the next step, so there is no rush.
Hello,
Contex:
We have a recording that includes Intracortical Microstimulation (ICMS) multiple times during the session. The data is in NWB format originally.
A collaborator has implemented an artifact removal using ERAASR (https://github.com/djoshea/eraasr) and provided a Matlab file with:
Now, I'm working out how to insert these clean traces into the "filtered & centered" recording object that I got from the same NWB file. Afterward, I will use "neuroconv" to export this recording into a new NWB file (which I have already tested but without the snippet replacement).
Question:
Is there a function to insert these snippets into the recording object?
I hope my question makes sense, if not I can explain anything in further detail.
Thanks for any thoughts and comments on how to approach this.
Best
Pepe
The text was updated successfully, but these errors were encountered: