Giter Club home page Giter Club logo

ohmnet's Introduction

OhmNet

The OhmNet algorithm learns feature representations for nodes in any (un)directed, (un)weighted multi-layer network. Please check the project page for more details.

Usage

To run OhmNet on human brain multi-layer network with nine layers, run the following command from the project home directory:

python2.7 main.py --input "data/brain.list" --outdir "tmp" --hierarchy "data/brain.hierarchy" 

Options

To check OhmNet's running options, use:

python2.7 main.py --help

Output

Results are saved to output directory specified by the out_dir option.

The output file leaf_vectors.emb contains feature representations for nodes at the level of leaves in the hierarchy (i.e., leaves in the hierarchy correspond exactly to network layers).

The first line has the following format:

total_num_of_nodes_in_layers dim_of_representation

The next total_num_of_nodes_in_layers lines are as follows:

node_id dim1 dim2 ... dimd

where node_id is formatted as network_layer_name__node_id, and dim1, ... , dimd is the d-dimensional representation learned by OhmNet.

The output file internal_vectors.emb contains feature representations for nodes at higher levels in the hierarchy (i.e., internal levels in the hierarchy contain feature representations at intermediate/higher scales).

The first line has the following format:

total_num_of_nodes_in_hierarchy dim_of_representation

where total_num_of_nodes_in_hierarchy is equal to (size_hierarchy - num_layers) * total_num_nodes.

The next total_num_of_nodes_in_hierarchy lines are as follows:

node_id dim1 dim2 ... dimd

where node_id is formatted as hierarchy_element_name__node_id, and dim1, ... , dimd is the d-dimensional representation learned by OhmNet.

Citing

If you find OhmNet useful for your research, please consider citing the following paper presented at ISMB/ECCB 2017:

@article{Zitnik2017,
  title     = {Predicting multicellular function through multi-layer tissue networks},
  author    = {Zitnik, Marinka and Leskovec, Jure},
  journal   = {Bioinformatics},
  volume    = {33},
  number    = {14},
  pages     = {190-198},
  year      = {2017},
  publisher = {Oxford Journals}
}

Miscellaneous

Please send any questions you might have about the code and/or the algorithm to [email protected].

Note: This is a full Python implementation of OhmNet algorithm. A C++ implementation will be released as part of SNAP software.

Dependencies

OhmNet is tested to work under Python 2.7.

The required dependencies for OhmNet are NumPy >= 1.12, and NetworkX >= 1.11.

License

OhmNet is licensed under the MIT License.

ohmnet's People

Contributors

marinkaz 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.