Managing Data#

This section describes how to manage data in the IMQCAM including:

Collections#

Data in the IMQCAM portal is organized into collections with the three main collections relating to Processing (Enclave 1), Multiscale Modeling (Enclave 2), and Q&C (Enclave 3). Collections are open for all IMQCAM members but Enclave PIs may request that write access be limited to specific team members.

After signing in to your account, select the “Collections” link to view any collections that you have access to. Select the collection that you want to access.

../../_images/imqcam-collection.png

Creating Folders#

To create a new folder, select the dropdown on the right and “Create folder here”:

../../_images/imqcam-create-folder.png

Uploading folders and files#

To upload a file or folder, select the green upload icon:

../../_images/imqcam-collection-uploader.png

Using the “Upload files” window, browse or drag-and-drop the files you want to upload. Select “Start Upload” to initiate the upload process:

../../_images/imqcam-upload-files.png

When uploading folders, you may be prompted to allow your browser to upload multiple files:

../../_images/imqcam-upload-allow.png

Upload files and folder using girder-client#

It is also possible to upload files and folders from the command line using the Python-based girder-client application. This requires that you configure an API Key in the IMQCAM DMS system.

Install girder-client:

pip install girder-client

Note

The girder-client version shoulb be >3.x.x Check using this command: pip show girder-client

To configure an API key for use with the girder-client, select the “My account” option from the user menu:

../../_images/imqcam-my-account.png

Select the “API keys” tab and then “Create new key”:

../../_images/imqcam-api-keys.png

Name your API key and keep the default options then select “Create”:

../../_images/imqcam-api-key-create.png

Click the “show” link to view and copy your key:

../../_images/imqcam-api-key-show.png

Now use the girder-client command line tool to upload:

girder-client --api-url https://data.imqcam.org/api/v1 --api-key API_KEY upload SERVER_REMOTE_PATH OR ID "YOUR_LOCAL_PATH"

For example, to upload the local folder “test” to the remote “Example” in the “Demo”:

Upload with help of SERVER_REMOTE_PATH:#

How to get the path:

Go inside the Collections, Select the right collection. Eg: Demo

../../_images/imqcam-collection.png

select the right folder eg: Example

../../_images/imqcam-collection-folder.png

FOR THE GIVEN example the SERVER_REMOTE_PATH is “Demo/Example”

girder-client --api-url https://data.imqcam.org/api/v1 --api-key API_KEY upload "/collection/Demo/Example" "./test"

Creating Folder from test
[####################################]  9.00/9.00  100%  file.txt
Creating Folder from test/subfolder
[####################################]  5.00/5.00  100%  file.txt

Upload with help of ID:#

How to get the ID:

Go inside the Collections, Select the right collection. Eg: Demo

../../_images/imqcam-collection.png

Copy the last ID from the URL like shown below

../../_images/imqcam-collection-id.png
girder-client --api-url https://data.imqcam.org/api/v1 --api-key API_KEY upload 6839b47028b402e4f5r4 "./test"
Creating Folder from test
[####################################]  9.00/9.00  100%  file.txt
Creating Folder from test/subfolder
[####################################]  5.00/5.00  100%  file.txt

Transferring data#

When data needs to be transferred automatically or continuously, the DMS supports several options: