Bio-Palantir

 view release on metacpan or  search on metacpan

bin/draw_bgc_maps.pl  view on Meta::CPAN


        $y_cluster += $max_y_overlap + 625;
        $cluster_i++;
    }

    # do not draw if no @genes or @domains
    unless (@genes && @domains) {
        return;
    }
        
    # make the background transparent and interlaced
    my @sorted_ends = sort { $b <=> $a } map{ $_->{end} } @genes;
    my $width = $sorted_ends[0];
    my $height = $y_cluster + 600;

    my $left_margin = 50;
    my $right_margin = 50;
    
    my $img = GD::Simple->new($width + $left_margin + $right_margin, $height);

    # draw tickles



( run in 0.431 second using v1.01-cache-2.11-cpan-a1d94b6210f )