Skip to content

Commit

Permalink
structure database loading example
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Oct 16, 2024
1 parent 2e49164 commit 8656bb4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/structuredb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from omnipath_metabo.schema import _main
from omnipath_metabo.schema import _structure

d = {
'user': 'metabo',
'password': 'metabo123',
'host': 'localhost',
'port': '5432',
'database': 'metabo',
}
db = _main.Database(d)

h = _structure.LipidMaps()

db.load(h)

0 comments on commit 8656bb4

Please sign in to comment.