Skip to content

Commit

Permalink
Merge pull request #130 from ens-lgil/release/91
Browse files Browse the repository at this point in the history
Fix missing ';' character when the INFO column of the input VCF conta…
  • Loading branch information
at7 committed Jan 24, 2018
2 parents 461fc6e + 0ca9972 commit b70ec49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/Constants.pm
Expand Up @@ -53,7 +53,7 @@ use warnings;
use base qw(Exporter);

our $VEP_VERSION = 91;
our $VEP_SUB_VERSION = 1;
our $VEP_SUB_VERSION = 2;

our @EXPORT_OK = qw(
@FLAG_FIELDS
Expand Down
5 changes: 3 additions & 2 deletions modules/Bio/EnsEMBL/VEP/OutputFactory/VCF.pm
Expand Up @@ -275,7 +275,8 @@ sub get_all_lines_by_InputBuffer {

# nuke existing CSQ field?
if($line->[7] =~ /(^|\;)$fieldname\=/ && !$self->{keep_csq}) {
$line->[7] =~ s/(^|\;)$fieldname\=\S+?(\;|$)(\S|$)/$3/;
$line->[7] =~ s/(^|\;)$fieldname\=\S+?(\;\S|$)/$2/;
$line->[7] =~ s/^\;//;
}
}

Expand Down Expand Up @@ -471,4 +472,4 @@ sub web_output_fh {
return $self->{_web_output_fh};
}

1;
1;

0 comments on commit b70ec49

Please sign in to comment.