Loris
Loris copied to clipboard
[imaging browser] add download buttons for BIDS JSON file (and NIfTI bval, bvec files for DWI)
Brief summary of changes
Currently, the image download button says 'Download MINC' which is wrong when the file attached is a NIfTI file or another image file format. Instead, the "Download MINC" has been rephrased to a more generic option "Download Image".
For DWI NIfTI files, users should also be able to download the BVAL and BVEC files that come with NIfTI DWI files. This PR adds a download button for each of those files when they are linked to the image file in the parameter_file
table.
Similarly, for BIDS datasets, there are JSON files that comes with the image file that should be made available for download so this PR adds a download button to the imaging browser if a JSON file is linked to the NIfTI image file in the parameter_file
table.
Testing instructions
Load a BIDS dataset with DWI data and other modalities into LORIS and check that the relevant buttons show in the frontend.
- if don't want to run an entire pipeline, a quick hack would be to add a NIfTI file to the
files
table and add the following entries in theparameter_file
table- one entry linked to the
parameter_type
Name
check_bval_filename
- one entry linked to the
parameter_type
Name
check_bvec_filename
- one entry linked to the
parameter_type
Name
bids_json_file
- one entry linked to the
The button should then be seen on the imaging browser. Make sure the paths are relative to the imagePath
Config.
Link(s) to related issue(s)
- Resolves https://github.com/aces/HBCD/issues/226
can you send this to 24.1-release?
@driusan rebase on 24.1-release done!
I was able to successfully download BVEC, BVAL and JSON files with the new buttons. Approving.