Skip to content

Commit

Permalink
Merge pull request #937 from olaaustine/update_pick_vfoau
Browse files Browse the repository at this point in the history
Fixing an issue
  • Loading branch information
dglemos committed Jan 5, 2023
2 parents c867582 + bc2524e commit 461ca7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/Bio/EnsEMBL/Variation/Utils/VEP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,7 @@ sub pick_worst_vfoa {
appris => 100,
ensembl => 1,
refseq => 1,
mane => 1,
};

if($vfoa->isa('Bio::EnsEMBL::Variation::TranscriptVariationAllele')) {
Expand All @@ -2213,6 +2214,7 @@ sub pick_worst_vfoa {
$info->{canonical} = $tr->is_canonical ? 0 : 1;
$info->{biotype} = $tr->biotype eq 'protein_coding' ? 0 : 1;
$info->{ccds} = $tr->{_ccds} && $tr->{_ccds} ne '-' ? 0 : 1;
$info->{mane} = $tr->is_mane ? 0 : 1;
$info->{lc($tr->{_source_cache})} = 0 if exists($tr->{_source_cache});

# "invert" length so longer is best
Expand Down

0 comments on commit 461ca7f

Please sign in to comment.