Mercurial > repos > rv43 > tomo
comparison msnc_tools.py @ 7:845270a96464 draft
"planemo upload for repository https://github.com/rolfverberg/galaxytools commit a08ed1264ea7b7c878ba96801e4b27ef621fb6be"
author | rv43 |
---|---|
date | Thu, 07 Apr 2022 21:09:58 +0000 |
parents | baf9f5eef128 |
children | ef5c2f7b49ec |
comparison
equal
deleted
inserted
replaced
6:baf9f5eef128 | 7:845270a96464 |
---|---|
617 | 617 |
618 # Ensure config file exists | 618 # Ensure config file exists |
619 if not os.path.isfile(config_file): | 619 if not os.path.isfile(config_file): |
620 logging.error(f'Unable to load {config_file}') | 620 logging.error(f'Unable to load {config_file}') |
621 return | 621 return |
622 print(f'\nLoading {config_file}\n') | 622 |
623 | 623 # Load config file (for now for Galaxy, allow .dat extension) |
624 # Load config file | |
625 self.suffix = os.path.splitext(config_file)[1] | 624 self.suffix = os.path.splitext(config_file)[1] |
626 if self.suffix == '.yml' or self.suffix == '.yaml' or self.suffix == '.dat': | 625 if self.suffix == '.yml' or self.suffix == '.yaml' or self.suffix == '.dat': |
627 with open(config_file, 'r') as f: | 626 with open(config_file, 'r') as f: |
628 self.config = yaml.safe_load(f) | 627 self.config = yaml.safe_load(f) |
629 elif self.suffix == '.txt': | 628 elif self.suffix == '.txt': |