Skip to content

Logo Logo

Session Templates

Introduction

Session Templates allow Project Admins to configure requirements for acquisitions. For example, you can specify:

  • The minimum number of acquisitions with a given label
  • The minimum count and measurement classification of files within the acquisition

If a session does not contain the acquisitions specified in any of the configured templates, it will be flagged for review.

This article explains how to create a session template, gives an example template, and shows how to view sessions that don't match the template requirements.

Instruction Steps

Prefer videos?

Watch this webinar to learn how to create a session template.

Create Session Template

  1. Sign in to Flywheel as a Project Admin.

  2. Navigate to a project.

  3. Click the Templates tab.

NewSessionTemplate.png

  1. Click Create new template.

  2. Fill out the template:

  3. Session name: Configures the text at the beginning of the session label that the template would apply to. If empty, it will apply to all sessions in the project. Regex string matching is supported.

  4. Acquisition count: Configures the number of files that should match the acquisition label
  5. Acquisition label: Configures the full or partial acquisition label that the template is checking for. Regex string matching is supported.
  6. File Count: Configures the number of files that match the file classification
  7. File Classification: Configures the required file measurement classifications. Learn more about measurement classifications in Flywheel.

  8. Click Add File to have multiple file rules for an acquisition.

  9. Click Add Acquisitions to have multiple acquisition rules for a session.

  10. Click Save.
    The template evaluates any existing session in the project. If the sessions don't follow the template, they are flagged.

Example:

SessionTemplateExample.png

In this example, Flywheel evaluates sessions that have a label starting with anxiety_protocol_pre. The template will flag any session that does not have:

  • At least 1 acquisition with the label MPRAGE
  • Two files that are classified as T1

This means the the MPRAGE acquisition would have to have a DICOM file and a NIFTI file that both have been classified correctly.

View sessions that don't follow the template

Flywheel automatically flags any session that does meet the requirements set in the template. These are called flagged sessions. To view flagged sessions in a project:

  1. From the project, click the Sessions tab.
  2. From the Advanced Filter menu, select Only Flagged

ViewOnlyFlaggedSessions.png

  1. Enter a date range to narrow down the results or leave blank to view all flagged sessions.