# (in all three dimensions)
my $offset_multiplier = 0;
my $gene_suffix_counter = 0; # used to affix numbers to multiple new gene symbols
- # used to track the application of the gradient in reverse
- my $new_nodes_dec = scalar(@new_nodes_map) + 1;
# for new nodes ary
for (@new_nodes_map)
if (scalar(@new_nodes_map) > 1)
{
$gene_suffix_counter++;
- $new_nodes_dec--;
}
my $curr_new_node = $$_[0];
# add "heat" to genes with multiple homologs
if ($apply_homolog_heat && ($gene_suffix_counter > 0))
{
- $curr_graphics->setAttribute("FillColor", $gradient{$new_nodes_dec});
+ $curr_graphics->setAttribute("FillColor", $gradient{scalar(@new_nodes_map)});
$curr_graphics->setAttribute("Color","8888ff");
}
else