Skip to main content

Quickly collect and inspect BIDS data on Flywheel

Project description

FlyBIDS

Quickly build and inspect Flywheel BIDS data.

Installation

  • Development version: Clone this repo and install the package with pip
git clone https://github.com/PennLINC/FlyBIDS.git
cd FlyBIDS
pip install -e .
  • Stable Releases:

Download from Pip:

pip install FlyBIDS

Examples

>>> from FlyBIDS.BIDSLayout import FlyBIDSLayout
>>> fbl = FlyBIDSLayout('gear_testing', subjects=['sub-1832999514', 'sub-2216595430'])
>>> print(fbl)
FlyBIDS Layout: Project 'gear_testing' | Subjects: 2 | Sessions: 3
>>> as_df = fbl.to_df()
>>> print(as_df)
template                                           Filename  \
0          anat_file                 sub-1832999514_ses-PNC1_T1w.nii.gz
1          func_file  sub-1832999514_ses-PNC1_task-rest_acq-singleba...
2          anat_file                 sub-1832999514_ses-PNC2_T1w.nii.gz
3   acquisition_file          sub-1832999514_ses-PNC2_task-idemo.nii.gz
:       :       :       :       :         :         :           :
12         NaN   False  5ebee86c4425360a219e6670   NaN  NaN  NaN  2216595430
13        bold   False  5ebee86e4425360a219e6672  rest       NaN  2216595430
14         NaN   False  5ebee8714425360a219e6673   NaN  NaN  NaN  2216595430
15   phasediff   False  5ebee87244253609f99e681a   NaN  NaN       2216595430
>>> fbl.get_files(RepetitionTime=3)
['sub-1832999514_ses-PNC1_task-rest_acq-singleband_bold.nii.gz',
 'sub-1832999514_ses-PNC2_task-idemo.nii.gz',
 'sub-1832999514_ses-PNC2_task-rest_acq-singleband_bold.nii.gz',
 'sub-1832999514_ses-PNC2_task-frac2back.nii.gz',
 'sub-2216595430_ses-PNC1_task-frac2back_run-02.nii.gz',
 'sub-2216595430_ses-PNC1_task-frac2back_run-01.nii.gz',
 'sub-2216595430_ses-PNC1_task-rest_acq-singleband_bold.nii.gz',
 'sub-2216595430_ses-PNC1_task-idemo.nii.gz']

>>> fbl.get_metadata('EchoTime', filename='sub-1832999514_ses-PNC1_task-rest_acq-singleband_bold.nii.gz')
{'EchoTime': [0.032, 0.00351, 0.00269, 0.00527, 0.00667]}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FlyBIDS-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file FlyBIDS-0.0.2.tar.gz.

File metadata

  • Download URL: FlyBIDS-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for FlyBIDS-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4fe4c0981086256d3a5afe0405c9fc56035e5effd0b91c31fcdd009cfa0b0d6b
MD5 85ffe2d99e5fba1617b8a66a0e70139d
BLAKE2b-256 3d9b3b86f7271fe561a65c33d8dbfadccafa5ea5b9a3e182a5523679c9a34507

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page