View source: R/view_clustered_myHeatmap.R
view_clustered_myHeatmap | R Documentation |
Produces a heatmap of scaled values by row and then makes an unscaled average value column to the right of it.
view_clustered_myHeatmap(
my_pack = NULL,
sample_names = NULL,
groups = NULL,
input_df = NULL,
base_title = NULL,
base_file_name = NULL,
output_dir = NULL,
pdf_metadata = NULL,
models_argument_list = NULL,
imported_annotation = NULL,
t.colors = NA,
fileName = "cluster.cdt",
linkage = "complete",
distance = "pearson",
contrast = 2,
returnSampleClust = F,
rowNames = NA,
rightMar = 7,
bottomMar = 1
)
my_pack |
A named list for analysis modules to send parameters to the view function in a more compact fashion:
These list items may be overridden by specifying them individually. They are described in more detail below. |
sample_names |
Overrides |
groups |
Overrides |
input_df |
Overrides |
base_title |
Overrides |
base_file_name |
Overrides |
output_dir |
Overrides |
pdf_metadata |
Overrides |
models_argument_list |
Overrides |
imported_annotation |
Overrides |
my_model |
Overrides |
FDR_pValue |
Overrides |
pValue |
Overrides |
fold_change |
Overrides |
order_by_fold_change |
Logical indicating whether the features should be ordered by fold change. See fold_change argument. |
base_for_log_transform |
Integer indicating the base to transform the data, which will be shown in the averages.
|
sample_panel_spacing |
|
average_panel_spacing |
|
show_sample_names |
Boolean indicating whether individual sample names should be listed along the x axis. This axis can get cluttered quickly if there are a lot of samples. |
append_classifier_to_sample_name |
Boolean indicating whether the sample group should be added to the end of the sample names. This option isn't really needed after having added facet titles. |
panel_label_switch |
'x' switches the x axis label to the bottom. |
panel.strip.background |
For specifying the element_rect of the panel strip background (eg. |
panel.strip.text.x |
For specifying the element_rect of the panel strip (eg. |
FDR_threshhold |
If not |
pValue_threshhold |
If not |
display_all_names |
Boolean indicating whether the feature names should be displayed along the y axis. |
graph_rel_widths |
Numeric vector of length 2 (eg. |
axis.text.x |
element_text() object to define the x axis for the sample and average plots |
axis.text.y.size |
Number indicating the size of the text for the feature names along the y axis. |
pdf_width |
Sets the width (inches) of the pdf output |
pdf_height |
Sets the height (inches) of the pdf output |
log_completion |
Binary indicting whether the graph should be added to the table of completed analyses. |
primary_title_options |
List of options to modify primary title. Title content should be set with base_title. eg: list(x=0.5,y=0.965,size=8) |
secondary_title |
List of options to modify and set secondary title. eg: list(x=1,y=0.99,size=3,label="FDR < 0.05 shown") |
plot_scale |
numeric to change how much of the page the plots take up |
legend_title |
|
legend_text |
|
legend_key_width |
|
legend_key_height |
|
ave_legend_margin |
|
zscore_legend_margin |
|
ave_plot_margin |
|
zscore_plot_margin |
|
left_legend_pos |
string for position of zscore plot |
right_legend_pos |
string for position of average plot |
axis_title_x |
|
axis_title_y |
|
axis_title_x_lab |
string for axis of zscore plot, usually blank |
axis_title_y_lab |
string for aixs of zscore plot, usually blank |
zscore_colors |
vector of colors for z scale, overrides average colors if |
average_colors |
vecotr of colors |
average_scaled_values |
boolean indicating whether the average should be done on the raw gene expression or scaled values |
axis_text_y_remove_strings |
Strings in this character vector will be removed from the y axis text. |
axis_text_y_nchar |
Integer to specify the number of characters that will be displayed in the y axis text before clipping |
pdf_bookmark_title |
String indicating the name of the bookmark that will be used when concatentaing the pdf's into a report |
annotate_pdf |
Boolean indicating whether the pdf metadata should be chnaged. Is pdftk present? |
output_subfolder |
Path to the output sub directory folder. Multiple views of the same analysis should have unique names lest they overwrite one another. XX indicates this folder will be dropped from the TOC and bookmarks |
tile_width_factor |
Changes the size of the tiles to get rid of gaps or create them. Goes into geom_tile width parameter. |
tile_height_factor |
Changes the size of the tiles to get rid of gaps or create them. Goes into geom_tile height parameter. |
view_clustered_myHeatmap
was created to make heatmaps of gene expression data, although it could
be used to display the distribution of any numeric features.
It's important to not scale data prior to heatmap to not disrupt average values.
Several outputs are produced:
1) Heatmaps;
2) Heatmaps pdf;
3) An annotation file describing the steps taken on the data from start to finish;
4) A matrix file containing the sample z-scores for each sample and the average values displayed in the heatmap;
5) If log_completion == TRUE
, a link is made to the pdf on the d3.js html indexing
table using add_to_completed_analyses
.
...
...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.