Commit b3afde91 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-399] Fixing an issue reported from Steve Moss. We cause an...

[ENSCORESW-399] Fixing an issue reported from Steve Moss. We cause an exception because we do not check if we can project the cDNA location. Sometimes it is undefined.
parent 43fceee6
......@@ -1707,6 +1707,7 @@ sub five_prime_utr_Feature {
my ($self) = @_;
my ($start, $end);
my $cdna_coding = $self->cdna_coding_start();
return unless $cdna_coding;
my ($genomic_pos) = $self->cdna2genomic($cdna_coding, $cdna_coding);
if($self->strand() == 1) {
$start = $self->seq_region_start();
......@@ -1749,6 +1750,7 @@ sub three_prime_utr_Feature {
my ($self) = @_;
my ($start, $end);
my $cdna_coding = $self->cdna_coding_end();
return unless $cdna_coding;
my ($genomic_pos) = $self->cdna2genomic($cdna_coding, $cdna_coding);
if($self->strand() == 1) {
$end = $self->seq_region_end();
......
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