require("devtools")
devtools::install_github("raywoo32/modCluster", dependencies=TRUE)
library("modCluster")

Introduction

For graphs with biological significance it is common for there to be "modules" associated with verticies. Some examples include sub-cellular location, co-expression module or GO-term. Modcluster stands for "cluster by module", and groups modules together if they have an increased edge density together. With this package biologists will be able to get an idea which modules share highly significant communication through edges.

This project was created following instruction provided by BCB410 at the University of Toronto. Important packages to its creation include igraph, knittr, mclust (documentation examples), Hadley Wickham's Rpackages, shiny and Boris Steipe's rpt package. For full citations please see README.Rmd.

Workflow Description

Very simply here follows a description of how modCluster operates

  1. Verify data format
  2. see Data Input section
  3. Group modules if they have an increased edge density between module than in the more connected module itself.
  4. Layout graph based on new modules
  5. Visualize graph
  6. Please see the DISPLAYCOMMUNITY Format section for more detail

Clustering example

A simple example of how to use modCluster

library(modCluster)
clusterByModule(edgesData, verticiesData, displayCommunity=FALSE)
clusterByModule(edgesData, verticiesData, displayCommunity=TRUE)

Data Input

modCluster only exports 1 function:

  1. modCluster::clusterByModule(EDGES, VERTICIES, DISPLAYCOMMUNITY)

EDGES Format

| GENE1 | GENE2 | WEIGHT | |-------|------ |--------| | G1 | G2 | 1 |

VERTICIES Format

| GENE | MODULE | |------|--------| | G1 | 1 |
| G2 | 2 |

DISPLAYCOMMUNITY Format

displayCommunity a boolean flag to choose to display community markers.

displayCommunity=TRUE

displayCommunity=FALSE

References

For other references please see README.Rmd Scrucca L., Fop M., Murphy T. B. and Raftery A. E. (2016) mclust 5: clustering, classification and density estimation using Gaussian finite mixture models The R Journal 8/1, pp. 205-233

sessionInfo()


raywoo32/modCluster documentation built on Dec. 8, 2019, 3:05 p.m.