Skip to content

Commit

Permalink
Better (hopefully) detection of single exon transcripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
yp committed Jan 3, 2014
1 parent 2bbfe84 commit a9186bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/bio/graphics/glyph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit a9186bc

Please sign in to comment.