Skip to content

Commit

Permalink
Fixed handling of control_gvcf_dir when not provided; Fixed assignmen…
Browse files Browse the repository at this point in the history
…t of workflow name
  • Loading branch information
ngaddis committed Oct 30, 2024
1 parent b68be8a commit 7123ffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion t1dgrs2_pipeline/v2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ WORKDIR /data
RUN chown -R docker:staff /data

ENTRYPOINT [ "/opt/entrypoint.sh" ]

4 changes: 2 additions & 2 deletions t1dgrs2_pipeline/v2.0/scripts/batch_extract_gvcf_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_running_workflows():
os.system("mkdir -p {}".format(gvcf_dir))
output_dir = args.output_dir if (args.output_dir[-1] == "/") else (args.output_dir + "/")
os.system("mkdir -p {}".format(output_dir))
if args.control_gvcf_dir is None:
if args.control_gvcf_dir is None or args.control_gvcf_dir == '':
control_gvcf_dir = None
else:
control_gvcf_dir = args.control_gvcf_dir if (args.control_gvcf_dir[-1] == "/") else (args.control_gvcf_dir + "/")
Expand Down Expand Up @@ -170,7 +170,7 @@ def get_running_workflows():
json.dump(wf_arguments, f)

# Submit the workflow for the current file
generate_name = sample_id + "-"
generate_name = sample_id.replace('_', '') + "-"
workflow = {
"namespace": "early-check-rs-1",
"serverDryRun": False,
Expand Down

0 comments on commit 7123ffd

Please sign in to comment.