[Bio] / Sprout / LoadSproutTables.pl Repository:
ViewVC logotype

Diff of /Sprout/LoadSproutTables.pl

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

revision 1.4, Sun Sep 11 17:06:21 2005 UTC revision 1.9, Thu Oct 13 15:28:53 2005 UTC
# Line 24  Line 24 
24  =item Subsystem  =item Subsystem
25    
26  Loads B<Subsystem>, B<Role>, B<SSCell>, B<ContainsFeature>, B<IsGenomeOf>,  Loads B<Subsystem>, B<Role>, B<SSCell>, B<ContainsFeature>, B<IsGenomeOf>,
27  B<IsRoleOf>, B<OccursInSubsystem>, B<ParticipatesIn>, B<HasSSCell>.  B<IsRoleOf>, B<OccursInSubsystem>, B<ParticipatesIn>, B<HasSSCell>,
28    B<Catalyzes>, B<Reaction>, B<ConsistsOfRoles>, B<RoleSubset>, B<HasRoleSubset>,
29    B<ConsistsOfGenomes>, B<GenomeSubset>, B<HasGenomeSubset>
30    
31  =item Annotation  =item Annotation
32    
# Line 55  Line 57 
57    
58  Loads B<ExternalAliasOrg>, B<ExternalAliasFunc>.  Loads B<ExternalAliasOrg>, B<ExternalAliasFunc>.
59    
60    =item Reaction
61    
62    Loads B<ReactionURL>, B<Compound>, B<CompoundName>,
63    B<CompoundCAS>, B<IsAComponentOf>.
64    
65  =item *  =item *
66    
67  Loads all of the above tables.  Loads all of the above tables.
68    
69  =back  =back
70    
71  There are two command-line options, given below. Note that in the command line, spaces  The command-line options are given below.
 inside parameters should be represented by C<\b>.  
72    
73  =over 4  =over 4
74    
# Line 82  Line 88 
88    
89  Desired tracing level. The default is 3.  Desired tracing level. The default is 3.
90    
91    =item limitedFeatures
92    
93    Only generate the B<Feature> and B<IsLocatedIn> tables when processing the feature group.
94    
95  =back  =back
96    
97  =cut  =cut
# Line 96  Line 106 
106  use File::Path;  use File::Path;
107  use SproutLoad;  use SproutLoad;
108  use Stats;  use Stats;
109    use SFXlate;
110    
111  # Get the command-line parameters and options.  # Get the command-line parameters and options.
112  my ($options, @parameters) = Tracer::ParseCommand({ geneFile => "", subsysFile => "",  my ($options, @parameters) = Tracer::ParseCommand({ geneFile => "", subsysFile => "",
113                                                      trace => 3 },                                                      trace => 3, limitedFeatures => 0 },
114                                                                 @ARGV);                                                                 @ARGV);
115  # Set up tracing.  # Set up tracing.
116  TSetup("$options->{trace} SproutLoad ERDBLoad ERDB Stats Tracer Load", "+>$FIG_Config::temp/trace.log");  TSetup("$options->{trace} SproutLoad ERDBLoad ERDB Stats Tracer Load", "+>$FIG_Config::temp/trace.log");
117  # Create the sprout loader object.  # Create the sprout loader object. Note that the Sprout object does not
118    # open the database (that's what the "1" does in the fourth parameter).
119  my $fig = FIG->new();  my $fig = FIG->new();
120  my $sprout = SFXlate->new_sprout_only();  my $sprout = SFXlate->new_sprout_only(undef, undef, undef, 1);
121  my $spl = SproutLoad->new($sprout, $fig, $options->{geneFile},  my $spl = SproutLoad->new($sprout, $fig, $options->{geneFile}, $options->{subsysFile}, $options);
                           $options->{subsysFile});  
122  # Process the parameters.  # Process the parameters.
123  for my $group (@parameters) {  for my $group (@parameters) {
124      Trace("Processing load group $group.") if T(2);      Trace("Processing load group $group.") if T(2);
# Line 145  Line 156 
156      if ($group eq 'External' || $group eq '*') {      if ($group eq 'External' || $group eq '*') {
157          $spl->LoadExternalData();          $spl->LoadExternalData();
158      }      }
159        if ($group eq 'Reaction' || $group eq '*') {
160            $spl->LoadReactionData();
161        }
162    
163  }  }
164  Trace("Load complete.") if T(2);  Trace("Load complete.") if T(2);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.9

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3