bids-standard / bids-examples

A set of BIDS compatible datasets with empty raw data files that can be used for writing lightweight software tests.
http://bids-standard.github.io/bids-examples/
169 stars 134 forks source link

Fix a few participants.tsv files #446

Closed yarikoptic closed 4 months ago

yarikoptic commented 4 months ago

A handy tool I discovered, to e.g. find all values which are not numeric

$ for f in */participants.tsv; do echo $f; mlr --itsv --otsv cut -f age $f; done

to just dump all the file names and their values for age if any

❯ mlr --itsv --otsv filter 'string($age) =~ "[^0-9]"' cut -f age ds000117/participants.tsv
participant_id  age sex first_ses
sub-emptyroom   n/a n/a n/a

to dump those which are not numeric in a particular file