Clustering rows and columns

For the purposes of visualizing the data matrix, it is often desirable to have the rows and columns reordered to put similar rows adjacent to one another, and similarly to place similar columns adjacent to one another. This reordering can be done using hierarchical linkage clustering, by the function

`TS_Cluster`

:1

distanceMetricRow = 'euclidean'; % time-series feature distance

2

linkageMethodRow = 'average'; % linkage method

3

distanceMetricCol = 'corr_fast'; % a (poor) approximation of correlations with NaNs

4

linkageMethodCol = 'average'; % linkage method

5

6

TS_Cluster(distanceMetricRow, linkageMethodRow, distanceMetricCol, linkageMethodCol);

Copied!

This function reads in the data from

`HCTSA_N.mat`

, and stores the re-ordering of rows and columns back into `HCTSA_N.mat`

in the `ts_clust`

and `op_clust`

(and, if the size is manageable, also the pairwise distance information). Visualization functions (such as `TS_PlotDataMatrix`

and `TS_SimSearch`

) can then take advantage of this information, using the general input label `'cl'`

.Last modified 1yr ago

Copy link