[Bio] / FigKernelScripts / TransactFeatures.pl Repository:
ViewVC logotype

Diff of /FigKernelScripts/TransactFeatures.pl

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

revision 1.6, Thu Aug 11 05:16:46 2005 UTC revision 1.10, Mon Aug 15 20:40:22 2005 UTC
# Line 37  Line 37 
37  Annotate the features created by the transactions so as to indicate how they were  Annotate the features created by the transactions so as to indicate how they were
38  derived.  derived.
39    
40    =item check
41    
42    Verify that the locations and translations of the new and changed features are
43    correct.
44    
45  =item fix  =item fix
46    
47  Fix the locations of new features and verify the translations of new and changed  Fix the locations and translations of the new and changed features.
48  features.  
49    =item aliasMove
50    
51    Move the aliases from the old features to the ones that replaced them.
52    
53    =item attribute
54    
55    Move the attributes from the old features to the ones that replaced them.
56    
57    =item attributeCheck
58    
59    Same as C<attribute>, but no changes are made to the database.
60    
61  =back  =back
62    
# Line 155  Line 171 
171  Assume that the transaction files do not contain aliases. This means that in CHANGE  Assume that the transaction files do not contain aliases. This means that in CHANGE
172  records the translation will immediately follow the location.  records the translation will immediately follow the location.
173    
174    =item sql
175    
176    Trace SQL commands.
177    
178    =back
179    
180  =cut  =cut
181    
182  use strict;  use strict;
# Line 170  Line 192 
192  use ApplyTransactions;  use ApplyTransactions;
193  use CountTransactions;  use CountTransactions;
194  use AnnotateTransactions;  use AnnotateTransactions;
195    use AttributeTransactions;
196  use FixTransactions;  use FixTransactions;
197    use MoveAliases;
198    
199  # Get the command-line options.  # Get the command-line options.
200  my ($options, @parameters) = Tracer::ParseCommand({ trace => 3, safe => 0, noAlias => 0 }, @ARGV);  my ($options, @parameters) = Tracer::ParseCommand({ trace => 3, sql => 0, safe => 0, noAlias => 0 },
201                                                      @ARGV);
202    # Get the command.
203    my $mainCommand = lc shift @parameters;
204  # Set up tracing.  # Set up tracing.
205  my $traceLevel = $options->{trace};  my $traceLevel = $options->{trace};
206  TSetup("$traceLevel Tracer DocUtils FIG", "TEXT");  my $tracing = "$traceLevel Tracer DocUtils FIG";
207    if ($options->{sql}) {
208        $tracing .= " SQL";
209    }
210    TSetup($tracing, "TEXT");
211  # Get the FIG object.  # Get the FIG object.
212  my $fig = FIG->new();  my $fig = FIG->new();
 # Get the command.  
 my $mainCommand = lc shift @parameters;  
213  # Create the transaction object.  # Create the transaction object.
214  my $controlBlock;  my $controlBlock;
215  if ($mainCommand eq 'count' || $mainCommand eq 'register') {  if ($mainCommand eq 'count' || $mainCommand eq 'register') {
# Line 189  Line 218 
218      $controlBlock = ApplyTransactions->new($options, $mainCommand, @parameters);      $controlBlock = ApplyTransactions->new($options, $mainCommand, @parameters);
219  } elsif ($mainCommand eq 'annotate') {  } elsif ($mainCommand eq 'annotate') {
220      $controlBlock = AnnotateTransactions->new($options, $mainCommand, @parameters);      $controlBlock = AnnotateTransactions->new($options, $mainCommand, @parameters);
221  } elsif ($mainCommand eq 'fix') {  } elsif ($mainCommand eq 'fix' || $mainCommand eq 'check') {
222      $controlBlock = FixTransactions->new($options, $mainCommand, @parameters);      $controlBlock = FixTransactions->new($options, $mainCommand, @parameters);
223    } elsif ($mainCommand eq 'aliasmove') {
224        $controlBlock = MoveAliases->new($options, $mainCommand, @parameters);
225    } elsif ($mainCommand eq 'attribute') {
226        $controlBlock = AttributeTransactions->new($options, $mainCommand, @parameters);
227    } elsif ($mainCommand eq 'attributeCheck') {
228        $controlBlock = AttributeTransactions->new($options, $mainCommand, @parameters);
229  } else {  } else {
230      Confess("Invalid command \"$mainCommand\" specified on command line.");      Confess("Invalid command \"$mainCommand\" specified on command line.");
231  }  }

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3