API
bidsaid.audit
Module for auditing directories.
Check availability of different files for each subject in the BIDS directory. |
bidsaid.files
Module for initializing and creating BIDS compliant files.
Generate a BIDs compliant filename. |
|
Create a BIDS compliant filename with required and optional entities. |
|
Gets entity value of a BIDS compliant filename. |
|
Generate a dataset description dictionary. |
|
Save a dataset description dictionary. |
|
Creates a basic dataframe for the "participants.tsv" file. |
|
Creates a basic dataframe for the "sub-{subject_ID}_sessions.tsv" file for a specific subject. |
bidsaid.events
Module containing classes for extracting timing information from Presentation and E-Prime logs.
Extract onsets, durations, and trial types from Presentation logs using a block design. |
|
Extract onsets, durations, trial types, reaction times, and responses from Presentation logs using an event design. |
|
Extract onsets, durations, and trial types from E-Prime logs using a block design. |
|
Extract onsets, durations, trial types, reaction times, and responses from E-Prime logs using an event design. |
bidsaid.logging
Module setting up a logger.
Sets up the logger. |
bidsaid.io
Module for input/output operations on NIfTI files and images.
Loads a NIfTI image. |
|
Compresses a ".nii" image to a ".nii.gz" image. |
|
Checks expected byte size and actual byte size of uncompressed NIfTI images. |
|
Use regex to get content in the source directory with specific patterns. |
|
Get header from a NIfTI image. |
|
Get the affine matrix from a NIfTI image. |
|
Replaces extension of a filename. |
bidsaid.path_utils
Utilities related to parsing or sorting filenames.
Determine if a string is a valid date based on format. |
|
Get date from the stem of a path. |
|
Get timestamp of file. |
|
Get creation date of a file |
|
Sort filenames based on acquisition sequence. |
bidsaid.metadata
Module containing functions to extract metadata information from NIfTIs.
Determines if a source image needs to be resampled. |
|
Determine the slice axis. |
|
Get metadata from a NIfTI header. |
|
Get the number of volumes from a 4D NIftI image. |
|
Get the image orientation. |
|
Returns the voxel coordinate axis (and position) of a given anatomical direction. |
|
Gets the number of slices from the header of a NIfTI image. |
|
Get the repetition time from the header of a NIfTI image. |
|
Create slice timing dictionary mapping the slice index to its acquisition time. |
|
Determines if |
|
Determines the manufacturer and model name of scanner. |
|
Infer the task based on the number of volumes in a 4D NIfTI image. |
|
Get the reconstruction matrix of the phase encoding axis. |
|
Compute the effective echo spacing for Philips 3T MRI. |
|
Compute the total readout time. |
bidsaid.parsers
Module containing functions to parse raw logs from stimulus Presentation and E-Prime 3 software.
Converts a file with an "edat3" extension to a text file. |
|
Loads E-Prime 3 log file as a Pandas Dataframe. |
|
Loads Presentation log file as a Pandas DataFrame. |
|
Gets the date and time from a Presentation logfile. |
bidsaid.qc
Module for quality control metrics and assessment of fMRI data.
Compute the number of dummy scans based on the number of "non_steady_state_outlier_XX" columns in an fMRIPrep confounds TSV file. |
|
Computes the framewise displacement using the Power (2012) formula: |
|
Create a censor mask where 0 indicates volumes to censor and 1 indicates volumes to keep. |
|
Merge multiple censor masks. |
|
Compute the mean and standard deviation of the consecutive censored volumes. |
|
Creates spike regressors that can be used to censor certain frames during regression. |
|
Computes number of censored volumes. |
|
Compute global signal and percent signal change from functional NIfTI image. |
bidsaid.simulate
Module for simulating NIfTI images and BIDS datasets.
Simulates a NIfTI image with random data within the MNI152 brain template. |
|
Generate a Simulated BIDS Dataset with fMRIPrep Derivatives. |