Changeset 196

Show
Ignore:
Timestamp:
03/16/11 16:42:46 (14 months ago)
Author:
andrea
Message:

- risolti conflitti nelle immagini bioperl tra le features
- aggiunti metadati per le features
- tolta la label _no_value e sostituita con start-end della feature

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plone4bio.base/trunk/src/plone4bio/base/png/perl/graphics.pm

    r195 r196  
    8181      peptide_coil => "aliceblue", 
    8282      signal_peptide => "gold", 
     83      INIT_MET => "black", 
     84      REGION => "violet", 
    8385); 
    8486 
     
    106108      polyA_signal => 1, 
    107109      repeat_region => 1, 
     110      HELIX => 1, 
     111      TURN => 1, 
     112      STRAND => 2, 
    108113); 
    109114 
     
    160165      rep_origin => \&note_description, 
    161166      variation => \&note_description, 
     167      INIT_MET => \&description, 
     168      REGION => \&description, 
    162169); 
    163170 
     
    247254                    -key      => "${key}", 
    248255                    -key_color => "red", 
    249                     -bump     => $bumps{$tag}, 
     256                    -bump     =>  $bumps{$tag} || 5, 
     257                    -bump_limit => 3, 
     258                    -hbumppad => 5, 
    250259                    -height   => 8, 
    251260                    #-description    => \&gene_description, 
     
    284293      my $name = 'graphicsmap'; 
    285294      my $boxes    = $panel->boxes; 
     295      my $pad_left_correction = 21; 
    286296      # my (%track2link,%track2title,%track2target); 
    287297      my $map = qq(<map name="$name" id="$name">\n); 
     
    471481  return unless @notes; 
    472482  substr($notes[0],40) = '...' if length $notes[0] > 40; 
     483  #print STDERR $notes[0]; 
     484  if ($notes[0] eq '_no_value') { 
     485        my $loc_start = $feature->start; 
     486        my $loc_end = $feature->end; 
     487        $notes[0] = "$loc_start-$loc_end" ; 
     488  } 
    473489  $notes[0]; 
    474490}