I am trying to upload a dataset comprising EEG and fMRI data simultaneously acquired but I am experiencing a number of problems and I was hoping to get some assistance from you.
Basically I have two main problems
how to upload the EEG data in a BIDS compatible format (I tried to use .bidsignore without luck)
how to create the events.tsv files to go with the fMRI files (the events files I created are not recognised when I upload them)
Regarding the second issues, I built tsv files and saved them with names matching the fMRI data in the individual subject folder. However when I upload the dataset I get the error “Second column of the events file must be named ‘duration’”.
Now the tsv files were obtained saving in tsv format an excel sheet with two columns labelled onset and duration, as prescribed. ‘onset’ and ‘duration’ appears in the top row of the tsv files separated by a tab. However in the error specs it says that the error lies in Line: 1 Character: 6 onsetduration as if the tab character was not detected.
It’s hard to judge from a copy/paste. The bottom line is that the column separators need to be tabs (not spaces). You can verify if your file is using tabs by opening it in a text editor such as Atom or https://www.sublimetext.com/3.
Here are instructions for exporting tab separated value files using Excel.
they are indeed separated by tabs (as checked through sublimetext also). From excel I can only export .txt when tab separated. But events.txt files aren’t read when uploading to openNeuro they have to have a .tsv extension, which is an additional burden in a way because I have to rename them manually.
Thanks for sending the file. There are couple of issues
There are only two columns in your file. This is valid but due to a bug in the validator causes an error. I cannot give you a timeline for fixing this bug, but I find it unlikely that one would be able to replicate the analysis with only those two columns. Ale the _events files I’ve seen had more columns denoting event properties such as trial_type or various covariates (accuracy, response_time etc.). Files with more than two columns pass the validator.
The second issue is more subtle. There was something wrong with the encoding of the text file you sent me? How was it created? When I resaved it with UTF-8 encoding the error went away. I tried using Excel to export those file (not really the recommended way, but I assumed this is what was used), but it also did not create encoding issues. You can read more about programmatically writing TSV files here: https://github.com/INCF/bids-starter-kit/wiki/Metadata-file-formats#tsv-files