Calculate Pairwise Distances Between Given Pathways
calculate_pwd(pathway_ids, pathway_names, agg_method = "average",
plot_heatmap = FALSE, use_names = FALSE, custom_genes = NULL)
Vector of IDs of pathways to be used for calculation of pairwise distances.
Vector of names of pathways to be used for calculation of pairwise distances.
the agglomeration method to be used if plotting heatmap (see next argument, default: average).
boolean value indicating whether or not to plot the heat map of pathway clustering (default: FALSE).
boolean value indicating whether to use gene set names instead of gene set ids (default: FALSE)
a list containing the genes involved in each custom pathway. Each element is a vector of gene symbols located in the given pathway. Names correspond to the ID of the pathway. Must be provided if pathways were obtained using custom gene sets.
Pairwise distance matrix. Optionally plots a heatmap of pathway clustering.
See "Chen, Y. A. et al. Integrated pathway clusters with coherent biological themes for target prioritisation. PLoS One 9, e99030, doi:10.1371/journal.pone.0099030 (2014)." for details on the method of pathway clustering.
hclust
for hierarchical clustering,
heatmap
for drawing a heatmap.
# NOT RUN {
calculate_pwd(RA_output$ID)
# }
Run the code above in your browser using DataLab