]> git.donarmstrong.com Git - biopieces.git/commitdiff
added space between liniea track elements
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 3 Dec 2009 10:58:55 +0000 (10:58 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 3 Dec 2009 10:58:55 +0000 (10:58 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@794 74ccb610-7750-0410-82ae-013aeee3265d

code_perl/Maasha/BBrowser/Track.pm

index c43ca5f524eb5639b451940a61cd1ae8daf1b114..19602bdb3a6523278a4370aa62f2d99020aec05a 100644 (file)
@@ -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 '.';