How to draw Sanji Diagram by sankey_plot.r
This article will explain in detail how to draw a Sanji diagram by sankey_plot.r. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Draw Sanji diagram (impact diagram)
Usage: usage: script/sankey_plot.r [- h]-I input-g group [group...]-c color [- o outdir] [- p prefix] [- H height] [- W width] Sankey plot drawingoptional arguments:-h,-- help show this help message and exit-I input -- input the matrix [required]-- g group [group...],-- group group [group...] Input column names of three groups [required]-c color,-- color color column to fill color [required]-o outdir,-- outdir outdir output file directory [default cwd]-p prefix,-- prefix prefix out file name prefix [default result]-H height,-- height height the height of pic inches [default 5]-W width -- width width the width of pic inches [default 5]
Parameter description:
-I contains data with corresponding relationships
Immune_Subtype
M6acluster
Group
C1C2highC2C1low
-g enter the column name of the three columns of data for the Sanji diagram to be drawn
-c determines the column name of the color filled by the shunt
Use examples: Rscript script/sankey_plot.r-I / share/nas1/fangs/test/m6A/TCGA-KIRC/06.m6a_score/metadata_group.tsv-g m6acluster Immune_Subtype group-c m6acluster-p demo article on "how to draw a Sanji diagram in sankey_plot.r" ends here. I hope the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good. Please share it for more people to see.