Skip to content

Flywheel docs

Setup

  • Get fw cli and api key from your profile page
  • Install the flywheel sdk, maybe using a python virtualenv
# authenticate
fw auth fw.mrrc.upmc.edu:XXXXXXXXXXX
# creates eg. ~/.config/flywheel/user.json

python -m virtualenv .venv
source .venv/bin/activate
pip install flywheel-sdk

MRIQC metrics

import flywheel # flywheel-sdk
fw = flywheel.Client() # auto login with ~/.config/flywheel/user.json
prisma1qa = fw.projects(filter="label=Prisma1QA")[0]
acqs = fw.acquisitions(filter=f"parents.project={prisma1qa.id},label=ep2d_bold_p2_s2_5min")