Simple tutorial for cytoscape usage

What is cytoscape

Cytoscape is an open source software platform for visualizing molecular interaction networks and biological pathways and integrating these networks with annotations, gene expression profiles and other state data. Although Cytoscape was originally designed for biological research, now it is a general platform for complex network analysis and visualization. Cytoscape core distribution provides a basic set of features for data integration, analysis, and visualization. Additional features are available as Apps (formerly called Plugins). Apps are available for network and molecular profiling analyses, new layouts, additional file format support, scripting, and connection with databases. They may be developed by anyone using the Cytoscape open API based on Java™ technology and App community development is encouraged. Most of the Apps are freely available from Cytoscape App Store.

How to install cytoscape

  • Install Java if you do not have one.

  • Download cytoscape.

  • App installation

    • Cytoscape menu bar –> Apps –> App manager –> Browse and install apps.
    • cytoscape APP install

Simple cytoscape usage

A toy data (saved in toy.txt)

SUPERIOR	SUBORDINATE
Dean	Vice dean1
Dean	Vice dean2
Vice dean1	DirectorA
Vice dean2	DirectorB
Vice dean1	DirectorC
Vice dean1	DirectorD
DirectorA	T1
DirectorA	T2
DirectorB	T3
DirectorB	T4
DirectorB	T5

The toy network

toy network

The video tutorial to show how to use cytoscape to transfer the text into a network.

More cytoscape operations

Node searching, adding, deletion, selection and attribute chaning
  • Files needed
  • The video tutorial
Heatmap nodes color using expression data
  • Files needed
  • Effect picture
    • cytoscape_galfilter.png
Cytoscape mapping gene expression to KEGG pathway
  • Time-series expression profile within KEGG pathway

kegg_expression

  • Files needed
    • KEGG pathway xml file, like ko00900.xml
      • ko00900.xml
    • Expression data for genes involved in ko00900 pathway
  • Plugins needed
    • KEGGscape: used to parse XML files of KEGG pathway
    • enhancedGraphics: used to do barPlot and linePlot
  • The video tutorial

Import a table to construct network

  • Import - Network - File - Selet a two-column file, then a network is constructed.
  • Tools - NetworkAnalyzer - Network Analysis - Analyze network, the attribute of the network is analyzed. The analyzing result can be used to set the visualization styles of nodes and edges.

Layout

Attribute Circle Layout is my favorite algorithm to show networks especially when you select some nodes. This algorithm can put nodes with same values together when you are performing Attribute Circle Layout by the related attributes.

For example, I have two classes of genes, one is upregulated, the other is downregulated. This information is saved in a two columns file with the first column containing gene names and the second column named expr containing 0 (down-regulated) and 1 (up-regulated). This file can be imported into Cytoscape by File - Import - Table. Following one can select all these genes and perform Attribute Circle Layout by expr.

Select nodes

Select-Nodes-From ID list file (working in Cytoscape 3.1.1)

Color specific nodes

  • Contruct a at-least two columns file to represent nodes and their attributes. Make sure the attribute columns have unique names to facilitate selection.
  • Import this attribute file as Node Table Column through FIle - Import - Table.
  • Set node color by given attributes using given column names.
CHENTONG
版权声明:本文为博主原创文章,转载请注明出处。
alipay.png

CHENTONG

CHENTONG
积微,月不胜日,时不胜月,岁不胜时。凡人好敖慢小事,大事至,然后兴之务之。如是,则常不胜夫敦比于小事者矣!何也?小事之至也数,其悬日也博,其为积也大。大事之至也希,其悬日也浅,其为积也小。故善日者王,善时者霸,补漏者危,大荒者亡!故,王者敬日,霸者敬时,仅存之国危而后戚之。亡国至亡而后知亡,至死而后知死,亡国之祸败,不可胜悔也。霸者之善著也,可以时托也。王者之功名,不可胜日志也。财物货宝以大为重,政教功名者反是,能积微者速成。诗曰:德如毛,民鲜能克举之。此之谓也。

R 学习

R语言是比较常用的统计分析和绘图语言,拥有强大的统计库、绘图库和生信分析的Bioconductor库,是学习生物信息分析的必备语言之一。Rstudio是编辑、运行R语言的最为理想的工具之一,支持纯R脚本、Rmarkdown (脚本文档混排)、Bookdown (脚本文档混排...… Continue reading

本地使用Rfam 12.0+

Published on June 16, 2017

Linux学习(一)- 文件和目录

Published on June 08, 2017