Skip to content

Commit 7bc47f3

Browse files
committed
proc
1 parent ade25e9 commit 7bc47f3

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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_v24
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.4.0/scripts, type: DIR, resource: SCRIPTS}
42+
43+
command:
44+
type: singularity_run
45+
container: xcpd
46+
args: >-
47+
--work-dir /tmp
48+
--fs-license-file /opt/license.txt
49+
--skip-dcan-qc
50+
--smoothing 0
51+
--skip-parcellation
52+
--nuisance-regressors acompcor
53+
--fd-thresh 0
54+
--lower-bpf 0.01
55+
--upper-bpf 0.10
56+
--min-coverage 0
57+
/INPUTS/fmriprepBIDS/fmriprepBIDS
58+
/OUTPUTS/xcpdBIDS
59+
participant
60+
extraopts: --bind /data/mcr/centos7/FS6/license.txt:/opt/license.txt
61+
62+
post:
63+
type: singularity_exec
64+
container: xcpd
65+
args: >-
66+
bash -c '
67+
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 /INPUTS &&
74+
curl -o xcpd-processors.tar.gz -L https://github.com/VUIIS/xcpd-processors/archive/refs/tags/v2.4.0.tar.gz &&
75+
tar -zxf xcpd-processors.tar.gz &&
76+
export PATH=/INPUTS/xcpd-processors-2.4.0/scripts:\$PATH &&
77+
custom_parcellation.py
78+
--fmriprep_dir /INPUTS/fmriprepBIDS/fmriprepBIDS
79+
--xcpd_dir /OUTPUTS/xcpdBIDS
80+
--space MNI152NLin6Asym
81+
--atlas Sch200Tian
82+
--min_coverage 0
83+
--out_dir /OUTPUTS &&
84+
fisher_z.py --xcpd_dir /OUTPUTS/xcpdBIDS
85+
'

0 commit comments

Comments
 (0)