CountTransactionsTable of Contents

Count TransactionsIntroductionMethodsAddChangenewTeardownCount TransactionsIntroductionThis is a TransactionProcessor subclass that counts the IDs required by transaction file. If the incoming command is register, it will als request ID ranges from the clearing house and output an ID file.

Methodsnewmy $xprc = CountTransactions->new(\%options, $command, $directory, $idFile);

Construct a new CountTransactions object.

optionsReference to a hash table containing the command-line options.

commandCommand specified on the TransactFeatures command line. This command determine which TransactionProcessor subclass is active.

directoryDirectory containing the transaction files.

idFileName of the ID file (if the command is register).

Teardown$xprc->Teardown();

Output the results of the count.

Add$xprc->Add($newID, $locations, $translation);

Add a new feature to the data store. Since we're counting, all we do is incremen the ID counter for the specified genome ID and feature type.

newIDID to give to the new feature.

locationsLocation of the new feature, in the form of a comma-separated list of locatio strings in SEED format.

translation (optional)Protein translation string for the new feature. If this field is omitted an the feature is a peg, the translation will be generated by normal means.

Change$xprc->Change($fid, $newID, $locations, $aliases, $translation);

Replace a feature in the data store. Since we're counting, all we do is incremen the ID counter for the specified genome ID and feature type.

fidID of the feature being changed.

newIDNew ID to give to the feature.

locationsNew location to give to the feature, in the form of a comma-separated list of locatio strings in SEED format.

aliases (optional)A new list of alias names for the feature.

translation (optional)New protein translation string for the feature. If this field is omitted an the feature is a peg, the translation will be generated by normal means.