How are your parameters defined in Python? I would expect the syntax to be something like shown in the answer here, rather than using $:
stackoverflow.com
how to pass parameter to cypher query in py2neo
python,...
I'm not at my computer with neo4j, but have you tried renaming either your 'n' parameter or the 'n' variable in your first Protein node? Using the same name in both places might be confusing Cypher.
Interesting post. Thanks! It works correctly if you include a 0 after the decimal point:
:params {wrong:1.0E6,acceptable:1E6,ok:1.0E6}
{
"wrong": 1000000.0,
"acceptable": 1000000.0,
"ok": 1000000.0
}
Glad you got it working. This new one looks like a Python error. It looks like your query probably is not returning any results since it's saying avail and cons are both None.