Skip to content

Cannot perform minimal update on drugbank #111

Description

@danielwalke

Describe the bug
Cannot perform minimal update after reading the docs

To Reproduce
Steps to reproduce the behavior:

  1. Install Neo4j desktop
  2. Add dump from https://data.mendeley.com/datasets/mrcf7f4tc2/3 in neo4j
  3. Setup database from dump with Neo4j version 4.2.3
  4. Clone repo via git clone
  5. Unzip data.zip from https://data.mendeley.com/datasets/mrcf7f4tc2/3 in "CKG\data"
  6. Add DrugBase Full Database "full database.xml" in "CKG\data\databases\DrugBank"
  7. Change connector configs (username and password)
  8. Create conda environment
  9. python setup.py install
  10. Navigate into CKG\ckg\graphdb_builder\builder
  11. python builder.py -b minimal -u username -n 1

Expected behavior
Creation of drug nodes and links in the database

Results*
Errors like:
Connection error:{code: Neo.ClientError.Schema.EquivalentSchemaRuleAlreadyExists} {message: An equivalent constraint already exists, 'Constraint( id=2, name='constraint_6f637020', type='UNIQUENESS', schema=(:Disease {id}), ownedIndex=1 )'.}.
(<class 'neo4j.exceptions.ClientError'>, ClientError("An equivalent constraint already exists, 'Constraint( id=2, name='constraint_6f637020', type='UNIQUENESS', schema=(:Disease {id}), ownedIndex=1 )'."), <traceback object at 0x000001A202313D48>), file: connector.py,line: 99
Connection error:{code: Neo.ClientError.Schema.EquivalentSchemaRuleAlreadyExists} {message: An equivalent index already exists, 'Index( id=3, name='index_662b2000', type='GENERAL BTREE', schema=(:Disease {name}), indexProvider='native-btree-1.0' )'.}.
(<class 'neo4j.exceptions.ClientError'>, ClientError("An equivalent index already exists, 'Index( id=3, name='index_662b2000', type='GENERAL BTREE', schema=(:Disease {name}), indexProvider='native-btree-1.0' )'."), <traceback object at 0x000001A202430688>), file: connector.py,line: 99
Connection error:{code: Neo.ClientError.Schema.EquivalentSchemaRuleAlreadyExists} {message: An equivalent constraint already exists, 'Constraint( id=5, name='constraint_80dda1d2', type='UNIQUENESS', schema=(:Tissue {id}), ownedIndex=4 )'.}.
(<class 'neo4j.exceptions.ClientError'>, ClientError("An equivalent constraint already exists, 'Constraint( id=5, name='constraint_80dda1d2', type='UNIQUENESS', schema=(:Tissue {id}), ownedIndex=4 )'."), <traceback object at 0x000001A202366708>), file: connector.py,line: 99
Connection error:{code: Neo.ClientError.Schema.EquivalentSchemaRuleAlreadyExists} {message: An equivalent index already exists, 'Index( id=6, name='index_846155cf', type='GENERAL BTREE', schema=(:Tissue {name}), indexProvider='native-btree-1.0' )'.}.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions