Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use heatmap_group_plot.r in R language

Shulou Source: shulou.com Published: 2022-06-01 04:44:07 11月12日 Update

This article mainly explains "how to use heatmap_group_plot.r in R language". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use heatmap_group_plot.r in R language.

Heatmap_group_plot.r grouping thermograph shows the result of immune invasion.

Description of using parameters:

$Rscript heatmap_group_plot.r-husage: 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 heatmapoptional 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 filepath [required]-g group [group...],-- group group [group...] Input group id in metadata file, can set multi groups [required]-l filepath,-- genelist filepath genelist 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]

Note:

Do not have a na value in the sample grouping metadata file, otherwise an error will be reported:

Error in names (ann_colors [[opt$ group [I])

Tags: Language content grouping learning practical deeper matters interests parameters practicality practicality simple operation files methods more friends samples notes results website Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB MySQL Shulou Technology Linux