Title: Add subjects to collection excluding those in a CSV
Date: 6 April 2020
Description:

Install and import dependencies

Flywheel API Key and Client

Get a API_KEY. More on this in the Flywheel SDK doc here.

Instantiate the Flywheel API client

Show Flywheel logging information

Constants

Main script

Get or create the collection

Get find first project with that label

CSV parsing

Load the csv file and extract subject label to be excluded

Add subject to collection unless listed in csv

Loops through the subjects in the project and add to collection unless the subject.label is part of the subject to be excluded (e.g. in subjects_to_exclude).