Browse Source

Add annotation

master
YaqingLiu 3 years ago
parent
commit
3e4726c22d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tasks/bcftools.wdl

+ 2
- 0
tasks/bcftools.wdl View File



for i in ${sep=" " vcf} for i in ${sep=" " vcf}
do do
echo "Processing:" $i
bcftools view $i -Oz -o /cromwell_root/tmp/bcftools/$(basename $i.gz) --threads $nt bcftools view $i -Oz -o /cromwell_root/tmp/bcftools/$(basename $i.gz) --threads $nt
bcftools index /cromwell_root/tmp/bcftools/$(basename $i.gz) -f --threads $nt bcftools index /cromwell_root/tmp/bcftools/$(basename $i.gz) -f --threads $nt
done done


echo "Start bcftools merge ..."
bcftools merge -m all -f PASS,. --force-samples /cromwell_root/tmp/bcftools/*.vcf.gz --threads $nt | bcftools plugin fill-AN-AC | bcftools filter -i 'SUM(AC)>1' > ${panel_id}_pon.vcf bcftools merge -m all -f PASS,. --force-samples /cromwell_root/tmp/bcftools/*.vcf.gz --threads $nt | bcftools plugin fill-AN-AC | bcftools filter -i 'SUM(AC)>1' > ${panel_id}_pon.vcf
>>> >>>



Loading…
Cancel
Save