Dataset Formatting Solution
v 1.0
William Intan
Document History
Section titled “Document History”| Version | Date | Who | Change Summary |
|---|---|---|---|
| 1.0 | 2026-Jun | WI | Split solution from requirements document |
Existing Solution Scan
Section titled “Existing Solution Scan”An initial scan of existing dataset format standards was performed. None appear to match all our requirements out of the box, so our solution may require a combination of these standards or extensions to some individual standard.
RO-Crate
Section titled “RO-Crate”<https://www.researchobject.org/ro-crate/>RO-Crate is a method to create datasets and annotate them with metadata so that they are sharable according to FAIR principles. The applications of an RO-Crate include containing a set of files with metadata annotations, linking to other datasets or recording analysis, tools or outputs used for the dataset. In the context of dataset sharing and importing, the RO-Crate standard is well-adopted across disciplines and has characteristics that fit data sharing requirements here, as it enables dataset producers, consumers and Information Asset Owners to interact with datasets using a common tool.
DCAT 3.0
Section titled “DCAT 3.0”<https://www.w3.org/TR/vocab-dcat-3/>DCAT 3.0 (Data Catalog Vocabulary) is a standardized metadata vocabulary designed to facilitate the description and organization of datasets within distributed data environments, analogous to how bibliographic cataloging systems enable systematic resource discovery in libraries.
DCAT 3.0 supports comprehensive description of individual datasets and dataset collections (catalogs), enables specification of inter-dataset relationships, accommodates multiple distribution channels and formats for identical datasets, and incorporates data quality and usage metadata. The standard additionally provides mechanisms for describing access rights, licensing terms, and usage constraints.
Portable Format for Biomedical Data
Section titled “Portable Format for Biomedical Data”<https://uc-cdis.github.io/pypfb/>The Portable Format for Biomedical Data (PFB) is a self-describing serialization format specifically designed for bulk biomedical research data. Built on Apache Avro, PFB encapsulates four critical components in a single file: the data model, data dictionary, the actual data, and pointers to third-party controlled vocabularies. This approach ensures that anyone receiving a PFB file has everything needed to understand and work with the dataset, as the schema and metadata travel with the data itself.
PFB uses an entity-relationship model where data is organized as linked entities with defined relationships (one-to-one, one-to-many, etc.), making it particularly suitable for complex biomedical datasets that involve participants, samples, genomic data, and clinical information.
Phenopackets
Section titled “Phenopackets”<https://github.com/phenopackets>Phenopackets is a GA4GH-standardised file format designed to facilitate the sharing of phenotypic and clinical information about individual patients or biosamples, particularly in the context of rare disease, cancer, and complex disease genomics. The format is built on Google’s Protocol Buffers (protobuf) and can be serialized in JSON, YAML, or binary formats, creating machine-readable representations that associate phenotypic abnormalities with diseases and patients, including details about age, sex, onset, and clinical evidence.
Solution Design
Section titled “Solution Design”Submission Batch Names vs Dataset Names
Section titled “Submission Batch Names vs Dataset Names”We should have two namespaces — names that are relevant within a batch, and a combined namespace that encompasses all batches — where objects with the same name are merged, with the latest object winning. This will help achieve DFREQ-2, DFREQ-3, DFREQ-4 — by allowing objects already submitted to be replaced/deleted in future batches.
For example:
<batch 001> / me.bam / me.fastq.gz
<batch 002> / you.bam / you.fastq.gz / us.vcf.gz
<batch 003> / me_topup.fastq.gz / me.bam / us.vcf.gzEach batch has its own namespace view (with a root at <batch xxx>/).
The overall dataset namespace as of batch 003 is:
<overall> / me.bam (from batch 003 — replacing one in batch 001) / me.fastq.gz (from batch 001) / me_topup.fastq.gz (from batch 003) / you.bam (from batch 002) / you.fastq.gz (from batch 002) / us.vcf.gz (from batch 003 — replacing one in batch 002)This allows batches to be immutable — but still replace/delete files. This allows objects and references to span multiple batches. However we identify batches — it allows them to be moved between locations (i.e. the folder containing batch 001 can live in S3 or GCS — its location is not part of the definition). Names within a batch and within a dataset are always local and contained.
Batches have an inherent ordering — how best to maintain that? We could insist that the identifiers for each batch are in the form 20240601 (e.g.), or we could leave it up to the submitter and say that the batches will be sorted alphabetically and they can call them A, B, C.
Output is Not Necessarily Input
Section titled “Output is Not Necessarily Input”IMPORTANT NOTE: The submission batches are an important detail for the submitter and Information Asset Owner — but probably have no relevance to the consumer. So from the consumer perspective — there may only be a dataset namespace. Because manifests/metadata is generally small compared to the actual BAMs — we can create them on demand or per user. Let’s not get stuck in a mindset that everything that is submitted has to be necessarily passed through identically to the consumer, or that we can’t (for instance) dynamically create other metadata for the consumer that wasn’t in the input (e.g. dynamically create a DCAT file).
Leaning toward RO-Crates as the fundamental standard. Because we are looking at people handing over data for custodianship, the data has to be complete — meaning the data must be Attached RO-Crates (it can’t have external references).
Our Submission Batch Manifest
Section titled “Our Submission Batch Manifest”Think AG manifest.txt but better. Is it a ro-crate-metadata.json per batch? Is it something in RO-Crates-like format that lives per batch — but which contributes to an output ro-crate-metadata customised for the Consumer?
Key rule: EVERY OBJECT in a batch MUST BE mentioned. And every object mentioned MUST exist.
Whatever our batch manifest-like thing is — it must be complete for that batch at the point of submission.
On Directories in RO-Crates: preference is for everything that exists in the dataset to be explicitly mentioned and checksummed — rather than Directory/*.
Contextual vs Data Entities
Section titled “Contextual vs Data Entities”At a batch level we are primarily documenting data entities — but where do the contextual entities come in? Are they themselves data entities of each batch (i.e. an object called mydatasetinfo.jsonld) that get raised to contextual entities in the output? If we just enter contextual entities directly, how would we correct them later?
Checksums
Section titled “Checksums”Are checksums in the dataset or external to the dataset? Options:
- Tie in the
.sumsfiles thatcopyritecan produce - Support whatever checksums the producer wants to make (e.g.
MD5SUMS.txtorSHASUMS.txt) - Compute checksums however the producer wants, but require values to go into
ro-crate-metadata
Status: August 2025
Section titled “Status: August 2025”How do we package a dataset?
Section titled “How do we package a dataset?”Main point-of-view subjects:
- Producer — Owns the process of generating or obtaining sequencing/experimental data and any additional analysis that is considered part of the dataset.
- Consumer — Wants to use the dataset for new research.
- Information Asset Owner — Holds the data on behalf of the producer with an aim of facilitating controlled access for consumers.
Main flow of the process:
- Producer Submission
- Submits datasets in batches.
- Can amend or delete previously submitted datasets at any time.
- A single participant’s data can be spread across multiple batches.
- Information Asset Owner Oversight
- Maintains full visibility over all datasets.
- Ensures data is accessible to approved consumers.
- Consumer Access
- Retrieves available datasets.
- Receives checksums for verification of data integrity.
Main requirements:
- Producers can contribute data in batches.
- Producers can modify previously submitted datasets in the future.
- A collection of data for one participant may be split across multiple batches.
- Consumers can retrieve both data and checksums to verify integrity.
RO-Crates
Section titled “RO-Crates”A standard for bundling data together with its descriptive metadata defined in JSON.
- Bundles related data together (e.g., BAM & BAI, or FASTQ pairs)
- Lets you describe hierarchical relationships (study → participant → filetype → file)
- Allows giving context of who/when data was modified
- Machine readable
Two-layer RO-Crate structure for each dataset study:
└── flagship-abc ├── batch-001 └── batch-002Batch-level RO-Crates:
- Ensures all files in a batch are well documented so top-level RO-Crates can reference them
- Created when a dataset batch is completed
- Includes only data within that batch
- Records identifiers, grouping collections (e.g., BAM, VCF) and their indexes
- Ensures each submission from the producer is fully documented
Study-level root RO-Crate:
- Visibility for the project
- Exists above all batches
- Links participants across batches
- Updates whenever any batch changes, maintaining full history
Integrity Checking — BagIt Specification
Section titled “Integrity Checking — BagIt Specification”<https://www.rfc-editor.org/rfc/rfc8493.html>Defines rules for how a manifest (checksum) should look. Specifies:
- How the checksums file will look
- Which checksum algorithms to use
- Standard filenames for manifests
- How to checksum the checksum files themselves
Enables checksum verification before submitting a batch. Does not protect against active attacks — only integrity verification.
Example Batch Structures
Section titled “Example Batch Structures”Reference implementation: <https://github.com/umccr/guardian-dataset-formatter/tree/main/study-a>
Batch-001: Submit BAM and VCF for study A001
Dataset (batch-001) └── Dataset (Sample A001) ├── Collection (BAM files) │ ├── File (A001.bam) │ └── File (A001.bam.bai) └── Collection (VCF files) ├── File (A001.vcf) └── File (A001.vcf.tbi)Batch-002: Submit FASTQ for A001; submit BAM, VCF, and one FASTQ for A002
Dataset (batch-002)├── Dataset (Sample A001)│ └── Collection (FASTQ files)│ ├── File (A001_R1.fastq)│ └── File (A001_R2.fastq)└── Dataset (Sample A002) ├── Collection (FASTQ files) │ └── File (A002_R1.fastq) ├── Collection (BAM files) │ ├── File (A002.bam) │ └── File (A002.bam.bai) └── Collection (VCF files) ├── File (A002.vcf) └── File (A002.vcf.tbi)Batch-003: Submit missing FASTQ for A002; replace BAM for A002; submit VCF, FASTQ, BAM for A003
Dataset (batch-003)├── Dataset (Sample A002)│ ├── Collection (FASTQ files)│ │ └── File (A002_R2.fastq)│ └── Collection (BAM files)│ ├── File (A002.bam)│ └── File (A002.bam.bai)└── Dataset (Sample A003) ├── Collection (FASTQ files) │ ├── File (A003_R1.fastq) │ └── File (A003_R2.fastq) ├── Collection (BAM files) │ ├── File (A003.bam) │ └── File (A003.bam.bai) └── Collection (VCF files) ├── File (A003.vcf) └── File (A003.vcf.tbi)Potential CLI Commands
Section titled “Potential CLI Commands”# Compute root ro-cratetool rocrate-root <batch001location> <batch002location>
# Verify ro-crate + checksum for a batchtool verify-batch <batch002location>
# Verify ro-crate + checksum for roottool verify-full s3://mystore/batch001 s3://mystaging/new
# Diff files across batchestool diff <batch-001> <batch-002>Todo / Investigate
Section titled “Todo / Investigate”- How do we mark any deletion if the producer accidentally uploads data?
- Investigate if there is a maximum size for ro-crate JSON
- Investigate how well to verify checksum within the batch — BAM files could get really large and it might take a while to complete checksum verification
- Create ro-crate profiles/rules for this specification
Action Items
Section titled “Action Items”Local Tool for Submitter
Section titled “Local Tool for Submitter”- Create a profile for the ro-crate for individual batch
- Checks for the submitted ro-crate against the profile and completeness of all files in the ro-crate and vice versa — all files are in the ro-crate
- Check for BagIt compliance within the batch
- Verify checksums against the BagIt specifications
- A tool to help submitter to create ro-crate for its submission
Ready for Submitter
Section titled “Ready for Submitter”- RO-Crate profiles for the root study
- Compute master ro-crate for the entire study based on batch ro-crate
- Diff with the existing local batch (which plans to submit) against what is already in the submitted crate
Other metadata that is more into the participant information would explore other options such as DCAT or Phenopackets.