|
| 1 | +--- |
| 2 | +procyamlversion: 3.0.0-dev.0 |
| 3 | + |
| 4 | +description: XCP-D, https://xcp-d.readthedocs.io/en/latest |
| 5 | + |
| 6 | +jobtemplate: job_template_v3.txt |
| 7 | + |
| 8 | +containers: |
| 9 | + - name: xcpd |
| 10 | + path: xcp_d_0.7.5.sif |
| 11 | + source: docker://pennlinc/xcp_d:0.7.5 |
| 12 | + |
| 13 | +requirements: |
| 14 | + walltime: 1-0 |
| 15 | + memory: 8000 |
| 16 | + |
| 17 | +inputs: |
| 18 | + xnat: |
| 19 | + |
| 20 | + filters: |
| 21 | + - type: match |
| 22 | + inputs: scan_fmri,assr_fmriprep/scan_fmri |
| 23 | + |
| 24 | + scans: |
| 25 | + |
| 26 | + - name: scan_fmri |
| 27 | + types: rest1APA_FMRI_MB3_2_5mm_1300 |
| 28 | + |
| 29 | + assessors: |
| 30 | + |
| 31 | + - name: assr_fmriprep |
| 32 | + proctypes: fmriprep-BAIS_v23 |
| 33 | + resources: |
| 34 | + - {resource: fmriprepBIDS, ftype: DIR, fdest: fmriprepBIDS} |
| 35 | + |
| 36 | +outputs: |
| 37 | + - {path: HTML, type: DIR, resource: HTML} |
| 38 | + - {path: xcpdBIDS, type: DIR, resource: xcpdBIDS} |
| 39 | + - {path: qc.csv, type: FILE, resource: QC} |
| 40 | + - {path: coverage.csv, type: FILE, resource: COVERAGE} |
| 41 | + - {path: xcpd-processors-2.5.0/scripts, type: DIR, resource: SCRIPTS} |
| 42 | + |
| 43 | + |
| 44 | +command: |
| 45 | + type: singularity_run |
| 46 | + container: xcpd |
| 47 | + args: >- |
| 48 | + --work-dir /tmp |
| 49 | + --fs-license-file /opt/license.txt |
| 50 | + --skip-dcan-qc |
| 51 | + --smoothing 0 |
| 52 | + --skip-parcellation |
| 53 | + --nuisance-regressors acompcor |
| 54 | + --fd-thresh 0 |
| 55 | + --lower-bpf 0.01 |
| 56 | + --upper-bpf 0.10 |
| 57 | + --min-coverage 0 |
| 58 | + /INPUTS/fmriprepBIDS/fmriprepBIDS |
| 59 | + /OUTPUTS/xcpdBIDS |
| 60 | + participant |
| 61 | + extraopts: --bind /data/mcr/centos7/FS6/license.txt:/opt/license.txt |
| 62 | + |
| 63 | +post: |
| 64 | + type: singularity_exec |
| 65 | + container: xcpd |
| 66 | + args: >- |
| 67 | + bash -c ' |
| 68 | + mkdir /OUTPUTS/HTML && |
| 69 | + cp /OUTPUTS/xcpdBIDS/sub-*.html /OUTPUTS/HTML && |
| 70 | + cp -R /OUTPUTS/xcpdBIDS/sub-* /OUTPUTS/HTML && |
| 71 | + rm -fr /OUTPUTS/HTML/sub-*/ses-* && |
| 72 | + |
| 73 | + cd /OUTPUTS && |
| 74 | + curl -o xcpd-processors.tar.gz -L https://github.com/VUIIS/xcpd-processors/archive/refs/tags/v2.5.0.tar.gz && |
| 75 | + tar -zxf xcpd-processors.tar.gz && |
| 76 | + export PATH=/OUTPUTS/xcpd-processors-2.5.0/scripts:\$PATH && |
| 77 | +
|
| 78 | + custom_parcellation.py |
| 79 | + --fmriprep_dir /INPUTS/fmriprepBIDS/fmriprepBIDS |
| 80 | + --xcpd_dir /OUTPUTS/xcpdBIDS |
| 81 | + --space MNI152NLin6Asym |
| 82 | + --atlas JSins |
| 83 | + --min_coverage 0 |
| 84 | + --out_dir /OUTPUTS && |
| 85 | + |
| 86 | + fisher_z.py --xcpd_dir /OUTPUTS/xcpdBIDS |
| 87 | + ' |
0 commit comments