pybel icon indicating copy to clipboard operation
pybel copied to clipboard

Add reverse of secretion syntax sugar

Open cthoyt opened this issue 7 years ago • 1 comments

Since secretion(X) auto-expands to translocation(X, fromLoc(GO:intracellular), toLoc(GO:"extracellular space")), there should be another automatic translocation() called absorption(X) that is the opposite of secretion and expands to translocation(X, fromLoc(GO:"extracellular space"), toLoc(GO:intracellular))

Add another static tag here:

https://github.com/pybel/pybel/blob/cce8dafd4704a2de2aa95a7073faaa39bf9fd5e8/src/pybel/parser/parse_bel.py#L42-L44

Add a corresponding instance tag here:

https://github.com/pybel/pybel/blob/cce8dafd4704a2de2aa95a7073faaa39bf9fd5e8/src/pybel/parser/parse_bel.py#L254-L258

Register it with the parser here:

https://github.com/pybel/pybel/blob/cce8dafd4704a2de2aa95a7073faaa39bf9fd5e8/src/pybel/parser/parse_bel.py#L293-L299

Add another conditional here:

https://github.com/pybel/pybel/blob/cce8dafd4704a2de2aa95a7073faaa39bf9fd5e8/src/pybel/tokens.py#L430-L440

cthoyt avatar Jan 02 '18 15:01 cthoyt

See: https://github.com/belbio/bep/issues/7

cthoyt avatar Jan 10 '19 14:01 cthoyt