Giter VIP home page Giter VIP logo

ctd_ingest's Introduction

Toy repository to try out several biolink-model predicate refactoring methods Will generate KGX formatted files

prereqs:

  • must have ingest.py in two level deep directory (here: ingests/name_of_ingest)
  • download and decompress manually
  • make sure name in source.yaml matches name of py file and yaml file

For local development:

transform CTD csv to KGX format:

poetry install
poetry run koza transform --source ingests/ctd_chemical_to_gene/ctd_chemical_to_gene.yaml --output-format tsv

remove duplicate nodes? - results in some weird top level rows:

poetry install
poetry run python ctd_ingest/main.py merge --input-dir output --output-dir output/merged
poetry run kgx transform --transform-config neo4j-transform.yaml

load to neo4j with kgx:

docker build -t neo4j-plater .
docker images
docker run -p7474:7474 -p7687:7687  --env NEO4J_AUTH=none --name neo4j-plater 08d381cea73a
poetry run python ctd_ingest/load_neo.py --nodes output/ctd_chemical_to_gene_nodes.tsv --edges output/ctd_chemical_to_gene_edges.tsv --uri bolt://localhost:7687

spin up a TRAPI endpoint with plater

  • fork plater
  • fill out .env
  • fill out openapi yaml
  • make sure the servers param in openapi has the http version else defaults to https
  • make sure to access via localhost not 0.0.0.0 (matching the servers param)
  • ./main.sh navigate to localhost:port/docs to see TRAPI endpoints

ctd_ingest's People

Contributors

kevinschaper avatar sierra-moxon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kevinschaper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.