def update_run_status(self): """Update the status of runs on the run tracking board""" # Create a RunMonitor object to update the run tracking board from hugin.run_monitor import RunMonitor rm = RunMonitor(self.config) rm.run_folders = self.archive_folders rm.samplesheet_folders = [] # Loop over the runs and check whether all samples and projects have been transferred to the # analysis folder for run in rm.list_runs(): print("Checking run {}".format(run['name'])) if self.get_run_status(run): rm.set_run_completed(run) # Loop over the projects in the run and move them to the bcbb list # Note that this can cause the card to be moved back to sequencing by the run_monitor in case # the project is sequenced on multiple flowcells. Has no good solution at this moment. for project in run.get('projects',[]): self.add_project_card(project,BCBB_ANALYSIS_IN_PROGRESS)