Permalink
Browse files

fix processed_transcript implied_introns processing, was not properly…

… recognizing the feature types of exon and CDS features if they had a :source appended
  • Loading branch information...
1 parent 6594efe commit 0be7eff9aaa378a6343fb5bf0e1b92576f010481 @rbuels rbuels committed Sep 10, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Bio/Graphics/Glyph/processed_transcript.pm
@@ -32,9 +32,10 @@ sub create_implied_utrs {
# parts should be ordered from left to right
my @features = sort {$a->start <=> $b->start} map {$_->feature} $self->parts;
- my @exons = grep {$_->type eq 'exon'} @features;
- my @cds = grep {$_->type eq 'CDS'} @features;
- my @old_utr = grep {$_->type =~ /UTR/} @features;
+
+ my @exons = grep {$_->type =~ /^exon/} @features;
+ my @cds = grep {$_->type =~ /^CDS/ } @features;
+ my @old_utr = grep {$_->type =~ /UTR/ } @features;
# if there are already UTRs then we don't modify anything
return if @old_utr;

0 comments on commit 0be7eff

Please sign in to comment.