Skip to contents

This vignette covers the last mile of the preparation workflow: what exactly to upload, how to package supplementary files, and what happens to your files once TRIA receives them. It assumes you have already been through vignette("workflow") and have a complete QWAmetadata object and QWAdata files (and, optionally, a validated zip of supplementary files) ready on disk.


What to submit

A submission consists of:

  1. The QWAmetadata .json: exported from the Shiny metadata app (<date>_TRIA_<ds_name>_collected_metadata.json) or written with write_QWAmetadata().
  2. {dataset_name}_QWAcells.csv(.gz) and {dataset_name}_QWArings.csv(.gz): written with write_QWAdata(). The rings file may also have been saved via the Shiny flags app, if it was used for assigning data quality flags to years.
  3. Optionally, one zip archive of supplementary files (original and annotated images, raw ROXAS / ROXAS AI output, reference series, etc.) and the supplementary CSV describing it (see vignette("supplementary")).

To hand over these files, email tria@wsl.ch and either:

  • share a link to them on a file transfer service of your choice (e.g. Dropbox, Google Drive, your institution’s own service); or
  • ask for an invite link to WSL’s file transfer server, if you’d rather not set one up yourself.

What happens after you submit

We run your data through some basic validation checks, then insert it into the TRIA PostgreSQL database. This is where the structured data (measurements, metadata) live, and what the TRIA web platform (webapps.wsl.ch/tria) talks to. Access is controlled, so only the publicly available (meta-)data is visible via the website.

S3 bucket

For every dataset, we store the TRIA dataset files (metadata, cells, rings and any supplementary files) in an S3 bucket: public datasets in the public bucket, where they are easily accessible and downloadable, and embargoed ones in a restricted bucket until their release. Each dataset gets its own folder like this:

tria.0000/
  data/
    tria.0000_QWAmetadata.json
    tria.0000_QWArings.csv.gz
    tria.0000_QWAcells.csv.gz
  supplementary/
    tria.0000_supplementary_files.csv 
    tria.0000_supplementary_data.zip
  versions/                            <- only if there are multiple versions of the dataset
    tria.0000_v1_QWAmetadata.json
    tria.0000_v1_QWAcells.csv.gz           

We make a small number of server-side adjustments to your raw files during ingestion, so that what ends up in the TRIA S3 bucket differs slightly from what you submitted. None of these require any action on your part, they’re listed here purely so the shape of the final record isn’t a surprise.

QWAcells.csv

Derived cell measurements (tca, rwd2, dcwt, cwtall_adj, cdrad, cdtan, cdratio, sector100) are removed. They are trivially recomputed from the raw measurements, so we don’t store a second, potentially stale copy. Recompute them with complete_QWAdata().

QWArings.csv

Ring flags are stored as in the database: missing flag values become FALSE, and optional quality flag and comment columns that are empty in all rows are not written.

QWAmetadata.json

Field Change When
$dataset$ds_access, embargoed_until Removed On ingestion
$dataset$ds_label, url Added On ingestion
$dataset$citation Added (with the DOI if registered, otherwise the TRIA web app URL) On ingestion
$dataset$dataset_version Added (for reproducibility in case of later changes) On ingestion
$dataset$doi Added When a DOI is registered
$dataset$ds_license "All rights reserved" while embargoed; the submitted licence applies on release On ingestion / release
$images$fname_image, fname_cells, fname_rings, fname_settings Removed On ingestion
$related Removed (shown on the TRIA web app landing page) On ingestion
$datafiles Added: two rows for the QWAcells/QWArings files On ingestion

The fname_* columns hold absolute paths from your own machine— meaningful while you’re preparing the data, meaningless (and potentially revealing local file-system structure) once archived, so they are always stripped rather than carried into the database. $datafiles contains two rows describing the QWAcells and QWArings files, with size_bytes, checksum (MD5) and s3_key, so the data files of each dataset_version are identified exactly. Note that the supplementary CSV is a separate file (see below), not a component of QWAmetadata.json.

supplementary_files.csv and supplementary_data.zip

Providing a submission manifest means naming problems (an unrecognised file, a missing linked_label) surface on your end, where you can still rename or annotate things, rather than during our ingestion checks. We re-run check_supplementary() on our side regardless, pointed directly at your uploaded zip. If you provide the manifest CSV, it’s trusted as ground truth for anything it lists that’s still in the zip. Extra files in the zip the manifest doesn’t mention are left out rather than guessed at; check_supplementary() warns about them, so you can declare them in the manifest or remove them from the zip. If you don’t provide a manifest, we build one from scratch the same way compile_supplementary() would for you. But any issues with inferring the resource types and linked labels would mean that we have to contact you for clarification—prolonging the submission process.

The checked and ‘cleaned’ archive is re-zipped. For the supplementary CSV, the columns fname_resource, status and note are removed, and size_bytes and checksum are added to identify each file within the archive.