INCF/bidsutils

Name: bidsutils

Owner: International Neuroinformatics Coordinating Facility (INCF)

Description: Utility functions for working with BIDS compatible datasets

Created: 2015-10-24 16:43:11.0

Updated: 2017-01-13 04:26:33.0

Pushed: 2016-11-04 11:36:42.0

Homepage: null

Size: 23

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bidsutils

Utility functions for working with BIDS compatible datasets

e: BIDSto3col.sh [options] BidsTSV OutBase 

s BidsTSV and then creates 3 column event files, one per event type, 
g the basename OutBase.  By default, all event types are used, and the 
ht value (3rd column) is 1.0. 

ons
 EventName   Instead of all event types, only use the given event type.
 EventName   Treat all rows as a single event type; specify the EventName
             to be used when creating the file name for the 3 column file.
 HtColName   Instead of using 1.0, get height value from given column; two 
             files are written, the unmodulated (with 1.0 in 3rd column) 
             and the modulated one, having a "_pmod" suffix.
 DurColName  Instead of getting duration from the "duration" column, take
             it from this named column.
 TypeColName Instead of getting trial type from "trial_type" column, use this
             column.
             By default, when creating 3 column files any spaces in the 
             event name are replaced with "_"; use this option to
             prevent this replacement.

Examples of usage:

BIDSto3col.sh ds001/sub-13/func/sub-13_task-balloonanalogrisktask_run-01_events.tsv Events3col
BIDSto3col.sh -e cash_demean ds001/sub-13/func/sub-13_task-balloonanalogrisktask_run-01_events.tsv Events3col
BIDSto3col.sh -e cash_demean -h explode_demean ds001/sub-13/func/sub-13_task-balloonanalogrisktask_run-01_events.tsv Events3col
BIDSto3col.sh -s Event sub-01_task-mixedgamblestask_run-01_events.tsv Events3col
BIDSto3col.sh -s Ev -h "parametric loss" sub-01_task-mixedgamblestask_run-01_events.tsv Events3col

Note that it checks for non-numeric heights (and missing event names and/or column names).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.