From a30f03e6651ff336a073d6e9894c3fb2b59bf9f1 Mon Sep 17 00:00:00 2001 From: Henrik Stranneheim Date: Wed, 11 Sep 2019 09:54:57 +0200 Subject: [PATCH] fix(vcfparser): Fixed bug with outfile path when mitochondria contig is not part of gene panel --- CHANGELOG.md | 3 +++ lib/MIP/Constants.pm | 2 +- lib/MIP/Recipes/Analysis/Mip_vcfparser.pm | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1356f4ee0..75ac512a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +##[7.1.4] +- Fix bug in outfile_path when mitochondria contig is not part of gene panel + ## [7.2.3] - Increased sv_varianteffectpredictor memory parameter 8 -> 9 Gb diff --git a/lib/MIP/Constants.pm b/lib/MIP/Constants.pm index c9e444904..3698ecf24 100644 --- a/lib/MIP/Constants.pm +++ b/lib/MIP/Constants.pm @@ -60,7 +60,7 @@ BEGIN { ## Constants ## Set MIP version ## Constants -Readonly our $MIP_VERSION => q{v7.1.3}; +Readonly our $MIP_VERSION => q{v7.1.4}; ## Cli Readonly our $MOOSEX_APP_SCEEN_WIDTH => 160; diff --git a/lib/MIP/Recipes/Analysis/Mip_vcfparser.pm b/lib/MIP/Recipes/Analysis/Mip_vcfparser.pm index fca67e992..4e0e18e40 100644 --- a/lib/MIP/Recipes/Analysis/Mip_vcfparser.pm +++ b/lib/MIP/Recipes/Analysis/Mip_vcfparser.pm @@ -27,7 +27,7 @@ BEGIN { use base qw{ Exporter }; # Set the version for version checking - our $VERSION = 1.15; + our $VERSION = 1.16; # Functions and variables which can be optionally exported our @EXPORT_OK = @@ -1224,7 +1224,6 @@ sub _add_all_mt_var_from_research_to_clinical { strict_type => 1, }, outfile_path => { - defined => 1, required => 1, store => \$outfile_path, strict_type => 1, @@ -1233,6 +1232,8 @@ sub _add_all_mt_var_from_research_to_clinical { check( $tmpl, $arg_href, 1 ) or croak q{Could not parse arguments!}; + return if ( not defined $outfile_path ); + if ( $add_all_mt_var and $contig =~ / MT | M /sxm ) { say {$FILEHANDLE} q{## Replacing clinical MT variants with research MT variants};