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

Diff of /FigKernelPackages/FIG.pm

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

revision 1.174, Fri Oct 22 16:55:42 2004 UTC revision 1.175, Fri Oct 22 19:30:37 2004 UTC
# Line 2693  Line 2693 
2693      return undef;      return undef;
2694  }  }
2695    
2696    =pod
2697    
2698    =head1 all_features_detailed
2699    
2700    usage: $fig->all_features_detailed($genome)
2701    
2702    Returns a list of all feature IDs, location, aliases, type in the designated genome.
2703    Used in gendb import to speed up the process
2704    =cut
2705    
2706    sub all_features_detailed {
2707        my($self,$genome) = @_;
2708    
2709        my $rdbH = $self->db_handle;
2710        my $relational_db_response = $rdbH->SQL("SELECT id, location, aliases, type FROM features WHERE  (genome = \'$genome\')");
2711            my @features;
2712        foreach my $tuple (@$relational_db_response)
2713        {
2714            push @features, $tuple unless ($self->is_deleted_fid($tuple->[0]));
2715        }
2716        return \@features;
2717    }
2718    
2719    
2720  =pod  =pod
2721    

Legend:
Removed from v.1.174  
changed lines
  Added in v.1.175

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3