/// <summary> /// insert data into database /// </summary> private void InsertDataIntoDb() { dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables[HomoGroupTables.HomoSeqInfo]); InsertAlignmentData(); HomoGroupTables.ClearTables(); }
/// <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(); }
public void ClassifyHomoEntries(string[] entryList) { InitializeTables(); DeleteObsHomoGroupDataInDb(groupSeqNum); AddEntryDataToTable(entryList, groupSeqNum); RetrieveRepEntries(); dbInsert.InsertDataIntoDBtables(ProtCidSettings.protcidDbConnection, HomoGroupTables.homoGroupTables); HomoGroupTables.ClearTables(); }
/// <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(); }
/// <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(); }