code: def set_confound_pipeline(self, confound_pipeline):
          
  
          self.add_history(inspect.stack()[0][3], locals(), 1)
  
          if not os.path.exists(self.BIDS_dir + '/derivatives/' + confound_pipeline):
              print('Specified direvative directory not found.')
              self.get_pipeline_alternatives()
          else:
              # Todo: perform check that pipeline is valid
              self.confound_pipeline = confound_pipeline
docs: There may be times when the pipeline is updated (e.g. teneto) but you want the confounds from the preprocessing pipieline (e.g. fmriprep).
          To do this, you set the confound_pipeline to be the preprocessing pipeline where the confound files are.
  
          Parameters
          ----------
  
          confound_pipeline : str
              Directory in the BIDS_dir where the confounds file is.