- docs/ - Wiki style documentation
- src/
- app.py - runs the Flask app with GraphiQL for browser
- settings.py - env for Flask and Neo4j (ask for vars.sh)
- neo4j_store.py - Neo4j node/edge CRUD
- schema.py - Graphene GraphQL schema
- Get vars.sh from Tom.Start a virtual environment
conda create --name ontox4j python=3.8
conda activate ontox4j
pip install -r requirements.txtOr use this nix shell
nix-shellStart the server:
source vars.sh
python /src/app.pyOpen a in a browser the GraphiQL interface at http://127.0.0.1:5000/graphql
Example query to read an entity:
{
chemical(ChemicalID: "D000658") {
CasRN
ChemicalID
ChemicalName
}
}Example query to write an entity:
mutation {
createChemical(ChemicalName: "Amoxicillin", ChemicalID: "D000658") {
chemical {
ChemicalName, ChemicalID
},
success
}
}Error message "Cannot connect to any known routers" is related with a Neo4j DB Authentication problem, check your access credentials.
- Get the Neo4j server with GraphiQL working
- CDT Chemical Entity
- Model
- CRUD
- Documentation
- ETL
- CDT Gene Entity
- CDT Chemical Gene Interaction
- Graph Visualization
- CDT Disease Entity
- CDT Chemical Disease Association
- CDT Gene Disease Association
- Graph Visualization
- CDT Pathway Entity
- CDT Chemical Pathway Association
- CDT Gene Pathway Association
- CDT Disease Pathway Association
- Graph Visualization