Skip to content

Commit

Permalink
Merge pull request #22 from KatSteinke/21-fix-configfile
Browse files Browse the repository at this point in the history
Fix handling of several optional arguments in `run_pipeline.py`
  • Loading branch information
KatSteinke authored May 31, 2024
2 parents 0a062b7 + 32a222f commit 831dec3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run_magician.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ def get_snake_cmd(input_file, target: str, profile_type: Optional[str] = DEFAULT
insert_size = args.insert_size
cluster_cmd = args.cluster
snake_cores = args.cores
snake_flags = args.snake_flags[0].split()
if args.workflow_config_file:
default_config_file = pathlib.Path(args.workflow_config_file).resolve()
snake_flags = []
if args.snake_flags:
snake_flags = args.snake_flags[0].split()
if args.config_file:
default_config_file = pathlib.Path(args.config_file).resolve()

snake_command = get_snake_cmd(community_file, target_result, profiletype, profilename,
read_length, insert_size,
Expand Down

0 comments on commit 831dec3

Please sign in to comment.