|
|
## About ###
|
|
|
The ModuleViewer project was originally started to browse [[LeMoNe]] and [[Enigma]] output efficiently on a desktop pc and independently of the rest of both applications that generate the data. We also wanted one common viewer to maintain, that could handle both data generated by Enigma and LeMoNe.
|
|
|
Both applications were slightly altered to generate compatible output.
|
|
|
|
|
|
By separating the graphical libraries and the GUI application with parsers, and by keeping the code as generic as possible, ModuleViewer became a handy tool to generate figures for all kinds of expression matrices and their associated data.
|
|
|
|
|
|
Click [here][presentation] to download a short presentation about ModuleViewer (BEG Lunch Meeting of 25 Oct. 2011.
|
|
|
[presentation]: <wiki/docs/moduleviewer.odp>
|
|
|
|
|
|
|
|
|
## File Type ####
|
|
|
|
|
|
Creation of images relies on at least two types of data: the data matrix and the modules file. Optionally, this can be extended with regulator data, a condition tree, and annotation files.
|
|
|
|
|
|
* **data matrix**: The expression data. The header contains the name of all experiments (conditions), the first column represents gene names. The rest of the data consists of the expression data.
|
|
|
* **gene file**: Either an XML file with modules and genes, possibly grouped together into a tree structure, or a simple list of modules with their genes.
|
|
|
* **condition tree**: (optional) XML file with conditions to be displayed per module, possibly grouped together into a tree structure.
|
|
|
* **regulator tree**: (optional) XML file with regulator genes or a simple list of regulators assigned to modules.
|
|
|
* **annotations**: Most information that should be drawn around the central module matrices, can be described as: "Module number x lists genes or conditions y1, y2, y3, ... as having property z". Optionally each gene or condition can be linked to an extra data point (color, integer, ...). For this purpose, we created the [[MVFFormat]].
|
|
|
|
|
|
Demo data can be downloaded here: [[ModuleViewerDemoData]].
|
|
|
|
|
|
|
|
|
## Running ModuleViewer ######
|
|
|
|
|
|
### Start ModuleViewer ####
|
|
|
|
|
|
[![Java WebStart](http://genomeview.org/webstart.gif)](http://bioinformatics.psb.ugent.be/webtools/moduleviewer/launch.jnlp)
|
|
|
|
|
|
### Pre-loaded data ####
|
|
|
|
|
|
[![Java WebStart](http://genomeview.org/webstart.gif)](http://bioinformatics.psb.ugent.be/webtools/moduleviewer/launch.jnlp?expmatrix=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered&modules=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered_geneTree.xml&conditions=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered_conditionTree.xml®ulators=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered_regulatorTree.xml&annotations=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/Annotations.mvf)
|
|
|
|
|
|
### Run locally ###
|
|
|
|
|
|
Alternatively, you can clone the code from the repository (master or stable tag), compile it using [maven][] and run it from the command line. Maven will take care of downloading the dependencies. The dependency on [ModuleGraphics][] is not served from any maven repository (yet), so you first need to clone that code and also maven install it as well.
|
|
|
|
|
|
A GUI will be launched from which you can load your data and browse the output figures.
|
|
|
|
|
|
[webstart]: http://bioinformatics.psb.ugent.be/webtools/moduleviewer/launch.jnlp
|
|
|
[maven]: https://maven.apache.org/
|
|
|
[ModuleGraphics]: https://gitlab.psb.ugent.be/thpar/ModuleGraphics
|
|
|
|
|
|
## Command line options #########
|
|
|
|
|
|
Both the command line and the webstart version allow to specify input files at launch. This allows an application or pipeline to automatically open ModuleViewer to show output figures.
|
|
|
Files can be either local files or URLs.
|
|
|
|
|
|
```
|
|
|
usage: ModuleViewer
|
|
|
-a,--annotations <annotation file> One or more MVF annotation files
|
|
|
-c,--conditions <condition file> Condition tree file
|
|
|
-e,--expmatrix <matrix file> The expression matrix
|
|
|
-h,--help Show this help
|
|
|
-m,--modules <module file> Module file (XML or flat list)
|
|
|
-r,--regulators <regulator file> Regulator file (XML or flat list)
|
|
|
-s,--synonyms <synonym file> Gene ID - synonym mapping
|
|
|
```
|
|
|
|
|
|
Launch the viewer with demo data [pre-loaded][].
|
|
|
|
|
|
[pre-loaded]: http://bioinformatics.psb.ugent.be/webtools/moduleviewer/launch.jnlp?expmatrix=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered&modules=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered_geneTree.xml&conditions=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered_conditionTree.xml®ulators=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/hughratcur_nan_filtered_regulatorTree.xml&annotations=http://bioinformatics.psb.ugent.be/webtools/moduleviewer/testdata/Annotations.mvf
|
|
|
|