Skip to content

Logo Logo

File Types in Flywheel

Introduction

In Flywheel specific file types are defined, and assigned to a given file during import/upload by virtue of that file's extension. For example, if you import a file with an extension of ".nii", or ".nii.gz", Flywheel will automatically "type" that file as a NIfTI file.

Instruction Steps

Updating File Type

To update the file type via the File Information dialog, click on the line item menu icon, select Information, then click into the text field to rename the file (where the current name displays). The new name will take effect when clicking the save button on the File Information dialog.

Modify_File_Type_animated.gif

You can also update the file type inline by clicking on the file type.

Screen_Shot_2022-06-07_at_1.53.52_PM.png

Clicking directly on the file type opens a dropdown box where you can select the respective type that they need to update for that individual file.

Making use of File Type

By virtue of having a type a given file will be findable using custom searches or finder expressions that reference file type.

Flywheel also uses file type to provide the user with options for which data you want to be part of a given download. Type information is used in this context with the Web UI, SDK, and CLI.

Web UI

Within the Web UI, when you download a given container you can choose which file types are downloaded.

Screen_Shot_2019-11-05_at_9.31.07_AM.png

Command-line Interface

Using the CLI you can choose to *include* only nifti, bvec, and bval file types in your download, like so:

fw download [source-path] -i nifti -i bvec -i bval

File Types

The full list of known file types, and associated extensions is shown below.

{
 "bval": [ ".bval", ".bvals" ],
 "bvec": [ ".bvec", ".bvecs" ],
 "dicom": [ ".dcm", ".dcm.zip", ".dicom.zip", ".dicom"],
 "eeg": [ ".eeg.zip" ],
 "eeg data": [ ".eeg" ],
 "eeg marker": [ ".vmrk" ],
 "eeg header": [ ".vhdr"],
 "gephysio": [ ".gephysio.zip" ],
 "HDF5": [ ".h5", ".hdf5" ],
 "MATLAB data": [ ".mat" ],
 "MGH data": [ ".mgh", ".mgz", ".mgh.gz" ],
 "nifti": [ ".nii.gz", ".nii", ".nifti"],
 "ParaVision": [ ".pv5.zip", ".pv6.zip" ],
 "parrec": [ ".parrec.zip", ".par-rec.zip" ],
 "pfile": [ ".7.gz", ".7", ".7.zip" ],
 "PsychoPy data": [ ".psydat" ],
 "qa": [ ".qa.png", ".qa.json", ".qa.html" ],

 "archive": [ ".zip", ".tbz2", ".tar.gz", ".tbz", ".tar.bz2", ".tgz", ".tar", ".txz", ".tar.xz" ],
 "document": [ ".docx", ".doc" ],
 "image": [ ".jpg", ".tif", ".jpeg", ".gif", ".bmp", ".png", ".tiff" ],
 "markup": [ ".html", ".htm", ".xml" ],
 "markdown": [ ".md", ".markdown" ],
 "log": [ ".log" ],
 "pdf": [ ".pdf" ],
 "presentation": [ ".ppt", ".pptx" ],
 "source code": [ ".c", ".py", ".cpp", ".js", ".m", ".json", ".java", ".php", ".css", ".toml", ".yaml", ".yml", ".sh" ],
 "spreadsheet": [ ".xls", ".xlsx" ],
 "tabular data": [ ".csv.gz", ".csv", ".tsv.gz", ".tsv" ],
 "text": [ ".txt" ],
 "video": [ ".mpeg", ".mpg", ".mov", ".mp4", ".m4v", ".mts" ],

 "3D Object": [ ".obj" ],
 "Material Library": [ ".mtl" ],
 "Cinema 4D Model": [ ".c4d" ],
 "CG Resource": [ ".cgresource.zip" ],  
 "ITK MetaIO Header": [".mhd"],  
 "Raw": [".raw"],  
 "Zeiss czi": [".czi"],  
 "Leica lif": [".lif"],  
 "Leica lifext": [".lifext"],  
 "Nikon nd2": [".nd2"]  
}