[Bio] / Sprout / ModelSaplingLoader.pm Repository:
ViewVC logotype

Diff of /Sprout/ModelSaplingLoader.pm

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

revision 1.5, Wed Jul 15 23:39:58 2009 UTC revision 1.6, Thu Aug 27 19:52:40 2009 UTC
# Line 59  Line 59 
59      # Get the parameters.      # Get the parameters.
60      my ($class, $erdb, $options) = @_;      my ($class, $erdb, $options) = @_;
61      # Create the table list.      # Create the table list.
62      my @tables = sort qw(StructuralCue IsFoundIn Compound HasAliasOf AliasType HasReactionAliasOf Reaction Involves IsTriggeredBy RoleSet IsCombinationOf IsCategorizedInto EcNumber IsConsistentWith IsStimulatedBy  FeatureSet IsSetOf IsRequiredBy Model Encompasses IsModeledBy);      my @tables = sort qw(StructuralCue IsFoundIn Compound HasAliasOf AliasType HasReactionAliasOf Reaction Involves IsTriggeredBy RoleSet IsCombinationOf IsCategorizedInto EcNumber IsConsistentWith IsStimulatedBy  FeatureSet IsSetOf IsRequiredBy Model IsModeledBy); # Encompasses);
63      # Create the BaseSaplingLoader object.      # Create the BaseSaplingLoader object.
64      my $retVal = BaseSaplingLoader::new($class, $erdb, $options, @tables);      my $retVal = BaseSaplingLoader::new($class, $erdb, $options, @tables);
65      # Return it.      # Return it.
# Line 299  Line 299 
299              #Adding relationship between EC number and reactions              #Adding relationship between EC number and reactions
300              if (defined($Object->{"ENZYME"})) {              if (defined($Object->{"ENZYME"})) {
301                  foreach my $Enzyme (@{$Object->{"ENZYME"}}) {                  foreach my $Enzyme (@{$Object->{"ENZYME"}}) {
302                       if ($Enzyme =~ /,/) {
303                        #TODO:Invalid enzyme
304                       } else {
305                        $Enzyme =~ s/\s//g;
306                     $self->PutE(EcNumber => $Enzyme, obsolete => 0, replacedby => "NONE");                     $self->PutE(EcNumber => $Enzyme, obsolete => 0, replacedby => "NONE");
307                     $self->PutR(IsCategorizedInto => $LoadingArray[0],$Enzyme,source => "KEGG");                     $self->PutR(IsCategorizedInto => $LoadingArray[0],$Enzyme,source => "KEGG");
308                  }                  }
309              }              }
310                }
311              #Adding the relationship between reaction and alias type              #Adding the relationship between reaction and alias type
312              if (defined($Object->{"NAME"})) {              if (defined($Object->{"NAME"})) {
313                  foreach my $Name (@{$Object->{"NAME"}}) {                  foreach my $Name (@{$Object->{"NAME"}}) {
# Line 533  Line 538 
538                                          #Adding the relationship between the reaction and roleset                                          #Adding the relationship between the reaction and roleset
539                                          $self->PutR(IsStimulatedBy => $RxnRow->{"LOAD"}->[0],$DigestedKey);                                          $self->PutR(IsStimulatedBy => $RxnRow->{"LOAD"}->[0],$DigestedKey);
540                                          #Adding the relationship between the model and featureset                                          #Adding the relationship between the model and featureset
541                                          $self->PutR(Encompasses => $LoadingArray[0],$DigestedKey);                                          #$self->PutR(Encompasses => $LoadingArray[0],$DigestedKey);
542                                          #Adding the relationship between FeatureSet and feature                                          #Adding the relationship between FeatureSet and feature
543                                          my @PegArray = split(/\+/,$FeatureSet);                                          my @PegArray = split(/\+/,$FeatureSet);
544                                          foreach my $Feature (@PegArray) {                                          foreach my $Feature (@PegArray) {

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3