-
Notifications
You must be signed in to change notification settings - Fork 22
Download datasets based on specific DICOM metadata values
On the following repository : https://github.com/LaurentPV/Shanoir-Api-Notebook you'll find notebooks to request Shanoir's API to retrieve useful informations about datasets and dataset's dicom metadata in order to extract datasets of interest using Shanoir's download features.
The Shanoir-API.ipynb allows you to :
-
generate a Keycloak token based on your Shanoir login and password to request SHANOIR API endpoints
-
use different methods calling different API endpoints based on your needs
-
retrieving informations based on a list of Shanoir's subject names
-
retrieving a list of dataset ids based on specific DICOM metadata characteristics In this example, once the dataset ids list acquired, you can download those datasets using SolR search in Shanoir (don't forget to set the "Page size" to the number of datasets set in the notebook variable 'dataset_size', and then use the SolR expert mode and fill the search bar with 'datasetId:(ID1 ID2 ID3 ...)').