Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions create_knowledge_graph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from biocypher import BioCypher, FileDownload
from template_package.adapters.example_adapter import (
ExampleAdapter,
Expand All @@ -20,7 +21,7 @@
lifetime=7, # seven days cache lifetime
)
paths = bc.download(resource) # Downloads to '.cache' by default
print(paths)
print(paths, file=sys.stderr)
# You can use the list of paths returned to read the resource into your adapter

# Choose node types to include in the knowledge graph.
Expand Down Expand Up @@ -63,7 +64,9 @@
bc.write_edges(adapter.get_edges())

# Write admin import statement
bc.write_import_call()
import_file = bc.write_import_call()

# Print summary
bc.summary()

print(import_file)