Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangsu phasing #417

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ConvertHailMT
  • Loading branch information
hangsuUNC committed Jan 22, 2024
commit 78d6e67e69ff23695cb246005923b712ca7a907b
19 changes: 11 additions & 8 deletions wdl/pipelines/TechAgnostic/Utility/ConvertToHailMTT2T.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ workflow ConvertToHailMTT2T {
}

input {
File whole_genome_vcf
File whole_genome_vcf_tbi
File bcf
File referencefa
File referencefai
String prefix
Expand All @@ -26,11 +25,14 @@ workflow ConvertToHailMTT2T {
}

String outdir = sub(gcs_out_root_dir, "/$", "") + "/Hail/~{prefix}"

call preprocess{
input:
bcf = bcf
}
# Gather across multiple input gVCFs
call Hail.ConvertToHailMT as RunConvertToHailMT {
input:
gvcf = whole_genome_vcf,
gvcf = preprocess.whole_genome_vcf,
tbi = whole_genome_vcf_tbi,
prefix = prefix,
outdir = outdir,
Expand All @@ -52,21 +54,22 @@ workflow ConvertToHailMTT2T {
task preprocess {
input {
File bcf
String prefix
}

command {
bcftools view -Oz -o tmp.vcf.gz ~{bcf}
bcftools view -Oz -o ~{prefix}.vcf.gz ~{bcf}
# bcftools sort -o whole_genome_sorted.vcf.gz tmp.vcf.gz
bcftools index --tbi --force tmp.vcf.gz
bcftools index --tbi --force ~{prefix}.vcf.gz



}

output {
# Output the list of .bam files
File whole_genome_vcf = "tmp.vcf.gz"
File whole_genome_vcf_tbi = "tmp.vcf.gz.tbi"
File whole_genome_vcf = "~{prefix}.vcf.gz"
File whole_genome_vcf_tbi = "~{prefix}.vcf.gz.tbi"

}

Expand Down
Loading