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

Diff of /Sprout/ScenarioSaplingLoader.pm

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

revision 1.12, Mon Jan 24 03:52:18 2011 UTC revision 1.13, Mon Jan 24 18:13:56 2011 UTC
# Line 372  Line 372 
372      # Declare the return variable.      # Declare the return variable.
373      my $retVal = $compound;      my $retVal = $compound;
374      # Get the model object.      # Get the model object.
375      my $figModel = $self->GetFigModel();      #my $figModel = $self->GetFigModel();
376      # Get the object for the given compound ID.      # Get the object for the given compound ID.
377      my $obj = $figModel->database()->get_object("cpdals", {alias => $compound});      #my $obj = $figModel->database()->get_object("cpdals", {alias => $compound});
378      # If we found the compound, get its real ID.      # If we found the compound, get its real ID.
379      if (defined($obj)) {      #if (defined($obj)) {
380          $retVal = $obj->COMPOUND();      #    $retVal = $obj->COMPOUND();
381      }      #}
382      # Return the result.      # Return the result.
383      return $retVal;      return $retVal;
384  }  }
# Line 410  Line 410 
410      # Declare the return variable.      # Declare the return variable.
411      my $retVal = $reaction;      my $retVal = $reaction;
412      # Get the model object.      # Get the model object.
413      my $figModel = $self->GetFidModel();      #my $figModel = $self->GetFigModel();
414      # Get the reaction ID.      # Get the reaction ID.
415      $retVal = $figModel->id_of_reaction($reaction);      #$retVal = $figModel->id_of_reaction($reaction);
416      # Return the result.      # Return the result.
417      return $retVal;      return $retVal;
418  }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3