hard limit on the lenght of an equation?

NMODL and the Channel Builder.
Post Reply
mattions
Posts: 65
Joined: Tue Jul 15, 2008 11:21 am
Location: EMBL-EBI Cambridge UK

hard limit on the lenght of an equation?

Post 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?
ted
Site Admin
Posts: 6395
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: hard limit on the lenght of an equation?

Post 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?
mattions
Posts: 65
Joined: Tue Jul 15, 2008 11:21 am
Location: EMBL-EBI Cambridge UK

Re: hard limit on the lenght of an equation?

Post 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.
ted
Site Admin
Posts: 6395
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: hard limit on the lenght of an equation?

Post by ted »

Sounds like a worthy project. I wish you success with it!
Post Reply