diff --git a/vcf2maf.pl b/vcf2maf.pl index e08e449..5e99a0b 100755 --- a/vcf2maf.pl +++ b/vcf2maf.pl @@ -553,7 +553,13 @@ sub GetBiotypePriority { # push any requested custom VEP annotations from the CSQ/ANN section into @ann_cols if ($retain_ann) { - push @ann_cols, split(',',$retain_ann); + my @extra_ann = split(',',$retain_ann); + for my $ann (@extra_ann) { + # make sure not to add duplicates to @ann_cols + if ( !($ann ~~ @ann_cols) ) { + push @ann_cols, $ann; + } + } } my @ann_cols_format; # To store the actual order of VEP data, that may differ between runs