EEG summary statistics are most appropriately organized by rows of visit+channel, unlikely rows of solely visit in the more general wide-format merge7T. To avoid adding 64 columns per eeg measure and make pivoting a nightmare, 7TEEG exists in it's own longer format file:
/Volumes/Hera/Projects/7TBrainMech/scripts/eeg/merge7tEEG.csv
The code to combine all the files is along side the csv as merge7TEEG.R
and also mirrored on github @ 7TBrainMech_scripts/eeg and includes a less detailed readme file.
Merge 7T EEG combines all EEG data from the 7T grant on a per channel level.
Thus far it is incorporating the spectral event data, FOOOF data, and SNR.
Those files can be found in the following locations within /Volumes/Hera/Projects/7TBrainMech/scripts/eeg/Shane/Results/
spectral events | Spectral_Analysis/Spectral_events_analysis/GammaSpectralEvents_DelayandFix_channelLevel_merge7tEEG_20231110.csv |
fooof | FOOOF/allSubjectsAllChannelsFooofMeasures_20230911.csv |
SNR | SNR/allSubjectsSNR.csv |
/Volumes/Hera/Projects/7TBrainMech/scripts/eeg/Shane/Rscripts/attic/DFforMerge_longSpectralEvents.R
merge7TEEG.R
for each subject using 2 SDsmerge7TEEG.R
for each subject using 2 SDsCombineSubjectDataframes.R
which creates the SNR/allSubjectsSNR.csv
that is fed into Merge7tEEG merge7TEEG.R
for each subject using 2 SDs