Read Support for NWB #88
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds read support for .nwb files.
The
readRawData()function now automatically checks if nwb files are present in each data folder, and if so reads them and writes to hdf5 in a format identical to the other read functions. To perform this operation, two additional fields have been added to the GuPPyParametersUsed.json file:nwb_response_series_namesandnwb_response_series_indices. Both need to be the same length asfolderNames.Note: the primary conda environment defined by
spec_file_mac.txtdoes not work for .nwb read since pynwb requires python>=3.8, but the existing guppy environment is in python 3.6. To solve this problem, I defined a newguppy_read_env, which uses python>=3.8. The best long-term solution to this problem would be to update the main guppy environment to a newer python version, but since I don't have a solid grasp on all the dependencies I will leave that to @venus-sherathiya.