Hi everyone,
I have a simple rule that modifies a fact, it works in this scenario:
(defrule get-nonsyn
?syn <- (Synonymity (type ?nspfr&:(regex ?nspfr "nonsynonymous"))
(rsnum ?id))
?r <- (SNPRank (id ?sid) (rank ?y))
=>
(modify ?r (rank ?y) (category "nonsynonymous"))
)
However, as soon as I try to include an addition function to the "rank" slot of
the modify function, it no longer works:
(defrule get-nonsyn
?syn <- (Synonymity (type ?nspfr&:(regex ?nspfr "nonsynonymous"))
(rsnum ?id))
?r <- (SNPRank (id ?sid) (rank ?y))
=>
(modify ?r (rank (+ ?y 0.5)) (category "nonsynonymous"))
)
Thanks for any guidance,
~~Terry
------------------------------------------------------------
Hsin Yi (Terry) Shen, MSPH
NLM Predoctoral Fellow
Department of Medical Education and Biomedical Informatics
School of Medicine, Box 357240
University of Washington
[EMAIL PROTECTED]
http://students.washington.edu/hyshen
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------