Giter Site home page Giter Site logo

olson-ms-nb's Introduction

IPython Notebook for downloading and analyzing data from the manuscript: "Indication of family-specific DNA methylation patterns in developing oysters"


The repository includes a IPython notebook (.ipynb file) that can be downloaded and interactively executed. The code in the IPython notebook will download raw data and process data such that figures in the manuscript are reproduced (in theory).


To execute the IPython Notebook in its entirety you will need:


Sofware versions originally used in this analyses (on Mac OS X v10.7.5) are as follows:

  • IPython: 2.3.0
  • BSMAP: 2.74
  • bedtools: 2.17.0
  • R: 3.1.1
  • rpy2: 2.5.0

Note the current version of the IPython Notebook can be viewed (not interactive) in any web browser at: http://nbviewer.ipython.org/github/che625/olson-ms-nb/blob/master/BiGo_dev.ipynb


##Instructions

1) Download the repository zip file to a local directory and uncompress. This can be done by clicking on the link in the right sidebar or directly downloading: https://github.com/che625/olson-ms-nb/archive/master.zip

2) Launch IPython from the repository primary directory. For example, using Terminal on MacOSX.

$ cd /Desktop/olson-ms-nb
$ ipython notebook

This will launch IPython in your web browser.

screenshot
nb

3) Open notebook by clicking on BiGo_dev.ipynb. This will open a new tab in your browser.

screenshot
nb2

4) Execute cells in notebook The first section of the notebook includes code to download raw data in wd subdirectory. In theory, assuming all dependencies are installed

  • BSMAP
  • bedtools
  • R
  • rpy2 (interface to R from Python)

you could edit the cell near the top to provide the location of BSMAP on your machine, then run all cells (see screenshot). Raw data will be downloaded, and analyses carried out, producing figures (2) in manuscript. Please note data is very large (>20 GB) and analyses will take several hours depending on your machine.

screenshot
nb3

In practice, you can execute cells individually with shift-enter.


We are actively trying to improve this realizing that we are likely missing dependancies, etc. Any suggestions and feedback is welcome.

olson-ms-nb's People

Contributors

che625 avatar sr320 avatar

Stargazers

 avatar wynn burke avatar

Watchers

James Cloos avatar  avatar  avatar

olson-ms-nb's Issues

IPython

Capital "I" -
fix in figshare too..

Small suggestion for reproducibility

Nice work! It is very refreshing to see such a clear documentation of analysis.

Just had a couple small suggestions that you may include if you wish:

  1. Print out version info for all software used. In some cases this is already clear, but It can help to include a chunk at the end where you spit out the versions for R, Python, Linux, etc. along with an R call to sessionInfo().
  2. If you want to make it easier to view the notebook, you can include a link to nbviewer in your README, e.g.:

View analysis

Cheers,
Keith

More instructions in README.md

The README.md file needs more specific instructions about how to navigate the code. Then I would be happy to attempt to go through it.

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.