Hi Dan,
Some of the pieces to orchestrate containers in the way you describe are missing from the current release of Container Service, namely, the ability to launch a container on "xnat:resourceCatalog" contexts - deriving parent scans/sessions/etc. I hope to get those features added to an imminent release.
If you are not concerned with storing the intermediate NIFTI files, you might try using a
setup command, similar to this one:
{
"name": "dcm2niix-setup",
"description": "Converts DICOM to NIFTI",
"version": "1.0",
"type": "docker-setup",
"image": "xnat/dcm2niix:dev",
"command-line": "dcm2niix -o /output /input"
}
which can convert DICOM input resources to NIFTI on-the-fly.
Of course, your suggestion of merging the functionality of both containers will work as well.
Best,
Matt