ckanext-papaya
This is an extension for CKAN that uses Papaya (https://github.com/rii-mango/Papaya) to provide views for NIFTI (.nii) and DICOM (.dcm) file formats. It provides views for both single DICOM files as well as DICOM directories uploaded to CKAN as a ZIP file.
Requirements
Tested with CKAN 2.9.0a.
Installation
Activate your CKAN virtual environment:
. /usr/lib/ckan/default/bin/activate
Install the package:
pip install ckanext-papaya
Add papaya to the ckan.plugins setting in your CKAN config file. To avoid having the Papaya viewer enabled for all ZIP files, do not add papaya to ckan.views.default_views.
Restart CKAN.
Config settings
None at present. NIFTI files and DICOM directories tend to be rather large, so you may have to increase the maximum resource size.
Using the Extension
The extension automatically creates a view using the Papaya Viewer for single DICOM files (.dcm), NIFTI files (.nii), and ZIP archives containing DICOM files. Non-DICOM files in ZIP archives are ignored. To view zipped DICOM files, the extension temporarily unzips the archive. Unlike the ParaView extension, this runs directly in CKAN and does not require a separate server.
License
AGPL-3.0