[Bio] / FigKernelPackages / PinnedRegions.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/PinnedRegions.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6, Wed Feb 6 18:30:07 2008 UTC revision 1.7, Wed Feb 20 19:23:58 2008 UTC
# Line 447  Line 447 
447          # Get hash of FigFam ID to family function          # Get hash of FigFam ID to family function
448          my $family_function = $figfams->family_functions();          my $family_function = $figfams->family_functions();
449    
450            # Some FigFams (the ones that are not subsystem related) have the FigFam ID in the family function.
451            # This results in the popup displaying the ID twice, so one should be removed.
452    
453            my %figfam_text;
454          foreach my $fid  ( keys %$feature_data )          foreach my $fid  ( keys %$feature_data )
455          {          {
456              if ( $figfam->{$fid} )              if ( $figfam->{$fid} )
457              {              {
458                    my $figfam_id = $figfam->{$fid};
459                    if ( ! exists $figfam_text{$figfam_id} ) {
460                        if ( $family_function->{$figfam_id} =~ /^FIG\d+/ ) {
461                            $figfam_text{$figfam_id} = $family_function->{$figfam_id};
462                        } else {
463                            $figfam_text{$figfam_id} = $figfam_id . ': ' . $family_function->{$figfam_id};
464                        }
465                    }
466    
467                  # Add FigFam information to hash -- to go into the popup text                  # Add FigFam information to hash -- to go into the popup text
468                  $feature_data->{$fid}{'figfam'} = $figfam->{$fid} . ": " . $family_function->{$figfam->{$fid}};                  $feature_data->{$fid}{'figfam'} = $figfam_text{$figfam_id};
469    #->{$fid} . ": " . $family_function->{$figfam->{$fid}};
470              }              }
471          }          }
472      }      }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3