Dear All,
I tried using the XNAT plugin (on the newest FASTR release) for my project, but came up with the following error:
Encountered error (FastrValueError): Cannot matching value /tmp/fastr_WORC_IbohSD/segmentation_m2/id_0/result/patient-003/fastr_xnat_71886_tmpS_1MFy/patient-003/scans/9-T2W/resources/MASK/files/ [str] to any of frozenset([<URLType: MetaImageFile class [Loaded]>, <URLType: NiftiImageFileCompressed class [Loaded]>, <URLType: AnalyzeImageFile class [Loaded]>, <URLType: NiftiImageFileUncompressed class [Loaded]>, <URLType: TifImageFile class [Loaded]>]) (/usr/local/lib/python2.7/dist-packages/fastr/datatypes.py:338)
Hence the XNAT plugin returns a string instead of the actual image which I'm expecting, thereby creating a type error. The error seems to be in the scan ID of the XNAT interface: the correct link seems to be .../scans/9/resources/MASK/files/(mask.nii.gz) instead of .../scans/9-T2W/resources/MASK/files/(mask.nii.gz). 9 is the scan series number, T2W the description. I assume that if this reference would be correct, the plugin would be able to find the mask.nii.gz file automatically as it is the only file in the resource?
The following string was used to create the source string, following the structure on the FASTR documentary:
I was therefore wondering if this is an error in the XNAT plugin and if so, if it could be fixed or if someone could suggest a workaround using the plugin? I could off course use something like PyXNAT/XNATPy to create the correct references, but this is more cumbersome. Or off course if the error is due to something external like my XNAT structure or my source string.
Thanks in advance.
Kind regards,
Martijn