usage: scramble inputdir outputdir tsv [-h] [-d] [-b] [-s PATTERN] {null,permute} ...
Adds scrambled versions of the tsv files in the input directory to the output directory. If no scrambling
method is specified, the default behavior is to null all values.
positional arguments:
{null,permute} Scrambling method (default: null). Add -h, --help for more information
null Replaces all values with "n/a"
permute Randomly permute the column values of the tsv files
options:
-h, --help Show this help message and exit
-d, --dryrun Do not save anything, only print the output filenames in the terminal (default: False)
-b, --bidsvalidate If given, all input files are checked for BIDS compliance when first indexed, and
excluded when non-compliant (as in pybids.BIDSLayout) (default: False)
-s PATTERN, --select PATTERN
A fullmatch regular expression pattern that is matched against the relative path of the
input data. Files that match are scrambled and saved in outputdir (default: (?!\.).*)
examples:
scramble inputdir outputdir tsv
scramble inputdir outputdir tsv permute
scramble inputdir outputdir tsv permute -s '.*_events.tsv' -p '.*'
scramble inputdir outputdir tsv permute -s participants.tsv -p (participant_id|SAS.*)