add script to restructure directory to future BEP020 conformity #13

Closed
adswa wants to merge 1 commit from master into master
adswa commented 2018-10-26 14:54:16 +00:00 (Migrated from github.com)

With regard to #12 I added a shell script that restructures and renames parts of the directory and adds .json, README and .bidignore file(s) to comply to proposed standards in BIDS extension proposal 020 (https://docs.google.com/document/d/1eggzTCzSHG3AEKhtnEDbcdk-2avXN6I94X8aUPEBVsw/edit#).

The directory structure when executing the script will be
├── code
│   ├── rawdata_conversion
│   └── stimulus
│   ├── movie
│   ├── movie_localizer
│   │   └── videos
│   ├── retinotopic_mapping
│   │   ├── songs
│   │   └── videos
│   └── visualarea_localizer
│   └── img
│   └── lcm
├── src
│   └── lab-eyetracking
├── stimuli
│   ├── movie_localizer -> ../code/stimulus/movie_localizer/videos/
│   ├── retinotopic_mapping -> ../code/stimulus/retinotopic_mapping/videos
│   └── visualarea_localizer -> ../code/stimulus/visualarea_localizer/img/
├── sub-01
│   ├── ses-localizer
│   │   └── func
│   └── ses-movie
│   ├── eyetrack
│   │   ├── derivatives
│   │   └── sourcedata
│   └── func
├── sub-02
│   ├── ses-localizer
│   │   └── func
│   └── ses-movie
│   ├── eyetrack
│   │   ├── derivatives
│   │   └── sourcedata
│   └── func
[...]
├── sub-35
│   └── ses-movie
│   └── eyetrack
│   | ├── derivatives
│   | └── sourcedata
├── sub-36
│   └── ses-movie
│   └── eyetrack
│   | ├── derivatives
│    | └── sourcedata
└── tests

!! Currently, these proposed extensions are not in use yet, and the BIDS validator will fail (it doesn't know/like the 'eyetrack' subdirectories yet). The script is intended to comply with a future extension of BIDS in accordance to BEP020. I'd suggest to ignore the PR for now and to get back to it once proposed extensions are accepted and to then revisit the usefulness of this script.

The script can be run in the root of the directory with
datalad run --input 'sub*/*/*/sub*_task-movie_run*_events*' --input 'sub*/*/*/sub*_task-movie_run*eyelink*' --input 'sub*/*/*/sub*_task-movie_run*eyegaze*' 'code/restructure.sh'

cc @yarikoptic

With regard to #12 I added a shell script that restructures and renames parts of the directory and adds .json, README and .bidignore file(s) to comply to proposed standards in BIDS extension proposal 020 (https://docs.google.com/document/d/1eggzTCzSHG3AEKhtnEDbcdk-2avXN6I94X8aUPEBVsw/edit#). The directory structure when executing the script will be ├── code │   ├── rawdata_conversion │   └── stimulus │   ├── movie │   ├── movie_localizer │   │   └── videos │   ├── retinotopic_mapping │   │   ├── songs │   │   └── videos │   └── visualarea_localizer │   └── img │   └── lcm ├── src │   └── lab-eyetracking ├── stimuli │   ├── movie_localizer -> ../code/stimulus/movie_localizer/videos/ │   ├── retinotopic_mapping -> ../code/stimulus/retinotopic_mapping/videos │   └── visualarea_localizer -> ../code/stimulus/visualarea_localizer/img/ ├── sub-01 │   ├── ses-localizer │   │   └── func │   └── ses-movie │   ├── eyetrack │   │   ├── derivatives │   │   └── sourcedata │   └── func ├── sub-02 │   ├── ses-localizer │   │   └── func │   └── ses-movie │   ├── eyetrack │   │   ├── derivatives │   │   └── sourcedata │   └── func [...] ├── sub-35 │   └── ses-movie │   └── eyetrack │   | ├── derivatives │   | └── sourcedata ├── sub-36 │   └── ses-movie │   └── eyetrack │   | ├── derivatives │    | └── sourcedata └── tests **!! Currently, these proposed extensions are not in use yet, and the BIDS validator will fail (it doesn't know/like the 'eyetrack' subdirectories yet). The script is intended to comply with a future extension of BIDS in accordance to BEP020. I'd suggest to ignore the PR for now and to get back to it once proposed extensions are accepted and to then revisit the usefulness of this script.** The script can be run in the root of the directory with `` datalad run --input 'sub*/*/*/sub*_task-movie_run*_events*' --input 'sub*/*/*/sub*_task-movie_run*eyelink*' --input 'sub*/*/*/sub*_task-movie_run*eyegaze*' 'code/restructure.sh' `` cc @yarikoptic
adswa commented 2021-05-06 05:57:59 +00:00 (Migrated from github.com)

This is very outdated, and now superfluous. Closing.

This is very outdated, and now superfluous. Closing.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
studyforrest/data-phase2!13
No description provided.