Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downstream changes for get_end fix in VCF parser #1773

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/Parser/VCF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ sub create_StructuralVariationFeatures {
$parser->get_outer_end,
);

if($start >= $end && $so_term =~ /del/i) {
if(($start > $end || (!defined $info->{SVLEN} && !defined $info->{END})) && $so_term =~ /del/i) {
$self->skipped_variant_msg("deletion looks incomplete");
$skip_line = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion t/AnnotationSource_File_VCF.t
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ SKIP: {
config => $cfg,
parser => Bio::EnsEMBL::VEP::Parser::VCF->new({
config => $cfg,
file => $test_cfg->create_input_file([qw(21 25585735 . G . . . SVTYPE=DEL;SVLEN=2)]),
file => $test_cfg->create_input_file([qw(21 25585735 . T . . . SVTYPE=DEL;SVLEN=1)]),
valid_chromosomes => [21]
})
});
Expand Down
18 changes: 9 additions & 9 deletions t/Parser_VCF.t
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,11 @@ is_deeply($bnd_vf, bless( {
'start' => 68914093,
'inner_start' => 68914093,
'outer_start' => 68914093,
'end' => 68914095,
'inner_end' => 68914095,
'outer_end' => 68914095,
'end' => 68914093,
'inner_end' => 68914093,
'outer_end' => 68914093,
'seq_region_start' => 68914093,
'seq_region_end' => 68914095
'seq_region_end' => 68914093
},
'Bio::EnsEMBL::Variation::StructuralVariationFeature' ) ,
'StructuralVariationFeature - BND with unsupported INFO/END field');
Expand Down Expand Up @@ -869,14 +869,14 @@ is_deeply($bnd5_vf, bless( {
'start' => 68914093,
'inner_start' => 68914093,
'outer_start' => 68914093,
'end' => 68914095,
'inner_end' => 68914095,
'outer_end' => 68914095,
'end' => 68914094,
'inner_end' => 68914094,
'outer_end' => 68914094,
'seq_region_start' => 68914093,
'seq_region_end' => 68914095
'seq_region_end' => 68914094
},
'Bio::EnsEMBL::Variation::StructuralVariationFeature' ) ,
'StructuralVariationFeature - BND with unsupported INFO/END field');
'StructuralVariationFeature - BND with undefined INFO/END field');

## test tandem repeats

Expand Down