https://github.com/aplbrain/motif2cypher
A command-line executable to convert DotMotif syntax to Cypher (for use with Neo4j)
https://github.com/aplbrain/motif2cypher
Last synced: 12 months ago
JSON representation
A command-line executable to convert DotMotif syntax to Cypher (for use with Neo4j)
- Host: GitHub
- URL: https://github.com/aplbrain/motif2cypher
- Owner: aplbrain
- License: apache-2.0
- Created: 2022-07-08T14:33:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T15:53:54.000Z (almost 4 years ago)
- Last Synced: 2025-01-22T00:16:18.561Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# motif2cypher
A command-line executable to convert [DotMotif](https://github.com/aplbrain/dotmotif) syntax to Cypher (for use with Neo4j)
## Usage
```shell
python3 motif2cypher.py < tri.motif
```
```shell
python3 motif2cypher.py -f tri.motif -o tri.cypher --neuprint
```
## Arguments
| Argument | Description |
| --------------- | ---------------------------------------------------------------------------------------------------- |
| `-f`,`--file` | The input (`*.motif`) file to read from. If this is not specified, the program will read from stdin. |
| `-o`,`--output` | The output file to write to. If this is not specified, the program will write to stdout. |
| `--neuprint` | If this is specified, the program will write the output using the neuPrint data schema. |