-
Notifications
You must be signed in to change notification settings - Fork 6
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
Extend trial-aligned view to TimeSeries #190
Comments
I have now enabled this for FiberPhotometryResponseSeries You need to click checkboxes to select /processing/behavior/TimeIntervals and /processing/ophys/DfOverFFiberPhotometryResponseSeriesGreen and then the button/link will appear at the bottom of the left panel. Will need to think about how to make this view more discoverable, because a user will not know to do this. As a side note, there was an error when I tried to do this with /processing/ophys/BaselineFiberPhotometryResponseSeriesGreen After doing some investigation, I'm pretty sure that the content of the .nwb file is corrupted for this dataset. It's a large file so I didn't download locally, but for reference the following produces an error. import remfile
import h5py
url = 'https://api.dandiarchive.org/api/assets/deb6b7b3-47cb-421e-a600-72a73ae4bad3/download/'
rf = remfile.File(url)
f = h5py.File(rf, 'r')
X = f['/processing/ophys/BaselineFiberPhotometryResponseSeriesGreen']
timestamps = X['timestamps']
data = X['data']
print(f'timestamps shape: {timestamps.shape}')
print(f'data shape: {data.shape}')
print(data[30, 30])
print(data[30000, 30])
print(data[30000, 100])
# this is the one that produces the error.
# it seems the chunk is not valid gzip data
print(data[30, 100]) |
Thank you @magland! It would be also useful if the
How about having a third box showing up here:
Thank you for letting me know, I'm looking into it now. Not sure how this dataset became corrupted in the first place, as the other two fiber photometry series data looks fine. But I managed to replicate this error with |
@weiglszonja I have updated the above link that I had shared. To trigger this view, you can go to the TimeIntervals object and click on TrialAlignedSeries |
Can you extend the
TimeAlignedSeries
view mentioned here to work on this dataset?We would like to see trial-aligned view for fiber photometry data (added as
FiberPhotometryResponseSeries
from ndx-fiber-photometry which extendsTimeSeries
), light and tone stimulus times stored inTimeIntervals
.trial-aligned DF/F in figure B:
https://www.sciencedirect.com/science/article/pii/S0896627323009704#fig4
The text was updated successfully, but these errors were encountered: