Skip to content

Commit

Permalink
Merge a56bb6d into 9789a2d
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed May 16, 2024
2 parents 9789a2d + a56bb6d commit 7a27eb9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions snappy_wrappers/wrappers/mehari/annotate_seqvars/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,31 @@
# Run actual tools --------------------------------------------------------------------------------
# Extract around BED file, if given.
# Extract around BED file, if given. Otherwise, "just" normalize.
if [[ -n "{export_config[path_exon_bed]}" ]] && [[ "{export_config[path_exon_bed]}" != "None" ]]; then
set -e
bcftools view \
-R {export_config[path_exon_bed]} \
{snakemake.input.vcf} \
| bcftools norm \
-m -any \
--force \
--fasta-ref {snakemake.config[static_data_config][reference][path]} \
| bcftools sort -T $TMPDIR \
| bcftools norm -d all \
| bgzip -c \
> $TMPDIR/tmp.vcf.gz
tabix -f $TMPDIR/tmp.vcf.gz
else
set -e
ln -sr {snakemake.input.vcf} $TMPDIR/tmp.vcf.gz
ln -sr {snakemake.input.vcf}.tbi $TMPDIR/tmp.vcf.gz.tbi
bcftools norm \
-m -any \
--force \
--fasta-ref {snakemake.config[static_data_config][reference][path]} \
{snakemake.input.vcf} \
| bcftools sort -T $TMPDIR \
| bgzip -c \
> $TMPDIR/tmp.vcf.gz
tabix -f $TMPDIR/tmp.vcf.gz
fi
# Perform Mehari sequence variant annotation.
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.19
- htslib==1.19.1
- samtools==1.19.2
- mehari==0.21.1
- mehari==0.25.5
- jq==1.7.1
- vcfpy==0.13.8
- pysam==0.22.0

0 comments on commit 7a27eb9

Please sign in to comment.