Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: argument of type 'NoneType' is not iterable #91

Open
Jiayi-Njucm opened this issue Jun 9, 2022 · 2 comments
Open

TypeError: argument of type 'NoneType' is not iterable #91

Jiayi-Njucm opened this issue Jun 9, 2022 · 2 comments

Comments

@Jiayi-Njucm
Copy link

I want to generate a new report using my own data. The project P0000001 report already exists, so I want to generate it again first, and set 'force = True', but an error occurred, like this:
This problem has bothered me for a long time. I hope someone can help me solve this problem, thanks !!!
image
image

@Jiayi-Njucm
Copy link
Author

After debugging for long time, I found the problem.

in ckg/graphdb_connector/connector.py

def run_query(query, parameters={}):
    driver = getGraphDatabaseConnectionConfiguration(configuration=None, database=None)
    data = getCursorData(driver, query, parameters=parameters)

    return data

this query is :
MATCH p=(project:Project)-[:HAS_ENROLLED]->(:Subject)-[:BELONGS_TO_SUBJECT]-(:Biological_sample)-[:SPLITTED_INTO]->(a:Analytical_sample)-[r:HAS_QUANTIFIED_PROTEIN]->(protein:Protein)  WHERE project.id="P0000001"  AND toBoolean(r.is_razor) RETURN a.external_id AS name, a.external_id AS x,COUNT(DISTINCT(protein.id)) AS y, a.group AS group ORDER BY group;

I use this cypher in neo4j, and the result is none. Next, I click 'project' node to find 'P0000001', then find the problem is 'HAS_QUANTIFIED_PROTEIN' relationship disappeared!

Before I uploaded data to the project p0000001 on ckgapp , which may destroy the relationships in the database.

So I reimported the neo4j dump file for verification, and it succeeded.

image

This platform is very comprehensive and perfect!Thank you for your open source code, which is worth learning!

@lx5005
Copy link

lx5005 commented Jun 16, 2023

I am also using CKG. Are you interested in communicating? If so, please contact [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants