Skip to content

Commit

Permalink
Test for before parsing chrom
Browse files Browse the repository at this point in the history
  • Loading branch information
nriddiford committed Jun 19, 2018
1 parent 0133f9e commit 238003e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/svParser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ sub summarise_variants {
my ($dels, $dups, $trans, $invs, $filtered) = (0,0,0,0,0);
my ($tds, $CNVs, $ins) = (0,0,0);

my ( $chromosome, $query_start, $query_stop, $specified_region) = parseChrom($region);
my ( $chromosome, $query_start, $query_stop, $specified_region) = parseChrom($region) if $region;

my %support_by_chrom;

Expand Down Expand Up @@ -834,7 +834,7 @@ sub get_variant {
sub dump_variants {
my ( $SVs, $info, $filter_flag, $region, $type, $PON_print ) = @_;

my ( $chromosome, $query_start, $query_stop, $specified_region) = parseChrom($region);
my ( $chromosome, $query_start, $query_stop, $specified_region) = parseChrom($region) if $region;

say "Running in filter mode - not displaying filtered calls" if $filter_flag;
say "\nEnter any key to start cycling through calls or enter 'q' to exit";
Expand Down

0 comments on commit 238003e

Please sign in to comment.