您好,登錄后才能下訂單哦!
本篇內容主要講解“R語言的heatmap_group_plot.r如何使用”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“R語言的heatmap_group_plot.r如何使用”吧!
heatmap_group_plot.r 分組熱圖展示免疫侵潤結果
使用參數說明:
$ Rscript heatmap_group_plot.r -h usage: heatmap_group_plot.r [-h] -i filepath -m filepath -g group [group ...] [-l filepath] [-t topnumber] [--scale SCALE] [--log2] [--cluster_rows] [--cluster_cols] [--show_rownames] [--show_colnames] [-c color [color ...]] [-o outdir] [-p prefix] [-H height] [-W width] plot heatmap optional arguments: -h, --help show this help message and exit -i filepath, --input filepath input the immune res data,[required] -m filepath, --metadata filepath input metadata file path[required] -g group [group ...], --group group [group ...] input group id in metadata file, can set multi groups[required] -l filepath, --genelist filepath gene list file to keep [default NULL] -t topnumber, --top topnumber The top var to plot [default NULL] --scale SCALE character indicating if the values should be centered and scaled in either the row direction or the column direction, or none. Corresponding values are "row", "column" and "none" [default="row"] --log2 whether do log2 transfrom [optional, default: False] --cluster_rows whether cluster_rows [optional, default: False] --cluster_cols whether cluster_cols [optional, default: False] --show_rownames whether show_rownames [optional, default: False] --show_colnames whether show_colnames [optional, default: False] -c color [color ...], --color color [color ...] color map of heatmap, give three color [default=c('blue', 'white', 'red') -o outdir, --outdir outdir output file directory [default cwd] -p prefix, --prefix prefix out file name prefix [default demo] -H height, --height height the height of pic inches [default 9] -W width, --width width the width of pic inches [default 10]
注意事項:
樣本分組 metadata文件中,不要有NA值;不然會報錯:
Error in names(ann_colors[[opt$group[i]]]) <- unique(mygroup) : 'names' attribute [12] must be the same length as the vector [11]
到此,相信大家對“R語言的heatmap_group_plot.r如何使用”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。