Coder Social home page Coder Social logo

ud985's Introduction

UD-985

This repository contains scripts and data needed for the experiments described below.

EVERYTHING IN THIS REPO EXPERIMENTAL AND MAY CONTAIN ERRORS. USE AT YOUR OWN RISK.

The Problem

Currently the Community Detection App (CDAPS) allows users to run four community detection apps wrapped in containers (OSLOM, CliXO, Infomap, & Louvain) but the app requires the user to invest significant effort to decide on optimal parameters to use.

The Ultimate Goal

The ultimate goal is to empower CDAPS with features that makes it easier for users to generate "useful" clusters/hierarchies.

A “useful” cluster/hierarchy is defined by a set of attributes possessed in the resulting cluster/hierarchy. What those attributes are is still up for debate.

The Intermediate Goal

Given a set of attributes about a network try to predict the number of clusters that a specific algorithm will generate when run on the network.

Desired outcome

We want to gain insight as to whether a neural network can deduce a pattern for predicting outcomes from clustering algorithms. If neural networks are successful prediction, then experiments with more advanced predictive neural networks can be performed.

Experiment

  1. Take Bioplex and generate thousands of subnetworks in two ways
    1. By generating random sub networks generate_subgraph.py
    2. By generating sub networks using GO terms generate_gosubgraph.py
  2. Create a neural network in PyTorch that takes a set of basic network attributes (# nodes, # edges, avg node degree etc..) and outputs a single number denoting number of clusters that will be generated
  3. Generated training data by running Infomap on networks from step 1
  4. Need to verify there is not wild variability when feeding same input to Infomap repeatedly.
  5. Use 80% of data from step 3 to train the neural network
  6. Run prediction on remaining 20%
  7. Assess predictive power
  8. If successful repeat for CliXO, Louvain, OSLOM … could also vary parameters and see if prediction holds for a new model trained with alternate parameters and whether the old models do well

Note

For Infomap use some default set of parameters that tend to give good hierarchies.

Design of Neural Network

docs/images/predictclustersgraph.png

Description of the inputs

Scripts Requirements

  • ndex2 client > 3.3.1 & < 4.0.0
  • pandas
  • pytorch
  • networkx > 2.3
  • matplotlib

Scripts and what they do

  • create_trainingdata.py

    Takes networks created from generate_subgraph.py or generate_gosubgraph.py along with output from a community detection algorithm and generates training data usable by predict_clusters.py

  • extract_trainingdata.py

    NOT IMPLEMENTED This script will take training data generated by create_trainingdata.py and attempt to normalize the data by extracting a subset of the data where the number of clusters is evenly distributed

  • generate_subgraph.py

    Creates networks from an input CX network by randomly picking nodes or selecting nodes matching genes for GO terms

  • plot_trainindata.py

    Creates plots from training data generated by create_trainingdata.py

  • predict_clusters.py

    Runs training and prediction

ud985's People

Contributors

coleslaw481 avatar

Watchers

 avatar James Cloos 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.