Skip to content

Commit

Permalink
better check of config
Browse files Browse the repository at this point in the history
  • Loading branch information
Panciera committed Jan 15, 2021
1 parent ec80542 commit 2146a5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ngs_mapper/runsample.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,11 @@ def select_keys(d, keys):
logger.critical( "{0} did not exit sucessfully".format(cmd.format(**cmd_args)) )
rets.append( r )
# Variant Calling
from ngs_mapper.config import load_config
bc_cfg = load_config(cmd_args['config'])['base_caller']
from ngs_mapper.config import load_config, load_default_config
if cmd_args['config']:
bc_cfg = load_config(cmd_args['config'])['base_caller']
else:
bc_cfg = load_default_config()['base_caller']
lofreq = bc_cfg['lofreq']['default']
lofreq_options = bc_cfg['lofreq_options']['default'] or ''
if lofreq:
Expand Down

0 comments on commit 2146a5f

Please sign in to comment.