def __init__(self, BIDS_dir, pipeline=None, pipeline_subdir=None, parcellation=None, bids_tags=None, bids_suffix=None, bad_subjects=None, confound_pipeline=None, raw_data_exists=True, njobs=None):
        """
        Parameters
        ----------

        BIDS_dir : str
            string to BIDS directory
        pipeline : str
            the directory that is in the BIDS_dir/derivatives/<pipeline>/
        pipeline_subdir : str, optional
            the directory that is in the BIDS_dir/derivatives/<pipeline>/sub-<subjectnr/[ses-<sesnr>]/func/<pipeline_subdir>
        parcellation : str, optional
            parcellation name
        space : str, optional
            different nomralized spaces
        subjects : str or list, optional
            can be part of the BIDS file name
        sessions : str or list, optional
            can be part of the BIDS file name
        runs : str or list, optional
            can be part of the BIDS file name
        tasks : str or list, optional
            can be part of the BIDS file name
        bad_subjects : list or str, optional
            Removes these subjects from the analysis
        confound_pipeline : str, optional
            If the confounds file is in another derivatives directory than the pipeline directory, set it here.
        raw_data_exists : bool, optional
            Default is True. If the unpreprocessed data is not present in BIDS_dir, set to False. Some BIDS funcitonality will be lost.
        njobs : int, optional
            How many parallel jobs to run. Default: 1. The set value can be overruled in individual functions.
        """
        self.add_history(inspect.stack()[0][3], locals(), 1)
        self.contact = []

        if raw_data_exists:
            self.BIDS = BIDSLayout(BIDS_dir, validate=False)
        else: 
            self.BIDS = None
            
        self.BIDS_dir = os.path.abspath(BIDS_dir)
        self.pipeline = pipeline
        self.confound_pipeline = confound_pipeline
        self.raw_data_exists = raw_data_exists
        if not pipeline_subdir:
            self.pipeline_subdir = ''
        else:
            self.pipeline_subdir = pipeline_subdir
        self.parcellation = parcellation
        if self.BIDS_dir[-1] != '/':
            self.BIDS_dir = self.BIDS_dir + '/'

        if not bids_suffix:
            self.bids_suffix = ''
        else:
            self.bids_suffix = bids_suffix

        if bad_subjects == None:
            self.bad_subjects = None
        else:
            self.set_bad_subjects(bad_subjects)

        if not njobs:
            self.njobs = 1
        else:
            self.njobs = njobs
        self.bad_files = []
        self.confounds = None

        self.set_bids_tags()
        if bids_tags:
            self.set_bids_tags(bids_tags)

        # Set data variables to Nones
        self.tvc_data_ = []
        self.parcellation_data_ = []
        self.participent_data_ = []
        self.temporalnetwork_data_ = []
        self.fc_data_ = []
        self.tvc_trialinfo_ = []
        self.parcellation_trialinfo_ = []
        self.temporalnetwork_trialinfo_ = []
        self.fc_trialinfo_ = []
def __init__ ( self , BIDS_dir , pipeline = None , pipeline_subdir = None , parcellation = None , bids_tags = None , bids_suffix = None , bad_subjects = None , confound_pipeline = None , raw_data_exists = True , njobs = None ) : self . add_history ( inspect . stack ( ) [ 0 ] [ 3 ] , locals ( ) , 1 ) self . contact = [ ] if raw_data_exists : self . BIDS = BIDSLayout ( BIDS_dir , validate = False ) else : self . BIDS = None self . BIDS_dir = os . path . abspath ( BIDS_dir ) self . pipeline = pipeline self . confound_pipeline = confound_pipeline self . raw_data_exists = raw_data_exists if not pipeline_subdir : self . pipeline_subdir = '' else : self . pipeline_subdir = pipeline_subdir self . parcellation = parcellation if self . BIDS_dir [ - 1 ] != '/' : self . BIDS_dir = self . BIDS_dir + '/' if not bids_suffix : self . bids_suffix = '' else : self . bids_suffix = bids_suffix if bad_subjects == None : self . bad_subjects = None else : self . set_bad_subjects ( bad_subjects ) if not njobs : self . njobs = 1 else : self . njobs = njobs self . bad_files = [ ] self . confounds = None self . set_bids_tags ( ) if bids_tags : self . set_bids_tags ( bids_tags ) self . tvc_data_ = [ ] self . parcellation_data_ = [ ] self . participent_data_ = [ ] self . temporalnetwork_data_ = [ ] self . fc_data_ = [ ] self . tvc_trialinfo_ = [ ] self . parcellation_trialinfo_ = [ ] self . temporalnetwork_trialinfo_ = [ ] self . fc_trialinfo_ = [ ]
Parameters
        ----------

        BIDS_dir : str
            string to BIDS directory
        pipeline : str
            the directory that is in the BIDS_dir/derivatives/<pipeline>/
        pipeline_subdir : str, optional
            the directory that is in the BIDS_dir/derivatives/<pipeline>/sub-<subjectnr/[ses-<sesnr>]/func/<pipeline_subdir>
        parcellation : str, optional
            parcellation name
        space : str, optional
            different nomralized spaces
        subjects : str or list, optional
            can be part of the BIDS file name
        sessions : str or list, optional
            can be part of the BIDS file name
        runs : str or list, optional
            can be part of the BIDS file name
        tasks : str or list, optional
            can be part of the BIDS file name
        bad_subjects : list or str, optional
            Removes these subjects from the analysis
        confound_pipeline : str, optional
            If the confounds file is in another derivatives directory than the pipeline directory, set it here.
        raw_data_exists : bool, optional
            Default is True. If the unpreprocessed data is not present in BIDS_dir, set to False. Some BIDS funcitonality will be lost.
        njobs : int, optional
            How many parallel jobs to run. Default: 1. The set value can be overruled in individual functions.