Giter VIP home page Giter VIP logo

neural_network_dna_demo's Introduction

Neural Network for Sequence Data

This project is an example how the recent advancements in Neural Networks can be applied to sequence data, namely DNA.

We will take a collection of sequences plus information if they are bound by a transcription factor as input data and after training a convolutional neural network we will be able to make predictions for new sequences. In addition we will extract what the network learned and make a plot of the motif.

The example are chosen such that it is not necessary to have a GPU and should learn just fine on a CPU.

Preparation

To make sure everybody can play around with the example easily and you do not need to install the dependencies, please follow the instructions below.

The code for this tutorial is written in Python and you will need a 2.7 or 3.5 installation (https://www.python.org/downloads/). If you have

Neural Networks are a complex topic and there are quite a few packages you need to install to get going. The easiest way to install packages in Python is to use Anaconda. In the following I will assume that you only have Anaconda installed.

Libraries

To run the the code in the tutorial you will need the following libraries:

  • Jupyter / IPython
  • Keras
  • Theano or Tensorflow
  • Numpy

Installation Steps

After the successful installation of Anaconda we will create a new conda environment to not pollute the default environment:

$ conda create -n seqnn python=3.5 
# On Windows
$ activate seqnn
# On Mac / Linux
$ source activate seqnn

Install Theano

$ conda install theano pygpu

Install other dependencies

$ conda install scikit-learn keras numpy scipy matplotlib ipython jupyter pandas sympy nose nb_conda

Download the Neural_Network_DNA_Demo project either by cloning it with git

$ git clone https://github.com/const-ae/Neural_Network_DNA_Demo.git

OR download this zip file and extracting it somewhere.

Move with the command line to the Neural_Network_DNA_Demo folder:

$ cd <LOCATION_OF_DOWNLOAD>/Neural_Network_DNA_Demo

and start the Jupyter notebook:

$ jupyter notebook

A new browser page should open where you can click on the .ipynb file and start experimenting.

Problems, Issues etc.

If you have problems with the installation of ...

  • ... Theano --> check this guide
  • ... Keras --> check this guide

or just open an issue here.

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.