Home > Mateda2.0 > ScriptsMateda > AnalysisScripts > BN_StructureHierClustering.m

# BN_StructureHierClustering

## PURPOSE

EXAMPLE 4:

## SYNOPSIS

This is a script file.

## DESCRIPTION

     EXAMPLE 4:
     Dendrogram visualization of the hierarchical clustering of edges is shown
     Then, the ordering of variables found by the clustering is used to show
     the parallel coordinates representation of the edges learned at each
     generation.

## CROSS-REFERENCE INFORMATION

This function calls:

- ViewStructuresFromFile [run_structures,results] = ViewStructuresFromFile(namefile,n,varargin)

This function is called by:

## SOURCE CODE

    0001
    0002 % EXAMPLE 4:
    0003 % Dendrogram visualization of the hierarchical clustering of edges is shown
    0004 % Then, the ordering of variables found by the clustering is used to show
    0005 % the parallel coordinates representation of the edges learned at each
    0006 % generation.
    0007
    0008  viewparams{1} = [14];
    0009  viewparams{2} = []; % The edges will be found by the algorithm
    0010  viewparams{3} = 30; % Only those edges that appear at least 30 times will be shown
    0011  viewparams{4} = 3;  % Only substructures that have at least two edges are visualized in the PC
    0012  viewparams{5} = 'correlation'; % The distance used to cluster edges is 1-correlation between variables.  (see help pdist).
    0013  [run_s,results] = ViewStructuresFromFile('ProteinStructsExNR.txt',50, 'viewmatrix_method','ViewDenDroStruct',viewparams);
    0014
    0015  viewparams{2} = results{3}; % The ordering of edges found by hierarchical clustering will be used to show parallel coordinates
    0016  viewparams{5} = 'none';
    0017  viewparams{6} = '';
    0018  [run_s,results] = ViewStructuresFromFile('ProteinStructsExNR.txt',50, 'viewmatrix_method','ViewPCStruct',viewparams);
    0019
    0020
    0021  viewparams{1} = 14;
    0022  viewparams{2} = [3 4 ; 4 5 ; 3 5 ; 6 7 ; 7 8; 8 9]; % The edges are  listed
    0023  viewparams{3} = [1:10]; % The first 10 runs
    0024  viewparams{4} = [2,4,6,8,10]; % Generations 2,4,6,8,10
    0025  [run_s,results] = ViewStructuresFromFile('ProteinStructsExNR.txt',50, 'viewmatrix_method','ViewGlyphStruct',viewparams);