From f39ec80efe38e63cf3bc4378e0309c473479325c Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 3 Dec 2009 10:58:55 +0000 Subject: [PATCH] added space between liniea track elements git-svn-id: http://biopieces.googlecode.com/svn/trunk@794 74ccb610-7750-0410-82ae-013aeee3265d --- code_perl/Maasha/BBrowser/Track.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_perl/Maasha/BBrowser/Track.pm b/code_perl/Maasha/BBrowser/Track.pm index c43ca5f..19602bd 100644 --- a/code_perl/Maasha/BBrowser/Track.pm +++ b/code_perl/Maasha/BBrowser/Track.pm @@ -230,7 +230,7 @@ sub track_feature_linear last if $x1 >= $ladder[ $y_step ] + 1; } - $y1 = $cookie->{ 'TRACK_OFFSET' } + ( $cookie->{ 'FEAT_WIDTH' } * $y_step ); + $y1 = $cookie->{ 'TRACK_OFFSET' } + ( ( 0.1 + $cookie->{ 'FEAT_WIDTH' } ) * $y_step ); push @features, { type => 'rect', @@ -247,7 +247,7 @@ sub track_feature_linear y2 => $y1 + $cookie->{ 'FEAT_WIDTH' }, }; - $y_max = Maasha::Calc::max( $y_max, $y_step * $cookie->{ 'FEAT_WIDTH' } ); + $y_max = Maasha::Calc::max( $y_max, $y_step * ( 0.1 + $cookie->{ 'FEAT_WIDTH' } ) ); push @features, feature_align( $entry, $beg, $y1, $factor, $cookie->{ 'FEAT_WIDTH' } ) if $entry->{ 'ALIGN' } ne '.'; -- 2.39.2