GithubHelp home page GithubHelp logo

wpzgithub / conmod Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 259 KB

Identifying conserved functional modules in multiple biological networks

License: GNU General Public License v3.0

MATLAB 100.00%
multi-view-clustering non-negative-matrix-factorization tcga-data

conmod's Introduction

ConMod

This algorithm is used for identifying conserved functional modules in multiple networks, as described in:

Feature related multi-view nonnegative matrix factorization for identifying conserved functional modules in multiple biological networks. Peizhuo Wang, Lin Gao, Yuxuan Hu and Feng Li. BMC Bioinformatics, 2018, 19(1): 394.

This algorithm is implemented primarily in Matlab 2015b.

Usage

Input format

The code takes a series of networks as an input. These networks must be stored in a variable of type cell in matlab. Each network can be represented by the following two types:

  1. adjacency matrix
  2. edge list, e.g:
1 2 0.62
1 3 0.88
2 9 0.14
...

These codes are for generating synthetic datasets:

  • syn_dataset_common.m: Conserved modules have the same size and are common to a given set of networks.
  • syn_dataset_overlap.m: Conserved modules are present only in a subset of networks and they are the overlapping parts of specific modules across different networks.

Main functions

  • ConMod.m: The implementation of the ConMod algorithm.
function modulesfinal = ConMod(multiNetworks, N, K, lambda, xita, maxIter)
% INPUT:
%   multiNetworks: a cell contains multiple networks, each of which is presented by edgelist format or a full matrix with N nodes
%   N: the number of all nodes
%   K: the number of hidden factors
%   lambda: a vector which contains the parameters for balancing the relative weight among different views
%   xita:  the parameter for selecting nodes
%   maxIter:  the maximum number of iterations for multi-view NMF
%
% OUTPUT:
%   modulesfinal: a cell which contains the final conserved modules
  • featureNets.m: Compute two feature matrices which characterize the multiple networks.
function [Strength, Participation] = featureNets(multiNetworks, N)
% INPUT:
%   multiNetworks: a cell contains multiple networks, each is  presented by a sparse matrix or a full matrix with N nodes
%   N: the number of all nodes
%
% OUTPUT:
%   Strength : N x N matrix for Connection Strength
%   Participation : N x N matrix for Participation Coefficient
  • multiViewNMF.m: Multi-view non-negative symmetric matrix factorization.
function [H, Hc, objValue] = multiViewNMF(X, K, lambda, maxIter)
% INPUT:
%   X: a cell which contains symmetric matrices
%   K: the number of hidden factors
%   lambda: a vector which contains the parameters for balancing the relative weight among different views
%   maxiter: the maximum number of iterations
%
% OUTPUT:
%   H: a cell containing factor matrices for all views
%   Hc: the result consensus factor matrix
%   objValue: the value of objective function
  • moduleNodesSelection.m: Assigning the module members by a soft node selection procedure and then truing the modules to obtain more accurate results
function modulesFinal = moduleNodesSelection(Hc, xita)
% INPUT: 
%   Hc: the consensus factor matrix
%   xita: the parameter for selecting nodes
%
% OUTPUT:
%   modulesFinal: a cell which contains the final result modules

If you have any questions, please contact [email protected].

conmod's People

Contributors

wpzgithub avatar

Stargazers

 avatar  avatar

Watchers

 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.