Skip to content
Snippets Groups Projects
Commit 24c17276 authored by Kieron Taylor's avatar Kieron Taylor :angry:
Browse files

Added a single warning for running without a CCDS database, and provided an...

Added a single warning for running without a CCDS database, and provided an exit for certain no-data situations.
parent e38051a4
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ sub new {
'verbose' => shift,
};
bless $self, $class;
if ($self->{'ccds_dba'} == undef) { warning ("Running without CCDS DB");}
return $self;
}
......@@ -223,7 +224,7 @@ sub check_Ens_trans_against_CCDS {
my ( $self ,$transcript ) = @_;
my @translateable_exons = @{ $transcript->get_all_translateable_Exons };
if (! $self->{'ccds_dba'}) {return;}
my $ext_slice = $self->{'ccds_dba'}->get_SliceAdaptor->fetch_by_region(
'toplevel',
$transcript->slice->seq_region_name,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment