opdc.md 1.35 KB
Newer Older
Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: Data sharing case study
parent: Open Data
grand_parent: Open WIN Tools
has_children: false
nav_order: 3
---


# Data sharing case study: OPDC
{: .fs-9 }

How to use Docker containers in XNAT
{: .fs-6 .fw-300 }

---

The [OPDC](https://www.opdc.ox.ac.uk/home) project used the DPUK XNAT Node so that it could share imaging date the [DPUK data portal](https://info.dpuk.org).

## XNAT Upload instructions using .csv file

To upload (Assuming you have already an xnat-project).

1. Organise the DICOMs you want to upload into a structure like:
mymaindirectory/
* DICOMdir1
* DICOMdir2
* DICOMdirN

Where DICOMdir contains the DICOM data for a specific session for a certain subject (subject_ID)

2. Create a .csv file (e.g. myproject.csv) with 3 columns:

|subject_ID   | DICOMdir   | scan_date     |
|-------------|------------|---------------|

* subject_ID is uniquely associated with the participant
* directory is the name of the directory containing the DICOM files to upload. If more sessions of a certain subject exist, they have the code of the session (e.g. Calpendo ID)

3. Run the [csvupload.sh](https://git.fmrib.ox.ac.uk/-/snippets/32) script:

E.g. usage
``./csvupload.sh myproject.csv <xnat-username> <xnat-project_id> mymaindirectory > output_log.txt``

This script calls [uploaddcmtk.sh](https://git.fmrib.ox.ac.uk/-/snippets/31) so make sure you have both.