溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

如何使用ggraph包繪制展示相關(guān)性的網(wǎng)絡(luò)圖

發(fā)布時(shí)間:2022-03-17 14:45:53 來(lái)源:億速云 閱讀:488 作者:小新 欄目:開(kāi)發(fā)技術(shù)

這篇文章主要為大家展示了“如何使用ggraph包繪制展示相關(guān)性的網(wǎng)絡(luò)圖”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“如何使用ggraph包繪制展示相關(guān)性的網(wǎng)絡(luò)圖”這篇文章吧。

ggraph包繪制展示相關(guān)性的網(wǎng)絡(luò)圖

使用方法:

$Rscript scripts/corr_network.r -h
usage: scripts/corr_network.r [-h] -g GENE_DATA -p P_DATA -r R_DATA
                              [-P P_VALUE] [-R R_VALUE] [-H HEIGHT] [-W WIDTH]
                              [-o OUTDIR] [-f PREFIX]

Network diagram of correlation:https://www.億速云.com/article/1574

optional arguments:
  -h, --help            show this help message and exit
  -g GENE_DATA, --gene_data GENE_DATA
                        Enter the file path that contains the gene symbol and
                        gene grouping[required]
  -p P_DATA, --p_data P_DATA
                        input data file path[required]
  -r R_DATA, --r_data R_DATA
                        input data file path[required]
  -P P_VALUE, --P_value P_VALUE
                        P value of correlation[optional,default 0.05]
  -R R_VALUE, --R_value R_VALUE
                        the correlation coefficient[optional,default 0.3]
  -H HEIGHT, --height HEIGHT
                        the height of plot[optional,default 6]
  -W WIDTH, --width WIDTH
                        the width of plot[optional,default 6]
  -o OUTDIR, --outdir OUTDIR
                        output file directory[optional,default cwd]
  -f PREFIX, --prefix PREFIX
                        out file name prefix[optional,default m6a_corr]

參數(shù)說(shuō)明:

-g 輸入含有基因名稱及基因分組的文件:

ID
group
RBM15
W
RBM15B
W
METTL14
W

-r 輸入相關(guān)性分析的R值結(jié)果文件:


YTHDC2
ELAVL1
IGF2BP2
YTHDC1
ALKBH5
YTHDC2
1
0.100844958115642
-0.199266632575919
0.546179408118954
0.075091821006311
ELAVL1
0.100844958115642
10.150532385539874
0.225088605909775
0.298942427929541
IGF2BP2
-0.199266632575919
0.150532385539874
1-0.233843565264036
-0.172593213718997

-p 輸入相關(guān)性分析的P值結(jié)果文件:


YTHDC2
ELAVL1
IGF2BP2
YTHDC1
ALKBH5
YTHDC2
0
0.0193039987188
3.192988377154e-06
3.66906551176e-43
0.0818330030147
ELAVL1
0.0193039987188
00.000459299744619
1.315965760206e-07
1.43806714122e-12
IGF2BP2
3.19298837715e-06
0.000459299744619
04.074092694927e-08
5.71701876639e-05

-P、-R

指定P值和R值的閾值,默認(rèn)P值為0.05,R值為0.3

使用舉例:

Rscript ../scripts/corr_network.r -g ../m6a.tsv -p m6a_corr_p.tsv \
    -r m6a_corr_r.tsv -P 0.001 -R 0.4

以上是“如何使用ggraph包繪制展示相關(guān)性的網(wǎng)絡(luò)圖”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI