Commit 24c17276 authored by Kieron Taylor's avatar Kieron Taylor 😠
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
......@@ -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,
......
Markdown is supported
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