Beispiel #1
0
        /// <summary>
        /// insert data into database
        /// </summary>
        private void InsertDataIntoDb()
        {
            dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables[HomoGroupTables.HomoSeqInfo]);
            InsertAlignmentData();

            HomoGroupTables.ClearTables();
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="groupSeqId"></param>
        private void InsertUpdateDataIntoDb(int groupSeqId)
        {
            UpdateAlignmentData(groupSeqId);

            DeletePfamHomoGroupInfo(groupSeqId);
            dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables[HomoGroupTables.HomoSeqInfo]);

            HomoGroupTables.ClearTables();
        }
Beispiel #3
0
 public void ClassifyHomoEntries(string[] entryList)
 {
     InitializeTables();
     DeleteObsHomoGroupDataInDb(groupSeqNum);
     AddEntryDataToTable(entryList, groupSeqNum);
     RetrieveRepEntries();
     dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables);
     HomoGroupTables.ClearTables();
 }
Beispiel #4
0
        /// <summary>
        /// classify pfam group into subgroups based on
        /// number of entities and domain families
        /// </summary>
        /// <param name="entryList"></param>
        private void UpdateEntryPfamArchGroupTables(int groupSeqId, string[] groupEntries)
        {
            AddEntryDataToTable(groupEntries, groupSeqId);

            UpdateHomoGroupRepAlignTables();

            DeletePfamHomoGroupInfo(groupSeqId);
            dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables[HomoGroupTables.HomoSeqInfo]);

            HomoGroupTables.ClearTables();

            entryAlignment.entryEntityFamilyTable.Clear();
        }
Beispiel #5
0
        /// <summary>
        /// used for user-defined groups
        /// </summary>
        /// <param name="entryList"></param>
        /// <param name="groupName"></param>
        public void ClassifyHomoEntries(string[] entryList, string groupName)
        {
            InitializeTables();
            DeleteObsHomoGroupDataInDb(groupSeqNum);
            DataRow familyRow = HomoGroupTables.homoGroupTables[HomoGroupTables.FamilyGroups].NewRow();

            familyRow["GroupSeqId"]   = groupSeqNum;
            familyRow["FamilyString"] = groupName;
            HomoGroupTables.homoGroupTables[HomoGroupTables.FamilyGroups].Rows.Add(familyRow);

            AddEntryDataToTable(entryList, groupSeqNum);
            RetrieveRepEntries();
            dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables);
            HomoGroupTables.ClearTables();
        }