Example #1
0
        private void Run3DJury(string name, string dirName, string alignFile = null, DCDFile dcd = null)
        {
            DateTime        cpuStart = DateTime.Now;
            ClusterOutput   output;
            DistanceMeasure distance = null;

            if (alignFile != null)
            {
                distance = CreateMeasure(name, null, opt.other.oDistance, opt.other.oAtoms, opt.other.reference1Djury,
                                         alignFile, opt.other.hammingProfile, opt.other.referenceProfile);
            }
            else
            if (dirName != null)
            {
                distance = CreateMeasure(name, dirName, opt.other.oDistance, opt.other.oAtoms, opt.other.reference1Djury,
                                         alignFile, opt.other.hammingProfile, opt.other.referenceProfile);
            }
            else
            {
                distance = CreateMeasureForDCD(dcd, opt.other.oDistance, opt.other.oAtoms, opt.other.reference1Djury,
                                               opt.other.alignFileName, opt.other.hammingProfile, opt.other.referenceProfile);
            }
            Jury3D ju = new Jury3D(distance);

            if (beginJob != null)
            {
                beginJob(currentProcessName, ju.ToString(), dirName, distance.ToString());
            }

            progressDic.Add(name, ju);
            distance.InitMeasure();
            clType = ju.ToString();
            output = ju.Run3DJury();
            UpdateOutput(name, dirName, alignFile, output, distance.ToString(), cpuStart, DateTime.Now, ju);
            progressDic.Remove(name);
        }
Example #2
0
        private void Run3DJury(string name, string dirName, string alignFile=null, DCDFile dcd = null)
        {
            DateTime cpuStart = DateTime.Now;
            ClusterOutput output;
            DistanceMeasure distance = null;

            if(alignFile!=null)
                distance = CreateMeasure(name,null,opt.other.oDistance, opt.other.oAtoms, opt.other.reference1Djury,
                alignFile, opt.other.hammingProfile, opt.other.referenceProfile);
            else
                if(dirName!=null)
                    distance = CreateMeasure(name,dirName,opt.other.oDistance, opt.other.oAtoms, opt.other.reference1Djury,
                    alignFile, opt.other.hammingProfile, opt.other.referenceProfile);
                else
                    distance = CreateMeasureForDCD(dcd, opt.other.oDistance, opt.other.oAtoms, opt.other.reference1Djury,
                    opt.other.alignFileName, opt.other.hammingProfile, opt.other.referenceProfile);
            Jury3D ju = new Jury3D(distance);
            progressDic.Add(name, ju);
            distance.InitMeasure();            
            clType = ju.ToString();
            output = ju.Run3DJury();
            UpdateOutput(name, dirName,alignFile,output, distance.ToString(), cpuStart, DateTime.Now,ju);
            progressDic.Remove(name);
        }