Skip to content

Commit

Permalink
Revert "fix Uploaded_variation"
Browse files Browse the repository at this point in the history
  • Loading branch information
at7 committed Jan 9, 2018
1 parent e34bc9f commit 718e90e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/OutputFactory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ sub VariationFeature_to_output_hash {
my $vf = shift;

my $hash = {
Uploaded_variation => $vf->variation_name ne '.' ? $vf->variation_name : ($vf->{original_chr} || $vf->{chr}).'_'.$vf->{start}.'_'.($vf->{allele_string} || $vf->{class_SO_term}),
Uploaded_variation => $vf->variation_name,
Location => ($vf->{chr} || $vf->seq_region_name).':'.format_coords($vf->{start}, $vf->{end}),
};

Expand Down
6 changes: 3 additions & 3 deletions t/OutputFactory.t
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ is_deeply(
],
'MINIMISED' => 1,
'Feature_type' => 'Transcript',
'Uploaded_variation' => '21_25741665_CAGAAGAAAG/TAGAAGAAAG/C',
'Uploaded_variation' => '.',
'Allele' => '-',
'CDS_position' => '68-76',
'Gene' => 'ENSG00000154727',
Expand All @@ -1612,7 +1612,7 @@ is_deeply(
],
'MINIMISED' => 1,
'Feature_type' => 'Transcript',
'Uploaded_variation' => '21_25741665_CAGAAGAAAG/TAGAAGAAAG/C',
'Uploaded_variation' => '.',
'Allele' => 'T',
'CDS_position' => 67,
'Gene' => 'ENSG00000154727',
Expand Down Expand Up @@ -1817,4 +1817,4 @@ sub get_annotated_buffer_runner {
$ib->finish_annotation();

return $runner;
}
}

0 comments on commit 718e90e

Please sign in to comment.