The config file is used with the ingest template command to upload data. This upload method allows you to leverage the existing folder structure in your local server to map your dataset to a Flywheel project.
The alternative is to use an upload method that organizes files based on the file's metadata (such as with the ingest dicom command.)
This guide explains how to create a config file to use with the ingest template command so you can:
Organize and label your folders and files to map to a Flywheel project
Include/exclude files and folders for upload
If necessary, de-identify your data using a de-ID profile
Instruction Steps
Below is an example of the ingest template command and a config file. See the links in the Resources section to learn about of the ingest config file in more detail.
###### Template and Group/Project Settings#####template:-pattern:"{project}"-pattern:"{subject}"-pattern:"{session}"-pattern:"{acquisition}"scan:dicom###### Includes/excludes directories or file types###### Patterns of directories to includeinclude-dirs:-"*-DCM"# Patterns of filenames to excludeexclude:-"*.txt"-"*.xml"###### De-Identification Settings#####deid-profile:customdeid-profiles:-name:customdicom:# What date offset to use, in number of daysdate-increment:-17# Remove all private tagsremove-private-tags:true# Set patient age from date of birthpatient-age-from-birthdate:true# Set patient age units as Yearspatient-age-units:Yfields:# Remove a dicom field (e.g.remove PatientID)-name:PatientIDremove:true# Increment a date field by -17 days-name:StudyDateincrement-date:true# One-Way hash a dicom field to a unique string-name:AccessionNumberhash:true