Skip to content

Commit

Permalink
Fixed bug in batch_extract_gvcf_variants
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaddis committed Oct 30, 2024
1 parent 7123ffd commit 399b4ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions t1dgrs2_pipeline/v2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ WORKDIR /data
RUN chown -R docker:staff /data

ENTRYPOINT [ "/opt/entrypoint.sh" ]

8 changes: 4 additions & 4 deletions t1dgrs2_pipeline/v2.0/scripts/batch_extract_gvcf_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def get_running_workflows():
files = os.listdir(control_gvcf_dir)
files_with_paths = [control_gvcf_dir + file for file in files]
control_files_to_process = dict(zip(files, files_with_paths))

# Merge gvcf lists
files_to_process = sample_files_to_process | control_files_to_process
files_to_process = sample_files_to_process | control_files_to_process
else:
files_to_process = sample_files_to_process.copy()

# Loop over all files
file_plink_merge_list = "{}plink_merge_list.txt".format(output_dir)
Expand All @@ -132,7 +132,7 @@ def get_running_workflows():
if "md5" in file or "tbi" in file:
continue

if control_gvcf_dir in path:
if control_gvcf_dir is not None and control_gvcf_dir in path:
result = re.search(r'^(\S+).hard-filtered.gvcf.gz$', file)
else:
if args.sequencing_provider == 'revvity':
Expand Down

0 comments on commit 399b4ae

Please sign in to comment.