datahipy.handlers.participants module

Manage BIDS participants using BIDS Manager.

class datahipy.handlers.participants.ParticipantHandler(dataset_path=None, input_path=None)[source]

Bases: object

Class to represent the handler of a dataset’s participant with utility functions.

static create_data2import(ds_obj=None, input_data=None)[source]

Create a data2import object.

This object will be used to import data in the BIDS dataset.

Parameters

ds_objBIDS Manager BidsDataset object

The BIDS Manager object representing a BIDS dataset.

input_datadict

The input_data dictionary containing the data to import in the BIDS dataset.

Returns

data2importBIDS Manager Data2Import object

The BIDS Manager object representing the data to import in the BIDS dataset.

static dump_output_file(output_data=None, output_file=None)[source]

Dump output_data dict in a JSON file.

static find_subject_dict(ds_obj=None, subject=None)[source]

Find the subject dict in the parsed BIDS dataset object.

static load_input_data(input_data)[source]

Load the input_data JSON file.

sub_delete(input_data=None)[source]

Delete a subject from an already existing BIDS dataset.

sub_delete_file(input_data=None)[source]

Delete data files from /raw and /source.

sub_edit_clinical(input_data=None)[source]

Update subject clinical info in BIDS dataset.

sub_get(input_data=None, output_file=None)[source]

Get info of a subject.

sub_import(input_data=None)[source]

Import subject(s) data into a BIDS dataset.