Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » Substitute.m error: nested brackets found in input
Show: Today's Posts  :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
AuthorTopic
celine


Posts: 11
Registered:
January 2011
Substitute.m error: nested brackets found in input 26 Oct '11 14:00 Go to next message

Hello!

I'm working with a model that was developed in COPASI and exported into SBML. However, when I tried to use the file, I got the following error:

Quote:


??? Error using ==> Substitute at 72
Substitute(OriginalFormula, SBMLModel)
nested brackets found in input - cannot deal yet

Error in ==> GetGlobalParameters at 76
Values(i) = Substitute(AR.formula, newSBMLModel);

Error in ==> GetAllParametersUnique at 46
[ParamChar, ParamValues] = GetGlobalParameters(SBMLModel);

Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/ModelProcess/ModelAnalysis.p>ModelAnalysis at 65

Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/GUI/SBML_SAT.p>open_menu_Callback at 170

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/GUI/SBML_SAT.p>SBML_SAT at 56

??? Error while evaluating uipushtool ClickedCallback



I found the post regarding an improved Substitute.m file (http://www.sbml.org/Forums/index.php?t=rview&goto=6592&th=1732), but after replacing the file, I got the same error.

I was thinking, if there is a way to find out where the offensive brackets are residing in the model, possibly I could just write the equation in a different way...

Any other ideas or workarounds?

Thanks!

      
celine


Posts: 11
Registered:
January 2011
Re: Substitute.m error: nested brackets found in input 26 Oct '11 16:37 Go to previous messageGo to next message

Silly me! I put the files in the wrong place... instead of putting them where the toolbox would look, I think I put them where I unzipped the install files. Opps!


I have a new error now:

Quote:

??? Error using ==> Substitute at 58
Substitute(): Ill formed formula

Error in ==> GetGlobalParameters at 76
Values(i) = Substitute(AR.formula, newSBMLModel);

Error in ==> GetAllParametersUnique at 46
[ParamChar, ParamValues] = GetGlobalParameters(SBMLModel);

Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/ModelProcess/ModelAnalysis.p>ModelAnalysis at 65


Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/GUI/SBML_SAT.p>open_menu_Callback at 170


Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/GUI/SBML_SAT.p>SBML_SAT at 56


??? Error while evaluating uipushtool ClickedCallback


      
Sarah Keating


Posts: 413
Registered:
May 2004
Re: Substitute.m error: nested brackets found in input 27 Oct '11 01:11 Go to previous messageGo to next message

Hi Celine

There are some formations of math that the Substitute function does not
handle. The difficulty being that when the math is imported into MATLAB
it becomes a string and so parsing it is a little problematic.

Could you send me the sbml file or at least the assignment rules where
the math that is causing this problem is ? Then I can either find a bug
in Substitute or suggest a way of styling the math that MATLAB will deal
with.

Thanks

Sarah


On 27/10/2011 00:52, celine wrote:
>
> Silly me! I put the files in the wrong place... instead of putting them where the toolbox would look, I think I put them where I unzipped the install files. Opps!
>
>
> I have a new error now:
>
>> ??? Error using ==> Substitute at 58
>> Substitute(): Ill formed formula
>>
>> Error in ==> GetGlobalParameters at 76
>> Values(i) = Substitute(AR.formula, newSBMLModel);
>>
>> Error in ==> GetAllParametersUnique at 46
>> [ParamChar, ParamValues] = GetGlobalParameters(SBMLModel);
>>
>> Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/ModelProcess/ModelAnalysis.p>ModelAnalysis at 65
>>
>>
>> Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/GUI/SBML_SAT.p>open_menu_Callback at 170
>>
>>
>> Error in ==> gui_mainfcn at 96
>> feval(varargin{:});
>>
>> Error in ==> /home/celine/Documents/MATLAB/SBML-SAT-v1.1/src/GUI/SBML_SAT.p>SBML_SAT at 56
>>
>>
>> ??? Error while evaluating uipushtool ClickedCallback
>
>
>
> ____________________________________________________________
> To manage your sbml-interoperability list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability
>
> For a web interface to the sbml-interoperability mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the sbml-interoperability list,
> contact sbml-team@caltech.edu
>

____________________________________________________________
To manage your sbml-interoperability list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability

For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu

      
celine


Posts: 11
Registered:
January 2011
Re: Substitute.m error: nested brackets found in input 27 Oct '11 11:52 Go to previous message

Hi Sarah,

Thanks so much for your help (again). I've attached the file in question (hopefully).

Celine

Attachment: 20111025 model 20111006 eqns.xml
(Size: 28.32KB, Downloaded 73 time(s))
      
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Release of JSBML-rc1
Next Topic:Opening SBML files in a loop crashes Python app
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.