-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
195 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: "Tests - Boutique" | ||
on: | ||
# Trigger the workflow on push or pull request, but only for the main branch | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v1 | ||
|
||
- uses: BSFishy/pip-action@v1 | ||
with: | ||
packages: | | ||
boutiques | ||
- name: Download test data | ||
shell: bash -el {0} | ||
run: | | ||
curl -L https://github.com/rob-luke/BIDS-NIRS-Tapping/archive/master.zip --output data.zip | ||
pwd | ||
unzip data.zip -d ./example_data | ||
ls | ||
- name: Where are we and whats around | ||
run: | | ||
pwd | ||
ls | ||
- name: Run bosh | ||
run: | | ||
bosh exec launch fnirsapp_qr.json example_invocation.json --debug | ||
- name: Where are we and whats around | ||
run: | | ||
pwd | ||
ls | ||
ls example_data | ||
ls example_data/BIDS-NIRS-Tapping-master | ||
ls example_data/BIDS-NIRS-Tapping-master/derivatives | ||
ls example_data/BIDS-NIRS-Tapping-master/derivatives/fnirs-app-quality-reports | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Bosh output | ||
path: | | ||
/home/runner/work/fnirs-apps-quality-reports/fnirs-apps-quality-reports/*bosh* | ||
example_data/BIDS-NIRS-Tapping-master/derivatives/fnirs-app-quality-reports/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"input_datasets": "/home/runner/work/fnirs-apps-quality-reports/fnirs-apps-quality-reports/example_data/BIDS-NIRS-Tapping-master", | ||
"output_location": "/home/runner/work/fnirs-apps-quality-reports/fnirs-apps-quality-reports/example_data/BIDS-NIRS-Tapping-master/derivatives/fnirs-app-quality-reports", | ||
"subject_label": [ | ||
"01", | ||
"02" | ||
], | ||
"task_label": [ | ||
"tapping" | ||
], | ||
"pp_threshold": 0.6, | ||
"sci_threshold": 0.7 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"name": "fNIRS Apps: Quality Reports", | ||
"description": "A GLM pipeline for quality reports", | ||
"author": "Robert Luke", | ||
"tool-version": "v0.1.0", | ||
"schema-version": "0.5", | ||
"command-line": "/run.py [InputDataset] [OutputLocation] [SubjectLabel] [TaskLabel] [SCIThreshold] [PeakPowerThreshold]", | ||
"container-image": { | ||
"image": "ghcr.io/rob-luke/fnirs-apps-quality-reports/app", | ||
"index": "ghcr.io", | ||
"type": "docker", | ||
"entrypoint": true | ||
}, | ||
"inputs": [ | ||
{ | ||
"command-line-flag": "--input-datasets", | ||
"id": "input_datasets", | ||
"description": "The directory with the input dataset formatted according to the BIDS standard.", | ||
"name": "input-datasets", | ||
"optional": true, | ||
"type": "File", | ||
"value-key": "[InputDataset]" | ||
}, | ||
{ | ||
"command-line-flag": "--output-location", | ||
"id": "output_location", | ||
"description": "The directory where the output files should be stored.", | ||
"name": "output-location", | ||
"optional": true, | ||
"type": "File", | ||
"value-key": "[OutputLocation]" | ||
}, | ||
{ | ||
"command-line-flag": "--subject-label", | ||
"description": "The label(s) of the subjects(s) that should be analyzed. The label corresponds to sub-<subject_label> from the BIDS spec (so it does not include \"sub-\"). If this parameter is not provided all subjects should be analyzed. Multiple participants can be specified with a space separated list.", | ||
"id": "subject_label", | ||
"name": "subject-label", | ||
"optional": true, | ||
"type": "String", | ||
"list": true, | ||
"value-key": "[SubjectLabel]" | ||
}, | ||
{ | ||
"command-line-flag": "--task-label", | ||
"description": "The label(s) of the tasks(s) that should be analyzed. The label corresponds to task-<subject_label> from the BIDS spec. If this parameter is not provided all tasks should be analyzed. Multiple tasks can be specified with a space separated list.", | ||
"id": "task_label", | ||
"name": "task-label", | ||
"optional": true, | ||
"type": "String", | ||
"list": true, | ||
"value-key": "[TaskLabel]" | ||
}, | ||
{ | ||
"command-line-flag": "--sci-threshold", | ||
"id": "sci_threshold", | ||
"name": "sci-threshold", | ||
"optional": true, | ||
"type": "Number", | ||
"value-key": "[SCIThreshold]" | ||
}, | ||
{ | ||
"command-line-flag": "--pp-threshold", | ||
"id": "pp_threshold", | ||
"name": "pp-threshold", | ||
"optional": true, | ||
"type": "Number", | ||
"value-key": "[PeakPowerThreshold]" | ||
} | ||
], | ||
"output-files": [ | ||
{ | ||
"id": "output_directory", | ||
"name": "BIDS derivatives directory", | ||
"optional": false, | ||
"path-template": "[OutputLocation]" | ||
} | ||
], | ||
"suggested-resources": { | ||
"cpu-cores": 1, | ||
"ram": 1, | ||
"walltime-estimate": 60 | ||
}, | ||
"tags": { | ||
"domain": [ | ||
"neuroimaging", | ||
"fnirs", | ||
"quality", | ||
"bids" | ||
] | ||
}, | ||
"error-codes": [ | ||
{ | ||
"code": 1, | ||
"description": "Crashed" | ||
} | ||
], | ||
"custom": { | ||
"BIDSAppSpecVersion": "Draft" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters