sankey_plot.r绘制桑基图

绘制桑基图(冲击图)

使用方法:

usage: script/sankey_plot.r [-h] -i input -g group [group ...] -c color
                            [-o outdir] [-p prefix] [-H height] [-W width]

Sankey plot drawing

optional arguments:
  -h, --help            show this help message and exit
  -i input, --input 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]

参数说明:

-i    包含具有对应关系的数据


Immune_Subtype
m6acluster
group
C1C2high
C2C1low

-g    输入所要绘制桑基图的三列数据的列名

-c    决定分流所填充颜色的列名

使用举例:

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

结果展示:

attachments-2021-10-ap8lToN5617ba86c8c7f0.png

  • 发表于 2021-10-29 15:54
  • 阅读 ( 1563 )
  • 分类:R

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
你想桃子吗
你想桃子吗

21 篇文章

作家榜 »

  1. omicsgene 657 文章
  2. 安生水 327 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. rzx 67 文章
  8. xun 66 文章