def _paste_pipelines(self, config_file): """merge intermediate pipelines.""" pipeline_script = os.path.join(self.args.working_dir, self.args.pipeline_name + '.py') with open(pipeline_script, 'w') as ps: plumber = Plumber(ps, None) plumber.paste_pipelines(self.pipelines, config_file)
def make_script(self, sample_id): """run the plumber and make a python script for the pipeline.""" with open(self.pipeline_script, 'w') as ps: plumber = Plumber(ps, self.wf) plumber.make_script(sample_id)