From a9186bc30051f7fd63f2ba6dcd3303fa7f03296e Mon Sep 17 00:00:00 2001 From: Yuri Pirola Date: Fri, 3 Jan 2014 05:51:22 +0100 Subject: [PATCH] Better (hopefully) detection of single exon transcripts. --- lib/bio/graphics/glyph.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/bio/graphics/glyph.rb b/lib/bio/graphics/glyph.rb index 75515d0..519d15c 100644 --- a/lib/bio/graphics/glyph.rb +++ b/lib/bio/graphics/glyph.rb @@ -431,9 +431,8 @@ def self.transcript(args) :stroke_width => args[:exon_stroke_width], :style => args[:exon_style]} ) end - if args[:exons].length > 1 - if args[:gap_marker] == "angled" and not args[:block_gaps].empty? - $stderr.puts args[:exons].length + if not args[:block_gaps].empty? + if args[:gap_marker] == "angled" args[:block_gaps].each do |gap| points = "#{gap.first},#{args[:y] + (args[:height]/2) } #{gap.first + (gap.last/2)},#{args[:y]} #{gap.first + gap.last},#{args[:y] + (args[:height]/2)}" composite << Bio::Graphics::Primitive.new(:polyline, {