private void RunHashDendrogCombine(string name, string dirName, string alignmentFile = null, DCDFile dcd = null) { DateTime cpuPart1 = DateTime.Now; HashClusterDendrog hk = null; if (dcd != null) { hk = new HashClusterDendrog(dcd, opt.hash, opt.hierarchical); } else if (alignmentFile != null) { hk = new HashClusterDendrog(null, alignmentFile, opt.hash, opt.hierarchical); } else { hk = new HashClusterDendrog(dirName, null, opt.hash, opt.hierarchical); } ClusterOutput output; if (beginJob != null) { beginJob(currentProcessName, hk.ToString(), dirName, "NONE"); } progressDic.Add(name, hk); hk.InitHashCluster(); DateTime cpuPart2 = DateTime.Now; output = hk.RunHashDendrogCombine(); UpdateOutput(name, dirName, alignmentFile, output, hk.UsedMeasure(), cpuPart1, cpuPart2, hk); }
private void RunHashDendrogCombine(string name, string dirName, string alignmentFile = null, DCDFile dcd = null) { DateTime cpuPart1 = DateTime.Now; HashClusterDendrog hk = null; if (dcd != null) hk = new HashClusterDendrog(dcd, opt.hierarchical.hash, opt.hierarchical.distance, opt.hierarchical.linkageType, opt.hierarchical.atoms, opt.hierarchical.reference1DjuryH, opt.hierarchical.alignmentFileName, opt.hierarchical.hammingProfile, opt.hierarchical.jury1DProfileH); else if (alignmentFile != null) hk = new HashClusterDendrog(null, alignmentFile, opt.hierarchical.hash, opt.hierarchical.distance, opt.hierarchical.linkageType, opt.hierarchical.atoms, opt.hierarchical.reference1DjuryH, opt.hierarchical.alignmentFileName, opt.hierarchical.hammingProfile, opt.hierarchical.jury1DProfileH); else hk = new HashClusterDendrog(dirName, null, opt.hierarchical.hash, opt.hierarchical.distance, opt.hierarchical.linkageType, opt.hierarchical.atoms, opt.hierarchical.reference1DjuryH, opt.hierarchical.alignmentFileName, opt.hierarchical.hammingProfile, opt.hierarchical.jury1DProfileH); ClusterOutput output; progressDic.Add(name, hk); hk.InitHashCluster(); DateTime cpuPart2 = DateTime.Now; output = hk.RunHashDendrogCombine(); UpdateOutput(name, dirName,alignmentFile, output, hk.UsedMeasure(), cpuPart1, cpuPart2, hk); }