Skip to content

Commit

Permalink
add .tbi
Browse files Browse the repository at this point in the history
  • Loading branch information
shadizaheri committed Sep 15, 2024
1 parent af3c2ca commit 0bfb471
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wdl/malaria/NormalizeVCF.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ workflow NormalizeVCF {
input {
File input_vcf
File reference_fa
String sample_name
Int disk_size_gb = 30
Int memory_gb = 8
Int cpu_cores = 4
String sample_name # New input for sample name
Int disk_size_gb = 50
Int memory_gb = 16
Int cpu_cores = 8
}

call RemoveHAPCOMP {
Expand Down Expand Up @@ -104,13 +104,13 @@ task NormalizeVCFFile {
# Normalize the VCF
bcftools norm -m -any --atom-overlaps . -f ~{reference_fa} ~{input_vcf} | bgzip -c > ~{sample_name}.norm.vcf.gz

# Index the normalized VCF
bcftools index ~{sample_name}.norm.vcf.gz
# Index the normalized VCF with tabix (.tbi)
tabix -p vcf ~{sample_name}.norm.vcf.gz
}

output {
File output_vcf = "~{sample_name}.norm.vcf.gz"
File output_vcf_index = "~{sample_name}.norm.vcf.gz.csi"
File output_vcf_index = "~{sample_name}.norm.vcf.gz.tbi"
}

runtime {
Expand Down

0 comments on commit 0bfb471

Please sign in to comment.