Skip to content

FIX - fixed events.tsv, which had an empty first header line element …#36

Merged
chrisgorgo merged 1 commit intobids-standard:masterfrom
robertoostenveld:ds101-events
Nov 10, 2017
Merged

FIX - fixed events.tsv, which had an empty first header line element …#36
chrisgorgo merged 1 commit intobids-standard:masterfrom
robertoostenveld:ds101-events

Conversation

@robertoostenveld
Copy link
Copy Markdown
Collaborator

…and an incorrect first column containing event number (should be onset)

bids-validator returned First column of the events file must be named 'onset' (code: 20 - EVENTS_COLUMN_ONSET)

The number of columns was 10, whereas there are only 9 header labels. The header line started with a tab, suggesting that the first element was removed. Since the first column only contained event number (index), I removed it like this

for file in `find . -type f -name \*events.tsv` ; do cut -f 2-20 $file > out && mv out $file ; done

…and an incorrect first column containing event number (should be onset)

bids-validator returned First column of the events file must be named 'onset' (code: 20 - EVENTS_COLUMN_ONSET)
@robertoostenveld
Copy link
Copy Markdown
Collaborator Author

following the fix, the bids-validator only reports "This file is too small to contain the minimal NIfTI header", which is expected.

@chrisgorgo
Copy link
Copy Markdown
Contributor

Thanks!

@chrisgorgo chrisgorgo merged commit 35bb41b into bids-standard:master Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants