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
add prefix
  • Loading branch information
hangsuUNC committed Jan 22, 2024
commit a38d1aeb4cfa2835f02963351e0ea5c50218ea80
7 changes: 4 additions & 3 deletions wdl/pipelines/PacBio/Utility/MergePhasedVCF.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ workflow MergePhasedVCF{
}
call FindFiles{input: sampleFolder = SampleFolder}
scatter (bcf_file in FindFiles.vcfFiles){
call preprocess{input: bcf = bcf_file}
call preprocess{input: bcf = bcf_file, prefix = basename(bcf_file)}
}

call VU.CollectDefinitions as CD {
Expand Down Expand Up @@ -64,10 +64,11 @@ command {
task preprocess {
input {
File bcf
String prefix
}

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

Expand All @@ -77,7 +78,7 @@ command {

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

}
Expand Down
Loading