Page 1 of 1

hard limit on the lenght of an equation?

Posted: Mon Jul 27, 2009 9:43 am
by mattions
Is there any hard limit on the lenght of an equation in a MOD file?

I hit this error:

Code: Select all

Line too long:  ca' =  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  + (Spine * koffRA * camR_ca1_A) + (Spine * koffRB * camR_ca1_B) + (Spine * koffRC * camR_ca1_C) + (Spine * koffRD * camR_ca1_D) - (Spine * kon * camR_ca1_A * ca)  - (Spine * kon * camR_ca1_A * ca)  - (Spine * kon * camR_ca1_A * ca)  - (Spine * kon * camR_ca1_B * ca)  - (Spine * kon * camR_ca1_B * ca)  - (Spine * kon * camR_ca1_B * ca)  - (Spine * kon * camR_ca1_C * ca)  - (Spine * ko at line 628 in file BIOMD000000183.mod
  ca' =  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  + (Spine * koffRA * camR_ca1_A) + (Spine * koffRB * camR_ca1_B) + (Spine * koffRC * camR_ca1_C) + (Spine * koffRD * camR_ca1_D) - (Spine * kon * camR_ca1_A * ca)  - (Spine * kon * camR_ca1_A * ca)  - (Spine * kon * camR_ca1_A * ca)  - (Spine * kon * camR_ca1_B * ca)  - (Spine * kon * camR_ca1_B * ca)  - (Spine * kon * camR_ca1_B * ca)  - (Spine * kon * camR_ca1_C * ca)  - (Spine * ko
make: *** [BIOMD000000183.lo] Error 1
Note the

Code: Select all

Line too Long
at the beginning.
Any idea?

Re: hard limit on the lenght of an equation?

Posted: Mon Jul 27, 2009 12:14 pm
by ted
Is there any hard limit on the lenght of an equation in a MOD file?
Looks like there is. I'd guess that NMODL is more tolerant of long lines than I am (my criterion is "if it's too long to read, it's too long"). Have you tried inserting "line continuation" characters (backslashes) so that no line is longer than ~ 50-60 characters? e.g.

Code: Select all

ca' =  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  - (Spine * kon * camR * ca)  \
       - (Spine * kon * camR * ca)  + . . .
A question: is your example is just a bit of NMODL "lorem ipsum" constructed specifically for the purpose of testing for line length limits, or is there some other reason for having so many repeats?

Re: hard limit on the lenght of an equation?

Posted: Wed Jul 29, 2009 10:49 am
by mattions
That's a good idea.
I'll try and then report back.

I'm testing an automatic translator for sbml model into NMOL with massive model. It's still a proof of concept though.
That's why there are this massive long lines with zero readibility.

Re: hard limit on the lenght of an equation?

Posted: Wed Jul 29, 2009 12:57 pm
by ted
Sounds like a worthy project. I wish you success with it!