Skip to content

Commit

Permalink
feat: bump and fix Mehari for SVs in varfish_export (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Sep 18, 2023
1 parent 98825db commit 0ca23f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions snappy_wrappers/wrappers/mehari/annotate_strucvars/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
--output-vcf $TMPDIR/fixed_bnd_to_inv_unsorted.$num.vcf
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
# Fixup MELT header
sed -i -e "s/seperated by '..'/separated by '\\\\\\\\|'/" $TMPDIR/fixed_bnd_to_inv_unsorted.$num.vcf
# Add the missing "GT" tag
echo '##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">' \
> $TMPDIR/header.gt.txt
Expand Down
2 changes: 1 addition & 1 deletion snappy_wrappers/wrappers/mehari/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- bcftools >=1.9
- htslib >=1.9
- samtools >=1.9
- mehari ==0.6.2
- mehari ==0.7.0
- jq
- vcfpy
- pysam

0 comments on commit 0ca23f6

Please sign in to comment.