Skip to content

Commit

Permalink
Merge pull request #369 from pangenome/vg_again
Browse files Browse the repository at this point in the history
`vg deconstruct` 1.40.0 (again) and sort decomposed VCF file
  • Loading branch information
AndreaGuarracino authored Jan 23, 2024
2 parents 4abfa17 + e660954 commit 0317e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ RUN git clone https://github.com/marschall-lab/GFAffix.git \

RUN pip install multiqc==1.18

RUN wget https://github.com/vgteam/vg/releases/download/v1.53.0/vg && chmod +x vg && mv vg /usr/local/bin/vg
RUN wget https://github.com/vgteam/vg/releases/download/v1.40.0/vg && chmod +x vg && mv vg /usr/local/bin/vg

RUN git clone https://github.com/pangenome/vcfbub \
&& cd vcfbub \
Expand Down
7 changes: 3 additions & 4 deletions pggb
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,9 @@ if [[ $vcf_spec != false ]]; then
bgzip -c -@ $threads "$vcf" > "$vcf".gz
TEMPDIR=$(pwd) $timer -f "$fmt" vcfbub -l 0 -a $pop_length --input "$vcf".gz | TEMPDIR=$(pwd) $timer -f "$fmt" vcfwave -I 1000 -t $threads > "$vcf_decomposed_tmp"

#TODO: to remove when vcfwave will be bug-free
# The TYPE info sometimes is wrong/missing
# There are variants without the ALT allele
bcftools annotate -x INFO/TYPE "$vcf_decomposed_tmp" | awk '$5 != "."' > "$vcf_decomposed"
#TODO: remove "bcftools annotate" when vcfwave will be bug-free.
# The TYPE info sometimes is wrong/missing and there are variants without the ALT allele.
bcftools sort -T "$temp_dir" "$vcf_decomposed_tmp" | bcftools annotate -x INFO/TYPE | awk '$5 != "."' > "$vcf_decomposed"
rm "$vcf_decomposed_tmp" "$vcf".gz

bcftools stats "$vcf_decomposed" > "$vcf_decomposed".stats
Expand Down

0 comments on commit 0317e7f

Please sign in to comment.