Prepare data
Before you upload anything, your dataset must be laid out in the exact folder structure BigPicture expects, and every data file must be encrypted with crypt4gh (the sda-cli encrypt step on the Upload page produces these .c4gh files for you).
Folder structure
The root of your submission is the dataset folder, which contains several subfolders:
DATASET_{IDENTIFIER}
|--- METADATA
| |--- dataset.xml (contains: Dataset)
| |--- policy.xml (contains: Policy)
| |--- image.xml (contains: Images)
| |--- annotation.xml (contains: Annotations)
| |--- observation.xml (contains: Observations)
| |--- observer.xml (contains: Observers)
| |--- sample.xml (contains: Biological Beings, Cases (if present), Specimens, Blocks and Slides)
| |--- staining.xml (contains: Stainings)
|--- IMAGES
| |--- IMAGE_{IDENTIFIER}
| | |--- *.dcm (DICOM files of an Image)
| |--- IMAGE_{IDENTIFIER}
| | |--- *.dcm
|--- ANNOTATIONS
| |--- *.geojson
|--- LANDING_PAGE
| |--- landing_page.xml (contains: Landing Page)
| |--- THUMBNAILS
| | |--- *.jpg
|--- PRIVATE (not shared with users)
| |--- rems.xml
| |--- organisation.xml
| |--- datacite.xml (contains: DataCite, optional)
- The root folder must be named
DATASET_{IDENTIFIER}, whereIDENTIFIERis either the accession ID generated by the repository (when data is downloaded) or the ALIAS you define at dataset creation/submission. - Each image folder must be named
IMAGE_{IDENTIFIER}, following the same rule. - If the dataset has no annotations, the
ANNOTATIONSfolder and theannotation.xmlfile can be omitted.
Anything in the LANDING_PAGE folder should be treated as visible to the entire world. The PRIVATE folder, by contrast, holds metadata that is never shared with users who are granted access to a dataset.
File rules
Every data file must be encrypted with
crypt4ghand carry the.c4ghextension — for exampleimage.xml.c4gh,image1.dcm.c4gh. (sda-cli encryptdoes this on the Upload page.)Metadata is split between two subfolders:
METADATAandPRIVATE.The only files allowed in
METADATAare:dataset.xml,image.xml,observation.xml,observer.xml(optional),policy.xml,sample.xml,annotation.xml(optional), andstaining.xml.The
image.xmlfile must include the full path of each DICOM image plus the checksums of both the encrypted and unencrypted files:<FILES> <FILE filename="IMAGES/IMAGE_{IDENTIFIER}/*.dcm" checksum_method="SHA256" checksum="<encrypted_checksum>" unencrypted_checksum="<unencrypted_checksum>" filetype="dcm"/> </FILES>
From inside your dataset folder, list the top-level layout and confirm the expected subfolders are present:
Get-ChildItem -Directoryls -d */ls -d */You should see METADATA, IMAGES, and PRIVATE (plus ANNOTATIONS and LANDING_PAGE if your dataset uses them), and the folder name should start with DATASET_.
With the layout in place, continue to Validate metadata.