/// <summary> /// /// </summary> /// <param name="pdbId"></param> /// <param name="entityId"></param> public void UpdateEntryEntityDbRefData(string pdbId, nt entityId, ref int refId, ref int alignId) { string srcType = ""; bool dbAccValid = true; string[] dbAccessions = GetUnpAccessions(pdbId, entityId, out srcType, true); try { dbAccValid = DoesEntityHaveValidDbAccessions(dbAccessions); } catch (Exception ex) { string stop = ""; } if (dbAccValid && srcType != "") { updateLogWriter.WriteLine("Update " + pdbId + entityId.ToString () + " from " + srcType); // delete related data to this entity DeleteDbRefData(pdbId, entityId); totalNumOfEntitiesUpdated++; DataTable residueMapTable = GetEntityResidueMapTable(pdbId, entityId, srcType); UpdatePdbDbRefInfoFromDifSrc(residueMapTable, ref refId, ref alignId, srcType); /* if (srcType == "ssmap") { UpdatePdbDbRefFromSSmap(residueMapTable, ref refId, ref alignId); } else if (srcType == "sws") { UpdatePdbDbRefFromSws(residueMapTable, ref refId, ref alignId); } */ dbInsert.InsertDataIntoDBtables(dbRefTable); dbInsert.InsertDataIntoDBtables(dbRefSeqTable); dbRefTable.Clear(); dbRefSeqTable.Clear(); } }