Research Article

aCGH-MAS: Analysis of aCGH by means of Multiagent System

Algorithm 2

Dendrogram algorithm.
Input: CGHArrays, thresholdLost, thresholdGain
Output: RootNodeTree
foreach    do
foreach    do
  if    then  ;
  else if    then  ;
  else  
end
end
listNodes calculateLeafNodes(CHGArraysN);
While  listNodes.size()     1  do
 distances calculateDistances(listNodes);
node, node minDistance(distances);
// Calculate a new node with the median of nodei and nodej
 treeNode fusion(node, node);
 listNodes.remove();
 listNodes.add(treeNode);
end