MNE also allows reading and writing of `fif.gz` files. However, that option does not seem to be available for BIDS:
ValueError: Extension .fif.gz is not allowed. Use one of these extensions [‘.CNT’, ‘.EEG’, ‘.bdf’, ‘.bin’, ‘.cdt’, ‘.cnt’, ‘.con’, ‘.ds’, ‘.edf’, ‘.fif’, ‘.lay’, ‘.mef’, ‘.nwb’, ‘.pdf’, ‘.set’, ‘.snirf’, ‘.sqd’, ‘.vhdr’, ‘.json’, ‘.tsv’, ‘.tsv.gz’, ‘.nii’, ‘.nii.gz’, ‘.pos’, ‘.eeg’, ‘.vmrk’, ‘.dat’, ‘.EEG’, ‘.mrk’].
While .gz is not the native file format of the MEG machine, it’s not really a new file format. Is there any valid way to compress my files before saving them in BIDS?
I want to share my data as part of open science, but currently the dataset is too large for almost all repositories, compression seems the sustainable choice.