How to use ggraph package to draw a network diagram showing correlation
This article mainly shows you "how to use the ggraph package to show the relevance of the network diagram", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use the ggraph package to draw a network diagram to show relevance" this article.
Ggraph package draws a network diagram that shows the correlation
Usage: $Rscript scripts/corr_network.r-husage: 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/1574optional 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] parameters description:
-g enter a document containing gene name and gene grouping:
ID
Group
RBM15
W
RBM15B
W
METTL14
W
-r enter the R value result file of the correlation analysis:
YTHDC2
ELAVL1
IGF2BP2
YTHDC1
ALKBH5
YTHDC2
one
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 enter the P value result file of the correlation analysis:
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
Specify the threshold for P and R values. The default P value is 0.05 and R value is 0.3.
Use examples: Rscript.. / scripts/corr_network.r-g.. / m6a.tsv-p m6a_corr_p.tsv\-r m6a_corr_r.tsv-P 0.001-R 0.4 is all the contents of the article "how to use ggraph packages to draw a network diagram showing relevance". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!