iVis-at-Bilkent / sybvals

SyBValS: Systems Biology Validation Service
MIT License
2 stars 0 forks source link

Logical operator port issues with validation #22

Closed ugurdogrusoz closed 3 months ago

ugurdogrusoz commented 3 months ago

As identified as part of #19, when a logical operator does not have ports, we seem to incorrectly take it as a sign of source/target issue, etc. To allow maps where ports are not in use, we should relax this requirement for our tool as follows (use the following file for reproducing these problems, examples are in square brackets): logic-operator-port-problems.sbgn.txt logic-operator-port-problems sbgn (1)

YusufZiyaOzgul commented 3 months ago

@ugurdogrusoz all of these errors are handled. if the rule is satisfied without having ports, error is ignored.

ugurdogrusoz commented 3 months ago

As you can see from the above example, now we do not have any of the previous issues in Syblars. However, when arcs sometimes use ports and sometimes don't and edges connecting to logical operators without ports are ignored for certain other calculations (e.g. how many outgoing edges from a logical operator), we miss problems like the following and report this as a valid map:

YusufZiyaOzgul commented 3 months ago

@ugurdogrusoz I have processed errors in backend and for the outgoing arc problem, if a logical operator has more than one outgoing arc( including edges connected via port and not connected via port), I added pd10111 error if it is not added, for incoming arc problem for the NOT operator, I did similar and added pd10126 error.

ugurdogrusoz commented 3 months ago

Is the only case we don't handle when a map is mixed using and not using ports @hasanbalci ? If so, should be ignore this case and close this issue?