GithubHelp home page GithubHelp logo

chematox-db's Introduction

Chematox-db

Table of contents


Project Description

Chematox labs collected toxicology data for many years in the state of Colorado. This project is an attempt to analyze that data through visualization and statistical means. The end goal is to provide a resource for researchers interested in toxicology data and understanding trends in drug use over time. This data set is of particular interest because it will straddle the legalization of marijuana in Colorado in 2014.
I have been given permission to use this data by the owner of Chematox, Sarah Urfer, and steps have been taken to anonymize this data. If you spot any security issues please reach out to me.

Future plans include

  • API for querying entire database
  • Statistical analysis of data via Pandas python data analysis library
  • Front end for visualization of data in charts and graphs

Setup

  • Ruby 3.2.1
  • Rails 7.0.4.2'
  • Fork this repository
  • Clone your fork
  • From the command line, install gems and set up your DB:
  • bundle install
  • rails db:{create,migrate,seed}
  • run the server with 'rails s'

Schema:

The schema of the project includes a table for Samples and Results.

  • Drop in the code below to dbdiagram.io for interactive diagram
Table "results" {
  "id" varchar
  "sample_id" bigint
  "drug" integer
  "level" string
  "unit" string
  "created_at" datetime
  "updated_at" datetime
}

Table "samples" {
  "id" varchar
  "subject_age" integer
  "line_number" integer
  "agency" string
  "offense" datetime
  "draw" datetime
  "created_at" datetime
  "updated_at" datetime
}

Ref "fk_rails_results_samples":"results"."sample_id" - "samples"."id"

Endpoints

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.