Examples in Five Safes TES

Five Safes TES (5s-TES) provides a way to perform isolated analyses across TREs. This section provides examples of how to perform these kinds of analysis using 5S-TES.

The Five Safes

The Five Safes framework is a set of principles which enable data services to provide safe research access to data.

5s-TES enables federated analytics which adhere to these principles.

Safe 5s-TES support
Safe data Data is de-identified and only the minimum amount of data required for an approved project is made available
Safe projects Analytics can only be performed within an approved project
Safe people Only approved people can submit jobs
Safe settings Execution happens within the TRE
Safe outputs Any outputs of execution have to go through disclosure control before they can be used

TES

The Global Alliance for Genomics and Health (GA4GH) Task Execution Service is an open, standardised mechanism for running computational tasks remotely. TES works by sending a standard format of HTTP requests to a server, which interprets these requests to run some task in its environment.

You do not need to know how to write this format to use 5s-TES, which has tools to help you.

In 5s-TES, the TES server sits inside a TRE, so tasks are executed inside the TRE, and can access Safe data for an approved project.

How 5S-TES works

5s-TES uses the TES standard to run tasks inside TREs. Running unapproved TES tasks would not be safe, so the architecture of 5s-TES is set up to protect data in the TREs. Tasks have to be sent to a Submission layer by an authenticated user, which orchestrates how tasks are distributed to TREs.

When a task runs, its outputs are held for disclosure control in the TRE.

Task overview

1

Send 5s-TES message to Submission layer

Submission layer handles orchestration, etc.

2

TRE picks up task from Submission layer

Software inside the TRE configures e.g. database credentials for your project.

3

One or more executors run task

4

Outputs go through disclosure control

The executor writes results to a file, which is held in the TRE. A TRE output checker then reviews the output to check that it is safe, after which the researcher is notified.

5

Researcher collects output

The researcher can then log in to the outputs bucket and download the outputs. These files can then be used to aggregate the results of a federated analysis.

Submission layer

Other layers

Researchers using 5s-TES will not interact with the other layers.

If you're interested in how these layers work, please consult the 5s-TES documentation.

Egress

To ensure Safe outputs, the outputs created by a task are held before releasing them outside the TRE. TREs then have rules on the egress of outputs, usually requiring manual review.