GithubHelp home page GithubHelp logo

wangx677 / safepy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baryshnikova-lab/safepy

0.0 1.0 0.0 26.73 MB

Python implementation of Spatial Analysis of Functional Enrichment (SAFE)

License: GNU General Public License v3.0

Python 100.00%

safepy's Introduction

INTRODUCTION

SAFE (or Spatial Analysis of Functional Enrichment) is an automated network annotation algorithm. Given a biological network and a set of functional groups or quantitative features of interest, SAFE performs local enrichment analysis to determine which regions of the network are over-represented for each group or feature. SAFE visualizes the network and maps the detected enrichments onto the network.

SAFE was originally implemented in MATLAB and stored at https://bitbucket.org/abarysh/safe/. However, as of early 2017, the MATLAB implementation is only maintained for legacy purposes. New work related to SAFE is moving to Python and this repository.

WARNING. This package is still in development. Please use caution.

GETTING STARTED

SAFE requires Python 3 and a set of packages listed in extras/requirements.txt. We recommend setting up a virtual environment and installing all the required packages via pip:

cd safepy/
virtualenv -p python3.6 safepy_env
source safepy_env/bin/activate
pip install -r extras/requirements.txt

After the installation is complete, it is useful to run a "hello world" SAFE analysis using the Jupyter notebook at examples/Usage_examples.ipynb.

To do so, from within the safepy_env environment install a new ipython kernel:

ipython kernel install --user --name=safepy

Then start jupyter, open examples/Usage_examples.ipynb and select the safepy kernel.

jupyter-notebook

To run the examples, several common datasets will be required (e.g., the genetic interaction similarity network from Costanzo et al., 2016). These datasets are stored separately at https://github.com/baryshnikova-lab/safe-data (to avoid duplication with other SAFE-related repositories and packages). We recommend cloning the safe-data repository and storing it locally (e.g., at <path_to_safe-data_folder>). In addition, it is necessary to edit the SAFE settings file (at safepy/safe_default.ini) with the path to the safe-data folder.

vim safe_default.ini
...
[DEFAULT]
safe_data = <path_to_safe-data_folder>
...

HELP

Please direct all questions/comments to Anastasia Baryshnikova ([email protected]).

The main repository for this code is at https://github.com/baryshnikova-lab/safepy. Please subscribe to the repository to receive live updates about new code releases and bug reports.

HOW TO CITE

The manuscript describing SAFE and its applications is available at:

Baryshnikova, A. (2016). Systematic Functional Annotation and Visualization of Biological Networks. Cell Systems. http://doi.org/10.1016/j.cels.2016.04.014

safepy's People

Contributors

abarysh avatar gturco avatar

Watchers

Wen Wang 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.