Skip to content

Commit

Permalink
Small formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rklocke committed Nov 26, 2024
1 parent b9e2804 commit 2a8721e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions DI-435/find_vcfs_to_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def find_data(file_name, project_id):
describe=True
)
)

return files


Expand Down Expand Up @@ -265,7 +264,6 @@ def get_qc_files(b38_projects, start=None, end=None):
}
missing_projects.append(missing_project_info)
all_qc_files.append(qc_file)

print(len(all_qc_files), "QC files found in total")
print(len(b37_projects), "b37 projects found in total")

Expand Down Expand Up @@ -449,6 +447,7 @@ def get_sample_types(projects):
non_validation_samples_in_run.append(
instrument_id + "-" + sample_id
)

else:
all_validation_samples.append(
{
Expand Down
3 changes: 1 addition & 2 deletions DI-435/merge_VCF_AF.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ while IFS=$'\t' read -r _ field2 field3; do

done < "$input_file"

# Download VCFs in parallel
echo "Downloading files"
echo "${project_files[@]}" | tr ' ' '\n' | xargs -n 1 -P "${num_proc}" -I {} dx download --no-progress "{}"

Expand All @@ -97,7 +96,7 @@ find . -maxdepth 1 -name '*.vcf.gz' -print0 | xargs -0 -P "${num_proc}" -I{} bcf
# Indexing normalised VCFs
echo "Indexing normalised VCFs"
cd norm || exit
find . -maxdepth 1 -name '*.vcf.gz' -print0 | xargs -0 -P "${num_proc}" -I{} bcftools index -f "{}"
echo *vcf.gz | tr ' ' '\n' | xargs -n 1 -P "${num_proc}" -I {} bcftools index -f "{}"

# Merging normalised VCFs
echo "Collating normalised VCFs"
Expand Down

0 comments on commit 2a8721e

Please sign in to comment.