/// <summary> /// /// </summary> /// <param name="updateEntries"></param> public void UpdatePfamLigandInteractions(string[] updateEntries) { DomainInterfaceBuilder.InitializeThread(); /* * ProtCidSettings.progressInfo.progStrQueue.Enqueue("Update Pfam-DNA/RNA interactions info"); * ProtCidSettings.logWriter.WriteLine("Update Pfam-DNA/RNA interactions info"); * PfamDnaRnaInteractions pfamDnaInteract = new PfamDnaRnaInteractions(); * string[] updateDnaRnaEntries = null; * updateDnaRnaEntries = pfamDnaInteract.GetUpdateEntriesWithDnaRna(updateEntries); * pfamDnaInteract.UpdatePfamDnaRnaInteractions(updateDnaRnaEntries); * * ProtCidSettings.progressInfo.progStrQueue.Enqueue("Update Pfam-ligands interactions info"); * ProtCidSettings.logWriter.WriteLine("Update Pfam-ligands interactions info"); * PfamLigandInteractions pfamLigands = new PfamLigandInteractions(); * pfamLigands.UpdateLigandsInPdb(updateEntries); * pfamLigands.UpdatePfamLigandInteractions(updateEntries); * pfamLigands.UpdatePfamLigandInteractionSumInfo(updateEntries); * pfamLigands.UpdateLigandInteractingPfamsSumInfo(updateEntries); * * ProtCidSettings.logWriter.WriteLine("Update Pfam-DNA/RNA interface files"); * PfamDnaRnaFileCompress dnaRnaFileCompress = new PfamDnaRnaFileCompress(); * dnaRnaFileCompress.UpdateDomainDnaRnaFiles(updateDnaRnaEntries); * * ProtCidSettings.logWriter.WriteLine("Update Pfam-ligands the number of common Pfam HMM positions"); * LigandComPfamHmm ligandComHmmCal = new LigandComPfamHmm(); * Dictionary<string, List<string>> updatePfamEntryListDict = ligandComHmmCal.UpdateLigandsComPfamHmmPos(updateEntries); * // Dictionary<string, List<string>> updatePfamEntryListDict = ligandComHmmCal.GetUpdatePfams(updateEntries); * * ProtCidSettings.logWriter.WriteLine("Update Pfam-ligands clusters"); * PfamLigandClusterHmm ligandClusters = new PfamLigandClusterHmm(); * ligandClusters.UpdatePfamLigandsByPfamHmm(updatePfamEntryListDict); */ ProtCidSettings.logWriter.WriteLine("Update compressing Pfam-ligands domain interface files. Pfam_ID.tar.gz: Pfam domain aligned (one Pfam - ligands)"); PfamDomainFileCompress domainFileCompress = new PfamDomainFileCompress(); domainFileCompress.UpdatePfamDomainFiles(updateEntries); ProtCidSettings.logWriter.WriteLine("Update ligand-Pfam domain interface files. Ligand.tar.gz (one ligand - Pfams) "); PfamLigandFileCompress ligandFileCompress = new PfamLigandFileCompress(); ligandFileCompress.UpdateLigandPfamDomainFilesFromPdb(updateEntries); ProtCidSettings.logWriter.WriteLine("Pfam-ligand update is done!"); ProtCidSettings.logWriter.Flush(); }
/// <summary> /// /// </summary> public void BuildPfamLigandInteractions() { DomainInterfaceBuilder.InitializeThread(); PfamDnaRnaInteractions pfamDnaInteract = new PfamDnaRnaInteractions(); pfamDnaInteract.RetrievePfamDnaRnaInteractions(); PfamLigandInteractions pfamLigandInteract = new PfamLigandInteractions(); pfamLigandInteract.GetLigandsInPdb(); pfamLigandInteract.RetrievePfamLigandInteractions(); pfamLigandInteract.GetPfamLigandInteractionSumInfo(); pfamLigandInteract.PrintLigandInteractingPfamsSumInfo(); PfamDnaRnaFileCompress dnaRnaFileCompress = new PfamDnaRnaFileCompress(); dnaRnaFileCompress.WriteDomainDnaRnaFiles(); // LigandComAtomsPfam ligandComAtomCal = new LigandComAtomsPfam(); // ligandComAtomCal.CalculateOverlapLigandAtomsInPfam(); LigandComPfamHmm comPfamHmm = new LigandComPfamHmm(); comPfamHmm.CalculateLigandsComPfamHmmPos(); PfamLigandClusterHmm ligandClusters = new PfamLigandClusterHmm(); ligandClusters.ClusterPfamLigandsByPfamHmm(); // need add ligand clusters to the domain tar.gz files // move the operation here on April 28, 2017 PfamDomainFileCompress domainFileCompress = new PfamDomainFileCompress(); domainFileCompress.CompressPfamDomainFiles(); PfamLigandFileCompress ligandFileCompress = new PfamLigandFileCompress(); ligandFileCompress.CompressLigandPfamDomainFilesFromPdb(); }
/// <summary> /// /// </summary> /// <param name="updateEntries"></param> public void UpdatePfamLigandInteractions(string[] updateDnaRnaEntries, string[] updateEntries) { DomainInterfaceBuilder.InitializeThread(); ProtCidSettings.progressInfo.progStrQueue.Enqueue("Update Pfam-DNA/RNA interactions info"); PfamDnaRnaInteractions pfamDnaInteract = new PfamDnaRnaInteractions(); // pfamDnaInteract.UpdatePfamDnaRnaInteractions(updateDnaRnaEntries); ProtCidSettings.progressInfo.progStrQueue.Enqueue("Update Pfam-ligands interactions info"); PfamLigandInteractions pfamLigands = new PfamLigandInteractions(); // pfamLigands.UpdateLigandsInPdb(updateEntries); pfamLigands.UpdatePfamLigandInteractions(updateEntries); pfamLigands.UpdatePfamLigandInteractionSumInfo(updateEntries); pfamLigands.UpdateLigandInteractingPfamsSumInfo(updateEntries); PfamDnaRnaFileCompress dnaRnaFileCompress = new PfamDnaRnaFileCompress(); dnaRnaFileCompress.UpdateDomainDnaRnaFiles(updateDnaRnaEntries); LigandComPfamHmm ligandComHmmCal = new LigandComPfamHmm(); Dictionary <string, List <string> > updatePfamEntryListDict = ligandComHmmCal.UpdateLigandsComPfamHmmPos(updateEntries); PfamLigandClusterHmm ligandClusters = new PfamLigandClusterHmm(); ligandClusters.UpdatePfamLigandsByPfamHmm(updatePfamEntryListDict); PfamDomainFileCompress domainFileCompress = new PfamDomainFileCompress(); domainFileCompress.UpdatePfamDomainFiles(updateEntries); PfamLigandFileCompress ligandFileCompress = new PfamLigandFileCompress(); ligandFileCompress.UpdateLigandPfamDomainFilesFromPdb(updateEntries); }