Description Usage Arguments Value Examples
gvmap modify attribute to config file
1 | gvmapModAttr(attr_name, value, target, config_file)
|
attr_name |
character, attribute name |
value |
attribute value |
target |
character, target of attribute |
config_file |
list, config info generating by gvmapAutoConfig |
a config file to run gvmap
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | heatmap_info <- list("heatmap_1", "heatmap_2", "heatmap_3")
legend_info <- data.frame(legend_group = c("legend_1", "legend_1", "legend_2"),
name = c("Age", "Gender", "NRAS"),
col_theme = c("binary_col", "binary_col", "tag_col"),
column_num = c(2, 3, 4))
config_file <- gvmapAutoConfig(heatmap_info = heatmap_info,
legend_info = legend_info)
# modify heatmap_num
config_file <- gvmapModAttr(attr_name = "heatmap_num",
value = 2,
config_file = config_file)
config_file$map_config$heatmap_num
# modify legend_num
config_file <- gvmapModAttr(attr_name = "legend_num",
value = 3,
config_file = config_file)
config_file$map_config$legend_num
# modify raw_data of heatmap_1
config_file <- gvmapModAttr(attr_name = "raw_data",
value = FALSE, target = "heatmap_1",
config_file = config_file)
# modify kmer_col of heatmap_1
config_file <- gvmapModAttr(attr_name = "kmer_col",
value = 3,
target = "heatmap_1",
config_file = config_file)
# modify kmer_row of heatmap_2
config_file <- gvmapModAttr(attr_name = "kmer_row",
value = 4,
target = "heatmap_2",
config_file = config_file)
# modify split_row_name of heatmap_2
config_file <- gvmapModAttr(attr_name = "split_row_name",
value = c("M1001", "M4001"),
target = "heatmap_2",
config_file = config_file)
# modify kmer_col_color of heatmap_1
config_file <- gvmapModAttr(attr_name = "kmer_col_color",
value = "pool_col",
target = "heatmap_1",
config_file = config_file)
# modify kmer_row_color of heatmap_1
config_file <- gvmapModAttr(attr_name = "kmer_row_color",
value = "tag_col",
target = "heatmap_1",
config_file = config_file)
# modify dendrogram of heatmap_1
config_file <- gvmapModAttr(attr_name = "dendrogram",
value = "col",
target = "heatmap_1",
config_file = config_file)
# modify Rowv of heatmap_1
config_file <- gvmapModAttr(attr_name = "Rowv",
value = FALSE,
target = "heatmap_1",
config_file = config_file)
# modify Colv of heatmap_1
config_file <- gvmapModAttr(attr_name = "Colv",
value = FALSE,
target = "heatmap_1",
config_file = config_file)
# modify color_theme of heatmap_1
config_file <- gvmapModAttr(attr_name = "color_theme",
value = "gradient_col_gr_oo",
target = "heatmap_1",
config_file = config_file)
# modify distfun of heatmap_1
config_file <- gvmapModAttr(attr_name = "distfun",
value = dist,
target = "heatmap_1",
config_file = config_file)
# modify distfun of heatmap_1
config_file <- gvmapModAttr(attr_name = "hclustfun",
value = function(x) hclust(x,method = 'ward.D2'),
target = "heatmap_1",
config_file = config_file)
# modify legend_1
# NOTE: legend only have one attr_name
leg_value <- data.frame(name = c("age", "gender"),
color = "binary_col",
column = c(2,3))
config_file <- gvmapModAttr(attr_name = "legend",
value = leg_value,
target = "legend_1",
config_file = config_file)
# modify color
config_file <- gvmapModAttr(attr_name = "tag_col",
value = "#000000",
config_file = config_file)
config_file <- gvmapModAttr(attr_name = "tag_col_1",
value = "#FF00000",
config_file = config_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.