コード例 #1
0
ファイル: RankingCForm.cs プロジェクト: uQlust/uQlust-ver3.0
        private void button3_Click(object sender, EventArgs e)
        {
            if (jury1DSetup1.Enabled)
            {
                ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY);

                if (t != null)
                {
                    string profileName = "automatic_similarity.profile";
                    t.SaveProfiles(profileName);
                    jury1DSetup1.profileName = profileName;
                }
                else
                {
                    MessageBox.Show("Could not create automatic profile");
                }
            }
            if (distanceControl1.Enabled)
            {
                if (distanceControl1.distDef == DistanceMeasures.HAMMING)
                {
                    ProfileTree t           = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.DISTANCE);
                    string      profileName = "automatic_distance.profile";
                    t.SaveProfiles(profileName);
                    distanceControl1.profileName = profileName;
                }
                if (distanceControl1.reference)
                {
                    ProfileTree t           = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY);
                    string      profileName = "automatic_similarity.profile";
                    t.SaveProfiles(profileName);
                    distanceControl1.referenceProfile = profileName;
                }
            }
        }
コード例 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ProfileTree t           = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY);
            string      profileName = "automatic_similarity.profile";

            t.SaveProfiles(profileName);
            jury1DSetup1.profileName = profileName;
        }
コード例 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY);

            if (t != null)
            {
                string profileName = "automatic_similarity.profile";
                t.SaveProfiles(profileName);
                userHash1.profRefFile             = profileName;
                userHash1.profRegFile             = profileName;
                distanceControl1.referenceProfile = profileName;
                if (distanceControl1.distDef == DistanceMeasures.HAMMING)
                {
                    t           = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.DISTANCE);
                    profileName = "automatic_distance.profile";
                    t.SaveProfiles(profileName);
                    distanceControl1.profileName = profileName;
                }
            }
            else
            {
                MessageBox.Show("Profile cannot be generated");
            }
        }
コード例 #4
0
ファイル: ProfileForm.cs プロジェクト: raad00/Omics
 public void SaveProfiles(string fileName)
 {
     treeProfiles.SaveProfiles(fileName);
 }