Skip to content

Commit

Permalink
sample id
Browse files Browse the repository at this point in the history
  • Loading branch information
shadizaheri committed Sep 15, 2024
1 parent 5955ce5 commit 9a4627e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions wdl/malaria/NormalizeVCF.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ workflow NormalizeVCF {
input {
File input_vcf
File reference_fa
Int disk_size_gb = 20 # Default disk size in GB
Int memory_gb = 4 # Default memory size in GB
Int cpu_cores = 1 # Default number of CPU cores
String sample_name # New input for sample name
Int disk_size_gb = 20
Int memory_gb = 4
Int cpu_cores = 1
}

call RemoveHAPCOMP {
Expand All @@ -29,6 +30,7 @@ workflow NormalizeVCF {
input:
input_vcf = RemoveHAPDOM.output_vcf,
reference_fa = reference_fa,
sample_name = sample_name,
disk_size_gb = disk_size_gb,
memory_gb = memory_gb,
cpu_cores = cpu_cores
Expand Down Expand Up @@ -83,31 +85,32 @@ task RemoveHAPDOM {
docker: "us.gcr.io/broad-dsp-lrma/bcftools_htslib:v9152024"
memory: "~{memory_gb}G"
cpu: "~{cpu_cores}"
disks: "local-disk ~{disk_size_gb} SSD"
disks: "local-disk ~{disk_size_gb} HDD"
}
}

task NormalizeVCFFile {
input {
File input_vcf
File reference_fa
String sample_name # Input for the sample name
Int disk_size_gb
Int memory_gb
Int cpu_cores
}

command {
bcftools norm -m -any --atom-overlaps . -f ~{reference_fa} ~{input_vcf} | bgzip -c > output.norm.vcf.gz
bcftools norm -m -any --atom-overlaps . -f ~{reference_fa} ~{input_vcf} | bgzip -c > ~{sample_name}.norm.vcf.gz
}

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

runtime {
docker: "us.gcr.io/broad-dsp-lrma/bcftools_htslib:v9152024"
memory: "~{memory_gb}G"
cpu: "~{cpu_cores}"
disks: "local-disk ~{disk_size_gb} HDD"
disks: "local-disk ~{disk_size_gb} SSD"
}
}

0 comments on commit 9a4627e

Please sign in to comment.