-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Tingley metabolic #49
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…buzsaki-lab-to-nwb into add_final_tingley
bendichter
reviewed
Apr 18, 2022
buzsaki_lab_to_nwb/tingley_metabolic/tingleymetabolicripplesinterface.py
Outdated
Show resolved
Hide resolved
…terface.py Co-authored-by: Ben Dichter <[email protected]>
…buzsaki-lab-to-nwb into add_final_tingley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Primary Data to Include
All sessions have raw, LFP, and accelerometer (see accelerometer interface for details on how to read).
Other common but not ubiquitous data types I may include are...
Subjects have an experiment-wide spreadsheet that tracks the ISIG values (see https://dspace.mit.edu/bitstream/handle/1721.1/122291/nihms-977830.pdf?sequence=2&isAllowed=y and https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3876347/) that are 'related' to glucose levels. Very low sampling rate (every 5 minutes or so), however, and can be monitored outside/in-between of ecephys sessions.
Data Types to Skip
There's an occasional file called 'zeittimes.mat' that has only a short 1D vector of values from 4.1e-6 to 4.9e-6... I have no idea what this is, paper doesn't seem to mention 'zeit' at all. Also German for 'time', so these are 'time times'?
There's also a
time.dat
binary with no info on sampling rate or number of channels - tryingchannels=1,2,3,4
doesn't give any length that matches either the primary.dat
or.lfp
; doingtest_time = read_binary(file="./time.dat", numchan=1, dtype="int16")[0][::2]
however, gives a vector equivalent tonp.array(list(range(len(test_time)), dtype="int16")
; that is, the signal is counting up from 0 at every other element (skipped elements are all zero). This happens until it reaches the maximum range of theint16
, which it then wraps around to the negative range forint16
and continues to increment again from there.See comments specific to each session in section below for miscellaneous other files that I'll skip. Personally, I don't think we should include the EMG or thetaPower, since they were only calculated on very specific subsets of available channels, and there a lot of hyperparameters used in their calculation. It would be a worthy challenge for the data reuse of this to re-compute the metrics from the data and reperform the analysis, but I don't think that's the responsibility of the NWBFile.
Contents and upload progress for sessions
As you can see, some sessions have a few extra files. I will not include movement.mat files since it just seems to be a light processing of accelerometer signal and is rarely included.
Questions for author
, which one is glucose?confirm units of EMG are mVwhen there are.evt
files, they indicate start/stop of auxiliary, start/stop of supply, start/stop of 'time'. Does that mean theaux.dat
doesn't overlap with the lfp or raw?some log timestamps stop before the sessions for that subject do