Skip to content

Commit

Permalink
Added index files
Browse files Browse the repository at this point in the history
  • Loading branch information
kjaisingh committed Dec 3, 2024
1 parent 5876c27 commit 9135045
Showing 1 changed file with 31 additions and 25 deletions.
56 changes: 31 additions & 25 deletions wdl/CombineVcfsForMakeGq.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ version 1.0

workflow CombineVcfsForMakeGq {
input {
Array[String] sample_ids # Array of sample identifiers
Array[File] vcf_paths # Array of input VCF file paths (same order as sample_ids)
Array[String] sample_ids # Array of sample identifiers
Array[File] vcf_paths # Array of input VCF file paths (same order as sample_ids)
File ploidy_table # Path to the ploidy table file
File contigs_fai # Path to the contigs FASTA index file
File ref_fasta # Path to the reference FASTA file
File ref_fasta_fai # Path to the reference FASTA index file
File ref_dict # Path to the reference dictionary
Int min_size # Minimum size for standardization
File ploidy_table # Path to the ploidy table file
File contigs_fai # Path to the contigs FASTA index file
File ref_fasta # Path to the reference FASTA file
File ref_fasta_fai # Path to the reference FASTA index file
File ref_dict # Path to the reference dictionary
Int min_size # Minimum size for standardization
String sv_pipeline_docker # Docker image path for GATK-SV
String gatk_docker # Docker image path for GATK
String sv_pipeline_docker # Docker image path for GATK-SV
String gatk_docker # Docker image path for GATK
}

scatter (idx in range(length(sample_ids))) {
Expand Down Expand Up @@ -43,15 +43,17 @@ workflow CombineVcfsForMakeGq {
}

Array[File] formatted_vcfs = FormatVcfForGatk.formatted_vcf
Array[File] formatted_vcf_indices = FormatVcfForGatk.formatted_vcf_index

call SVCluster {
input:
formatted_vcfs = formatted_vcfs,
ploidy_table = ploidy_table,
ref_fasta = ref_fasta,
ref_fasta_fai = ref_fasta_fai,
ref_dict = ref_dict,
gatk_docker = gatk_docker
formatted_vcfs = formatted_vcfs,
formatted_vcf_indices = formatted_vcf_indices,
ploidy_table = ploidy_table,
ref_fasta = ref_fasta,
ref_fasta_fai = ref_fasta_fai,
ref_dict = ref_dict,
gatk_docker = gatk_docker
}

output {
Expand All @@ -69,15 +71,15 @@ task StandardizeVcf {
}

command <<<
set -eu -o pipefail

svtk standardize \
--sample-names ~{sample_id} \
--contigs ~{contigs_fai} \
--min-size ~{min_size} \
~{vcf_path} \
~{sample_id}.std_dragen.vcf.gz \
dragen
set -eu -o pipefail

svtk standardize \
--sample-names ~{sample_id} \
--contigs ~{contigs_fai} \
--min-size ~{min_size} \
~{vcf_path} \
~{sample_id}.std_dragen.vcf.gz \
dragen
>>>

output {
Expand Down Expand Up @@ -133,10 +135,13 @@ task FormatVcfForGatk {
--out ~{sample_id}.formatted.vcf.gz \
--ploidy-table ~{ploidy_table} \
--fix-end

tabix -p vcf ~{sample_id}.formatted.vcf.gz
>>>

output {
File formatted_vcf = "~{sample_id}.formatted.vcf.gz"
File formatted_vcf_index = "~{sample_id}.formatted.vcf.gz.tbi"
}

runtime {
Expand All @@ -150,6 +155,7 @@ task FormatVcfForGatk {
task SVCluster {
input {
Array[File] formatted_vcfs
Array[File] formatted_vcf_indices
File ploidy_table
File ref_fasta
File ref_fasta_fai
Expand Down

0 comments on commit 9135045

Please sign in to comment.