Skip to content

Commit

Permalink
fix: mehari wrapper vcf preprocessing does not actually fix info svle…
Browse files Browse the repository at this point in the history
…n header (#450) (#451)
  • Loading branch information
Nicolai-vKuegelgen authored Oct 11, 2023
1 parent 46b2303 commit 55146c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snappy_wrappers/wrappers/mehari/annotate_strucvars/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
bcftools sort -o $TMPDIR/fixed_bnd_to_inv.$num.vcf $TMPDIR/fixed_bnd_to_inv_unsorted.$num.vcf
# Fixup SVLEN=1 to SVLEN=.
sed -i -e 's/ID=SVLEN,Number=1/ID=SVLEN,Number=./g' $TMPDIR/fixed_bnd_to_inv_unsorted.$num.vcf
sed -i -e 's/ID=SVLEN,Number=1/ID=SVLEN,Number=./g' $TMPDIR/fixed_bnd_to_inv.$num.vcf
# Fixup MELT header
sed -i -e "s/seperated by '..'/separated by '\\\\\\\\|'/" $TMPDIR/fixed_bnd_to_inv_unsorted.$num.vcf
sed -i -e "s/seperated by '..'/separated by '\\\\\\\\|'/" $TMPDIR/fixed_bnd_to_inv.$num.vcf
# Add the missing "GT" tag
echo '##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">' \
Expand Down

0 comments on commit 55146c7

Please sign in to comment.