Coder Social home page Coder Social logo

geneed's Introduction

GeneEd

This application provides a platform for users to learn about the genetics of diseases, as well as genetics of common appearance traits. Users can search for genes that are associated with disease names and phenotype descriptions as well as DNA or protein sequences. It makes the world of genetics easy to explore for younger students or curious adults and would be of great use to high school science classrooms.

Installation and Usage

  1. Clone the repository to your computer

    git clone https://github.com/xinyu-g/geneEd.git
    
  2. Create a new conda environment for GeneEd. If you do not have conda, install Miniconda from here first.

    conda env create -f environment.yaml
    

Building the database.

  1. concatenate all drugsGenes, genePhenoDis, and geneProSeq into 3 files. Remove duplicate headers (column metadata). Place these files in data/.
  2. Run create_relations.py to get 5 csv files representing the relations.
  3. Copy the generated SQL files to MySQL's uploads directory. On windows, this is in C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\. This is the only directoru that MySQL trusts by default.
  4. Run sql/data.sql in MySQL workbench or a shell to build the schema and insert data into all tables but the gene table.
  5. use sql/users.sql to create the user and favoriyes table.
  6. Run csv2sql.py on gene.csv to generate gene.sql. This will take some time but reports progress.
  7. Log in to the database with a commandline client. Select the geneEd database. Run source gene.sql to populate the database. Some records will fail to insert but this is okay. SELECT COUNT(*) FROM gene should return 1024.
  8. The database should be complete.

Alternatively, use the dumpfile Hunter created to generate the entire database. (I generated this late last night and did not test).

geneed's People

Contributors

1ndy avatar xinyu-g avatar shenganzhang 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.