File tree Expand file tree Collapse file tree 8 files changed +23
-28
lines changed
australian-imaging-service/mri/human/neuro/bidsapps Expand file tree Collapse file tree 8 files changed +23
-28
lines changed Original file line number Diff line number Diff line change 59
59
env :
60
60
PUSH : " ${{ steps.deployable.outputs.PUSH }}"
61
61
run : >
62
- arcana deploy make-app ./australian-imaging-service xnat:XnatApp
62
+ pydra2app make xnat ./australian-imaging-service
63
63
--registry ghcr.io --check-registry --clean-up --tag-latest --loglevel info
64
64
--release pipelines-metapackage $RELEASE $PUSH
Original file line number Diff line number Diff line change 1
- title : ' Functional MRI data preprocessing pipeline'
2
- arcana_spec_version : 1.0
1
+ title : " Functional MRI data preprocessing pipeline"
2
+ schema_version : 1.0
3
3
version :
4
4
package : &package_version "23.1.4"
5
5
base_image :
@@ -110,7 +110,7 @@ command:
110
110
configuration :
111
111
path : fmap/magnitude
112
112
column_defaults :
113
- datatype : medimage/dicom-series
113
+ datatype : medimage/dicom-series
114
114
fmap_phasediff :
115
115
datatype : medimage/nifti-gz-x
116
116
help : " Field map - BIDS Case 1: phasediff image corresponding to the phase-diff map between echo times"
@@ -171,5 +171,5 @@ command:
171
171
app_output_dir : /work/bids-app-output
172
172
app_work_dir : /work/nipype-work
173
173
json_edits :
174
- path : ' fmap/.*'
174
+ path : " fmap/.*"
175
175
jq_expr : ' .IntendedFor = "{bold}"'
Original file line number Diff line number Diff line change 1
- arcana_spec_version : 1.0
2
- title : ' Extract quality control metrics from T1w, T2W and fMRI data'
1
+ schema_version : 1.0
2
+ title : " Extract quality control metrics from T1w, T2W and fMRI data"
3
3
version :
4
4
package : &package_version "22.0.6"
5
5
build : " 3"
@@ -11,7 +11,7 @@ base_image:
11
11
tag : *package_version
12
12
package_manager : apt
13
13
docs :
14
- info_url : https://mriqc.readthedocs.io
14
+ info_url : https://mriqc.readthedocs.io
15
15
description : |
16
16
MRIQC extracts no-reference IQMs (image quality metrics) from
17
17
structural (T1w and T2w) and functional MRI (magnetic resonance
Original file line number Diff line number Diff line change 1
1
title : " Structural MRI data preprocessing pipeline"
2
- arcana_spec_version : 1.0
2
+ schema_version : 1.0
3
3
version :
4
4
package : &package_version "0.9.2"
5
5
build : " 3"
@@ -69,4 +69,4 @@ command:
69
69
executable : /opt/conda/bin/smriprep
70
70
dataset : /work/bids-dataset
71
71
app_output_dir : /work/bids-app-output
72
- app_work_dir : /work/nipype-work # We need to give a work directory outside of the pydra node as otherwise the file paths exceed Freesurfer's file-path char buffers
72
+ app_work_dir : /work/nipype-work # We need to give a work directory outside of the pydra node as otherwise the file paths exceed Freesurfer's file-path char buffers
Original file line number Diff line number Diff line change 1
- arcana >= 0.10.11
2
- arcana -xnat >= 0.3.6
1
+ pipeline2app >= 0.12
2
+ pipeline2app -xnat >= 0.6.2
3
3
fileformats >= 0.8.6
4
4
fileformats-extras >= 0.2.1
5
5
fileformats-datascience >= 0.1.0
Original file line number Diff line number Diff line change 53
53
# image_tag=image_tag,
54
54
# build_dir=build_dir,
55
55
# use_local_packages=True,
56
- # use_test_config =True,
56
+ # for_localhost =True,
57
57
# license_src=license_src,
58
58
# arcana_install_extras=["test"],
59
59
# generate_only=True,
Original file line number Diff line number Diff line change 1
1
from pathlib import Path
2
2
from click .testing import CliRunner
3
- from arcana .core .cli . deploy import make_app
4
- from arcana .core .utils . misc import show_cli_trace
3
+ from pipeline2app .core .cli import make
4
+ from frametree .core .utils import show_cli_trace
5
5
6
6
PKG_PATH = Path (__file__ ).parent .parent .absolute ()
7
7
8
8
runner = CliRunner ()
9
9
10
10
results = runner .invoke (
11
- make_app ,
11
+ make ,
12
12
[
13
13
f"{ PKG_PATH } /australian-imaging-service/mri/human/neuro/bidsapps/fmriprep.yaml" ,
14
14
"xnat:XnatApp" ,
15
- "--raise-errors"
15
+ "--raise-errors" ,
16
16
],
17
17
catch_exceptions = False ,
18
18
)
Original file line number Diff line number Diff line change 1
1
import json
2
- from arcana .core .cli .deploy import make_app
2
+ from arcana .core .cli .deploy import make
3
3
from arcana .core .utils .misc import show_cli_trace
4
4
from arcana .xnat .deploy import XnatApp
5
5
from arcana .xnat .utils .testing import install_and_launch_xnat_cs_command
@@ -24,14 +24,14 @@ def test_bids_app(
24
24
build_arg = "--build"
25
25
26
26
result = cli_runner (
27
- make_app ,
27
+ make ,
28
28
[
29
29
str (bp .spec_path ),
30
30
"pipelines-core-test" ,
31
31
"--build-dir" ,
32
32
str (build_dir ),
33
33
build_arg ,
34
- "--use-test-config " ,
34
+ "--for-localhost " ,
35
35
"--use-local-packages" ,
36
36
"--raise-errors" ,
37
37
"--license-src" ,
@@ -46,17 +46,12 @@ def test_bids_app(
46
46
with xnat_connect () as xlogin :
47
47
48
48
with open (
49
- build_dir
50
- / image_spec .name
51
- / "xnat_commands"
52
- / (image_spec .name + ".json" )
49
+ build_dir / image_spec .name / "xnat_commands" / (image_spec .name + ".json" )
53
50
) as f :
54
51
xnat_command = json .load (f )
55
52
xnat_command .name = xnat_command .label = image_spec .name + run_prefix
56
53
57
- test_xsession = next (
58
- iter (xlogin .projects [bp .project_id ].experiments .values ())
59
- )
54
+ test_xsession = next (iter (xlogin .projects [bp .project_id ].experiments .values ()))
60
55
61
56
inputs_json = {}
62
57
@@ -78,7 +73,7 @@ def test_bids_app(
78
73
for pname , pval in bp .parameters .items ():
79
74
inputs_json [pname ] = pval
80
75
81
- inputs_json [' Arcana_flags' ] = (
76
+ inputs_json [" Arcana_flags" ] = (
82
77
"--plugin serial "
83
78
"--work /work " # NB: work dir moved inside container due to file-locking issue on some mounted volumes (see https://github.com/tox-dev/py-filelock/issues/147)
84
79
"--dataset-name default "
You can’t perform that action at this time.
0 commit comments