Giter Club home page Giter Club logo

orbitalfeatures's Introduction

Orbital Strike

License codebeat badge repo size benedekrozemberczki

A NetworkX implementation of Biological Network Comparison Using Graphlet Degree Distribution (Bioinformatics 2007).


Abstract

Analogous to biological sequence comparison, comparing cellular networks is an important problem that could provide insight into biological understanding and therapeutics. For technical reasons, comparing large networks is computationally infeasible, and thus heuristics, such as the degree distribution, clustering coefficient, diameter, and relative graphlet frequency distribution have been sought. It is easy to demonstrate that two networks are different by simply showing a short list of properties in which they differ. It is much harder to show that two networks are similar, as it requires demonstrating their similarity in all of their exponentially many properties. Clearly, it is computationally prohibitive to analyze all network properties, but the larger the number of constraints we impose in determining network similarity, the more likely it is that the networks will truly be similar.

This repository provides an implementation of Orbital Role Counting as described in the paper:

Biological network comparison using graphlet degree distribution. Natasa Przulj. BioInformatics, 2007. [Paper]

Requirements

The codebase is implemented in Python 3.5.2. package versions used for development are just below.

networkx          1.11
tqdm              4.28.1
numpy             1.15.4
pandas            0.23.4
texttable         1.5.0
argparse          1.1.0

Datasets

The code takes the **edge list** of the graph in a csv file. Every row indicates an edge between two nodes separated by a comma. The first row is a header. Nodes should be indexed starting with 0. A sample graph for `Cora` is included in the `input/` directory.

Options

Training the model is handled by the src/main.py script which provides the following command line arguments.

Input and output options

  --graph-input    STR   Input graph path.       Default is `input/cora_edges.csv`.
  --output         STR   Features path.          Default is `output/cora_orbital_features.csv`.
  --graphlet-size  INT   Maximal subgraph size.  Default is 4.

Examples

The following command extracts the orbital role counts from the induced subgraphs up to the graphlet size order. The first column of the output is the node identifier and features are sorted by node identifiers.

$ python src/main.py

Extracting the counts for graphlets with size 5.

$ python src/main.py --graphlet-size 5

License


orbitalfeatures's People

Contributors

benedekrozemberczki avatar lavakin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

orbitalfeatures's Issues

Incorrect number of orbits obtain from 5node graphlet

Hi Benedekrozembercki,

I’m currently working on graph to count the number of time each orbits occur on each node. And had come across your respo which is what I need.

However the result isn’t correct, for graphlet-size 5 it return only 0-66 orbits, Which is supposedly to be 0-72.

Regards,
Jiajun

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.