Cytoscape視頻教程

歡迎關(guān)注天下博客:http://blog.genesino.com/2017/08/cytoscape-layout/
Jump to...

  1. 基本操作
  2. miRNA-mRNA調(diào)控網(wǎng)絡(luò)
  3. 不同的布局的調(diào)試和修改
    1. Attribute Circle Layout
    2. Group Attributes Layout
    3. Prefuse Force Directed Layout
    4. Compound Spring Embedder Layout
    5. Edge-weighted Spring-Embedded Layout
    6. yFiles Organic Layout

Cytoscape已成為網(wǎng)絡(luò)圖繪制的核心工具,基因表達(dá)調(diào)控網(wǎng)絡(luò)、蛋白互作網(wǎng)絡(luò)、miRNA-gene調(diào)節(jié)關(guān)系、分析流程、組織架構(gòu)等任何與網(wǎng)絡(luò)、結(jié)構(gòu)、層級(jí)有關(guān)系的事情都可以用Cytoscape來(lái)繪制。前期的教程中有Cytoscape的基本使用,早期錄制的Cytoscape視頻教程, 含安裝和基本使用等。

從上次錄制視頻,到現(xiàn)在Cytoscape也有了不少更新,個(gè)人對(duì)Cytoscape的體會(huì)也有了進(jìn)步,更主要的是不少人反應(yīng)之前的視頻不夠清晰,或?qū)嵜蚰涿?(匿名的都沒(méi)回復(fù))的聯(lián)系我要清晰版。實(shí)際我也沒(méi)有,不知道為啥傳上去就不清晰了,這次錄制了全屏版,希望效果能好些。

本次三個(gè)視頻,截圖不同的角度。

基本操作

利用一個(gè)簡(jiǎn)單的組織構(gòu)建圖展示Cytoscape的基本使用,導(dǎo)入網(wǎng)絡(luò)、導(dǎo)入節(jié)點(diǎn)屬性,更改點(diǎn)的形狀、顏色,在點(diǎn)上插入圖片、繪制餅圖、柱狀圖、加入顏色條紋,點(diǎn)的手動(dòng)對(duì)齊、橫向分布等。

網(wǎng)絡(luò)文件和節(jié)點(diǎn)屬性文件都是正常矩陣格式,若有中文需使用UTF-8編碼;若非EXCEL文件,不能有xls后綴。

<embed src="https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=p0541x250n9&auto=0" allowfullscreen="true" quality="high" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" id="fitvid528241" style="box-sizing: border-box; position: absolute; top: 0px; left: 0px; width: 680px; height: 566.662px;">

miRNA-mRNA調(diào)控網(wǎng)絡(luò)

Cytoscape可用于繪制基因共表達(dá)網(wǎng)絡(luò),這兒選取miRNA-gene調(diào)控網(wǎng)絡(luò) (含miRNA-gene表達(dá)相關(guān)性數(shù)據(jù))做為例子,涉及到根據(jù)表達(dá)變化倍數(shù)對(duì)每個(gè)點(diǎn)進(jìn)行著色、根據(jù)表達(dá)相關(guān)性對(duì)線進(jìn)行著色、miRNA和靶基因采用不同的形狀表示、微調(diào)獲得合適的展示圖形、結(jié)果導(dǎo)出PDF格式、導(dǎo)出圖例等。

<embed src="https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=z0541oby69q&auto=0" allowfullscreen="true" quality="high" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" id="fitvid235789" style="box-sizing: border-box; position: absolute; top: 0px; left: 0px; width: 680px; height: 566.662px;">

不同的布局的調(diào)試和修改

網(wǎng)絡(luò)繪制根據(jù)網(wǎng)絡(luò)圖的大小、展示的用意可以選擇合適的布局。Cytoscape提供了多種布局算法,具體見(jiàn)http://manual.cytoscape.org/en/stable/Navigation_and_Layout.html。

下面列出幾種示例

Attribute Circle Layout

屬性環(huán)展示方式所有的節(jié)點(diǎn)都在環(huán)上,適用于點(diǎn)比較少的時(shí)候。環(huán)上點(diǎn)的順序可以根據(jù)某一列來(lái)調(diào)整。

image

Group Attributes Layout

先按某一列的值對(duì)點(diǎn)進(jìn)行分組,每個(gè)分組的點(diǎn)成為一個(gè)獨(dú)立的環(huán)。在區(qū)分上下調(diào)基因時(shí),可以按這個(gè)來(lái)分類,看不同類的基因的調(diào)控關(guān)系。

[圖片上傳失敗...(image-9a7815-1524747079960)]

Prefuse Force Directed Layout

通常也可以獲得比較好的結(jié)果,相連的點(diǎn)鄰接,其它點(diǎn)較遠(yuǎn)。同時(shí)可以根據(jù)某一列設(shè)置邊的強(qiáng)度作為連線的長(zhǎng)度。

image

Compound Spring Embedder Layout

復(fù)雜網(wǎng)絡(luò)適用這個(gè),尤其是連線特別多時(shí)。

image

Edge-weighted Spring-Embedded Layout

所有的邊視為連接2個(gè)節(jié)點(diǎn)的彈簧。每一個(gè)彈簧有一個(gè)松弛狀態(tài)下的期望長(zhǎng)度 (resting length)和壓縮強(qiáng)度。算法會(huì)迭代所有的彈簧,并進(jìn)行仿真模擬獲得每個(gè)彈簧的最佳長(zhǎng)度。是比較常用的一種,其獲得結(jié)果也是一個(gè)環(huán),但對(duì)空間的利用比下面兩種要好。

[圖片上傳失敗...(image-b6a1c5-1524747079960)]

yFiles Organic Layout

也是一種Spring-embeded的算法,可以展示網(wǎng)絡(luò)圖的聚類結(jié)構(gòu)。

image

<embed src="https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=w05410fbsys&auto=0" allowfullscreen="true" quality="high" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" id="fitvid133353" style="box-sizing: border-box; position: absolute; top: 0px; left: 0px; width: 680px; height: 566.662px;">

參考

  1. Cytoscape的基本使用
  2. 早期錄制的Cytoscape視頻教程, 含安裝和基本使用
  3. http://blog.genesino.com/2012/04/cytoscape-basic-usage/
  4. http://manual.cytoscape.org/en/stable/Navigation_and_Layout.html
  5. https://www.slideshare.net/keiono/introduction-to-biological-network-analysis-and-visualization-with-cytoscape-part1
  6. 新出爐的Cytoscape視頻教程

<footer class="entry-meta" style="box-sizing: border-box; display: block; font-size: 0.75rem; text-transform: uppercase; color: rgba(187, 187, 187, 0.8); margin: 50px 30px 30px; text-align: center; font-family: Lato, Calibri, Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">CYTOSCAPEBIOINFOCHENTONG
版權(quán)聲明:本文為博主原創(chuàng)文章,轉(zhuǎn)載請(qǐng)注明出處。

alipay.png
image.png

</footer>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容