Few corrections for large_corpus.bel as an example for correct BEL 1.0 syntax

16 views
Skip to first unread message

Christian Ebeling

unread,
Jan 24, 2018, 2:53:35 AM1/24/18
to openbel-discuss
Dear all,

I think large_corpus.bel is a great and larger example for the correct BEL 1.0 syntax. Only few corrections (mostly only a ":") needed to be completely correct (see below). New valid links to namespace and annotaion references would be also great. 

More corrections needed for the small_corpus.bel, but this seems to be a systematic error in "SET"s value strings at the  end of line (without a line continuation operator  "\").

Following python code returns all line and line numbers with this problem

import re
small = enumerate(open("small_corpus.bel","r").readlines(), 1)
[(line_number, line) for line_number,line in small if re.search("SET\s+Evidence\s*=\s*\"[^\n\r\"]*[^\\][\n\r]", line)]



Best regards
Christian

entry:)) in    line:5410    column:32    hint:composite(p(HGNC:IFNG),p(HGNCTNF >>>>>> )) increases p(HGNC:CCL5)
entry:"Il13    line:78578    column:8    hint:complex( >>>>>> "Il13:interleukin-13 receptor complex") increases kin(p(MGI:Jak1))
entry:"Il13    line:78579    column:8    hint:complex( >>>>>> "Il13:interleukin-13 receptor complex") increases kin(p(MGI:Jak2))
entry:"Il4:    line:78580    column:8    hint:complex( >>>>>> "Il4:interleukin-13 receptor complex") increases kin(p(MGI:Jak1))
entry:"Il4:    line:78581    column:8    hint:complex( >>>>>> "Il4:interleukin-13 receptor complex") increases kin(p(MGI:Jak2))
entry:)) de    line:90356    column:48    hint:composite(a(CHEBI:lipopolysaccharide),p(HGNCIFNG >>>>>> )) decreases surf(p(HGNC:TFRC))
entry:"NFKB    line:94252    column:31    hint:complex(p(HGNC:NFKBIA),complex( >>>>>> "NFKB complex")) increases tscript(p(SFAM:"NOTCH Family"))
entry:)) in    line:118799    column:77    hint:a(SCHEM:"NS 398") decreases (composite(a(CHEBI:lipopolysaccharide),p(HGNCIFNG >>>>>> )) increases a(SCHEM:Dinoprostone))
entry:)) in    line:118801    column:80    hint:a(CHEBI:indometacin) decreases (composite(a(CHEBI:lipopolysaccharide),p(HGNCIFNG >>>>>> )) increases a(SCHEM:Dinoprostone))
entry:)) in    line:118805    column:48    hint:composite(a(CHEBI:lipopolysaccharide),p(HGNCIFNG >>>>>> )) increases a(SCHEM:Dinoprostone)
entry:)) in    line:118808    column:48    hint:composite(a(CHEBI:lipopolysaccharide),p(HGNCIFNG >>>>>> )) increases a(SCHEM:Dinoprostone)
entry:)) in    line:118809    column:78    hint:cat(p(HGNC:PTGS2)) increases (composite(a(CHEBI:lipopolysaccharide),p(HGNCIFNG >>>>>> )) increases a(SCHEM:Dinoprostone))
entry:)) de    line:130319    column:32    hint:composite(p(HGNC:TNF),p(HGNCIL1B >>>>>> )) decreases (p(HGNC:TNFSF10) increases p(HGNC:MAPK3,pmod(P,T,202)))
entry:"NFKB    line:149708    column:57    hint:p(HGNC:SLC25A4) increases complex(p(HGNC:NFKBIA),complex( >>>>>> "NFKB complex"))
entry:"NFKB    line:149712    column:57    hint:p(HGNC:SLC25A4) increases complex(p(HGNC:NFKBIA),complex( >>>>>> "NFKB complex"))
entry:)) in    line:192877    column:32    hint:composite(p(HGNC:IFNG),p(HGNCTNF >>>>>> )) increases p(HGNC:TLR1)
entry:)) de    line:192881    column:32    hint:composite(p(HGNC:IFNG),p(HGNCTNF >>>>>> )) decreases p(HGNC:TLR5)
entry:)) in    line:192903    column:32    hint:composite(p(HGNC:IFNG),p(HGNCTNF >>>>>> )) increases p(HGNC:TLR2)
entry:)) in    line:227383    column:32    hint:composite(p(HGNC:IFNG),p(HGNCTNF >>>>>> )) increases p(HGNC:CD40)
entry:"And     line:244547    column:8    hint:complex( >>>>>> "And of NFKB complex and Sp1 and Ap-1 Complex") increases p(EGID:25353)
Reply all
Reply to author
Forward
0 new messages