This repo is for scripts relating to pulling scan metadata from Flywheel and uploading to Tableau.
Queries Flywheel to generate a csv of nifti files and associated metadata across a given project.
- Login to bblrepo1
module load python/3.9 DEV/fw-16.2.0
- Make sure Flywheel CLI credentials are set:
- To check login status:
fw status
- To login:
fw login <API KEY>
- To check login status:
- Navigate to this repo on bblrepo1:
cd /data/secure/lab/flywheel-tableau-metadata
- Run
python get_flywheel_metadata.py -p <PROJECT LABEL>
- Add -o flag to specify different output dir than CWD
- Ad -d flag to only query for scans created/uploaded on or after the given date.
To grab all scans from the GRMPY project:
python fw_tabulate_scans.py -p GRMPY_822831 -o ./data
To grab all scans created on or after 11/1/2020 from the GRMPY project:
python fw_tabulate_scans.py -p GRMPY_822831 -o ./data -t 2020-11-01