Code Monkey home page Code Monkey logo

oncogen's Introduction

OnCoGen

A repository for a code-generating software package that takes an ontology descriptive of classes of scientific metadata and generates database tables and services.

Dependencies

This software relies on two packages which must be downloaded and configured before use.

  1. Docker
  1. Python & Pip

Installation Instructions

  1. From the top level directory of this project enter the following code on the command line
pip install -r requirements.txt

Running Instructions

Linux or Mac

  1. Navigate to the "Generator/" directory in the command line.
  2. From the "Generator/" directory run the following lines of code:
chmod 700 BuildAndRun.sh
./BuildAndRun.sh
  • The first line make the bash script executable
  • The second line runs the code generation driver, runs and configures generated docker containers and navigates the user into the database container.
  1. To test and view tables, from inside the DataBase Container, run the following code:
psql <DataBaseName> OnCoGen
  • Note: will be the string contained in the "nrdcrsh:abbreviation" tag in the ontology xml with a "_DB" appended to the end of it. Using the default ontology bundled with this software will be "NRDC_DB".
  1. Generated tables can be seen by typing:
\dt
  1. To load default test data into the tables input the following
\i <filename>.sql
  • Note: The default test SQL file which loads data into the default NRDC_DB is called "Tests.sql". If you wish to modify this file or add your own file to test your own schema, you may add an additional file to this directory or modify this file freely. The container will detect any new added files or modifications to exiting files in this directory.
  1. a. To exit the sql program use the following command:
\quit
  1. b. To exit the container run the following command:
\exit
  1. If you desire to spin down generated containers or clean out generated files run the following lines of code from the OnCoGen/Generator/ directory:
chmod 700 Clean.sh
./Clean.sh

oncogen's People

Contributors

cscully-allison avatar

Stargazers

Lewis John McGibbney avatar Stephen Richard avatar

Watchers

Stephen Richard avatar  avatar

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.