Skip to content

Commit

Permalink
Merge pull request #59 from biocore/snakemake
Browse files Browse the repository at this point in the history
Snakefile: create outdirs if do not exist
  • Loading branch information
qiyunzhu authored Aug 8, 2017
2 parents 81102ae + 2701f12 commit dd01070
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions microprot/snakemake/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ try:
except KeyError:
pass

# create output directories if they don't exist
for _out_dir_name in ['PDB', 'CM', 'AB', 'log', 'pkg']:
_out_dir_path = '%s/%s' % (config['MICROPROT_OUT'], _out_dir_name)
if not exists(_out_dir_path):
makedirs(_out_dir_path)

SEQ_ids = snakemake_helpers.parse_inputs(inp_fp=config['inp_fp'],
inp_from=config['inp_from'],
Expand Down

0 comments on commit dd01070

Please sign in to comment.