wwpdb.apps.ccmodule 0.29.3__tar.gz → 0.30__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/PKG-INFO +1 -1
  2. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/__init__.py +1 -1
  3. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/chem/ChemCompAssignDepictLite.py +1 -1
  4. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/webapp/ChemCompWebApp.py +25 -0
  5. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb.apps.ccmodule.egg-info/PKG-INFO +1 -1
  6. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/README.md +0 -0
  7. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/setup.cfg +0 -0
  8. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/setup.py +0 -0
  9. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/__init__.py +0 -0
  10. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/__init__.py +0 -0
  11. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/chem/ChemCompAnnotate.py +0 -0
  12. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/chem/ChemCompAssign.py +0 -0
  13. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/chem/ChemCompAssignDepict.py +0 -0
  14. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/chem/PdbxChemCompAssign.py +0 -0
  15. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/chem/__init__.py +0 -0
  16. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/depict/ChemCompDepict.py +0 -0
  17. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/depict/__init__.py +0 -0
  18. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/extract/__init__.py +0 -0
  19. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/extract/ccOps.py +0 -0
  20. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/io/ChemCompAssignDataStore.py +0 -0
  21. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/io/ChemCompDataExport.py +0 -0
  22. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/io/ChemCompDataImport.py +0 -0
  23. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/io/ChemCompEditStore.py +0 -0
  24. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/io/ChemCompIo.py +0 -0
  25. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/io/__init__.py +0 -0
  26. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/ChemCompAlignImageGenerator.py +0 -0
  27. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/ChemCompAlignImages.py +0 -0
  28. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/ChemCompBigAlignImages.py +0 -0
  29. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/ChemCompGenImage.py +0 -0
  30. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/ChemCompReports.py +0 -0
  31. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/InstanceDataGenerator.py +0 -0
  32. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/reports/__init__.py +0 -0
  33. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/search/ChemCompSearch.py +0 -0
  34. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/search/ChemCompSearchDb.py +0 -0
  35. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/search/ChemCompSearchDbDepict.py +0 -0
  36. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/search/ChemCompSearchDepict.py +0 -0
  37. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/search/DbSession.py +0 -0
  38. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/search/__init__.py +0 -0
  39. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/sketch/ChemCompSketch.py +0 -0
  40. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/sketch/ChemCompSketchDepict.py +0 -0
  41. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/sketch/__init__.py +0 -0
  42. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/utils/ChemCompConfig.py +0 -0
  43. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/utils/ChemCompDpUtility.py +0 -0
  44. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/utils/ChemCompWFInterface.py +0 -0
  45. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/utils/Exceptions.py +0 -0
  46. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/utils/LigandAnalysisState.py +0 -0
  47. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/utils/__init__.py +0 -0
  48. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/view/ChemCompView.py +0 -0
  49. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/view/ChemCompViewDepict.py +0 -0
  50. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/view/__init__.py +0 -0
  51. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/webapp/ChemCompWebAppLite.py +0 -0
  52. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/webapp/__init__.py +0 -0
  53. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb/apps/ccmodule/webapp/wsgi.py +0 -0
  54. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb.apps.ccmodule.egg-info/SOURCES.txt +0 -0
  55. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb.apps.ccmodule.egg-info/dependency_links.txt +0 -0
  56. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb.apps.ccmodule.egg-info/not-zip-safe +0 -0
  57. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb.apps.ccmodule.egg-info/requires.txt +0 -0
  58. {wwpdb_apps_ccmodule-0.29.3 → wwpdb_apps_ccmodule-0.30}/wwpdb.apps.ccmodule.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wwpdb.apps.ccmodule
3
- Version: 0.29.3
3
+ Version: 0.30
4
4
  Summary: wwPDB workflow engine utils
5
5
  Home-page: https://github.com/rcsb/py-wwpdb_apps_wf_engine_utils
6
6
  Author: Ezra Peisach
@@ -3,4 +3,4 @@ __docformat__ = "restructuredtext en"
3
3
  __author__ = "Ezra Peisach"
4
4
  __email__ = "ezra.peisach@rcsb.org"
5
5
  __license__ = "Apache 2.0"
6
- __version__ = "0.29.3"
6
+ __version__ = "0.30"
@@ -122,7 +122,7 @@ class ChemCompAssignDepictLite(ChemCompDepict):
122
122
  self.__siteSrvcUrlPathPrefix = self.__cI.get('SITE_SERVICE_URL_PATH_PREFIX', '')
123
123
  self.__workingRltvAssgnSessionPath = ''
124
124
 
125
- self.__alternateTopHitMarkup = '''<input id="use_exact_mtch_id_%(auth_assgnd_grp)s_%(tophit_id)s" class="c_%(auth_assgnd_grp)s addrss_msmtch use_exact_mtch_id" type="radio" name="addrss_msmtch_chc" value="use_exact_mtch_id" %(use_exact_mtch_id_checked)s %(disabled)s /><label for="use_exact_mtch_id_%(auth_assgnd_grp)s_%(tophit_id)s">Use exact match ID of <span name="%(tophit_id)s" style="color: #F00;" class="strong tophit">%(tophit_id)s</span> (<a href="http://ligand-expo.rcsb.org/pyapps/ldHandler.py?formid=cc-index-search&target=%(tophit_id)s&operation=ccid" target="_blank">See Definition</a>) instead of originally proposed ID</label><br />''' # noqa: E501
125
+ self.__alternateTopHitMarkup = '''<input id="use_exact_mtch_id_%(auth_assgnd_grp)s_%(tophit_id)s" class="c_%(auth_assgnd_grp)s addrss_msmtch use_exact_mtch_id" type="radio" name="addrss_msmtch_chc" value="use_exact_mtch_id" %(use_exact_mtch_id_checked)s %(disabled)s /><label for="use_exact_mtch_id_%(auth_assgnd_grp)s_%(tophit_id)s">Use match ID of <span name="%(tophit_id)s" style="color: #F00;" class="strong tophit">%(tophit_id)s</span> (<a href="http://ligand-expo.rcsb.org/pyapps/ldHandler.py?formid=cc-index-search&target=%(tophit_id)s&operation=ccid" target="_blank">See Definition</a>) instead of originally proposed ID</label><br />''' # noqa: E501
126
126
 
127
127
  depositPath = Path(PathInfo().getDepositPath(self.__depId))
128
128
  self.__ccReportPath = os.path.join(depositPath, self._CC_REPORT_DIR)
@@ -1440,6 +1440,7 @@ class ChemCompWebAppWorker(object):
1440
1440
  #
1441
1441
  # zk: Add checking if assgnCcId is in HitList
1442
1442
  #
1443
+ warnMsg = ""
1443
1444
  if (assgnCcId != "Not Assigned"):
1444
1445
  errorMessage = ''
1445
1446
  for instId in instIdL:
@@ -1449,18 +1450,36 @@ class ChemCompWebAppWorker(object):
1449
1450
  for tup in hitList:
1450
1451
  if tup[0] == assgnCcId:
1451
1452
  ok = True
1453
+ if tup[2] != "n.a.":
1454
+ first = True
1455
+ msgList = tup[2].split("<br />")
1456
+ for msg in msgList:
1457
+ if msg.startswith("Mismatch chiral center between instance atom"):
1458
+ if warnMsg:
1459
+ warnMsg += "\n"
1460
+ #
1461
+ if first:
1462
+ warnMsg += "\n" + instId + ":\n"
1463
+ first = False
1464
+ #
1465
+ warnMsg += msg
1466
+ #
1467
+ #
1468
+ #
1452
1469
  break
1453
1470
  #
1454
1471
  #
1455
1472
  #
1456
1473
  if not ok:
1457
1474
  errorMessage += assgnCcId + ' is not in hit list for ' + instId + '\n'
1475
+ #
1458
1476
  #
1459
1477
  if errorMessage:
1460
1478
  if (self.__verbose):
1461
1479
  self.__lfh.write("+ChemCompWebAppWorker._ccAssign_assignInstnc() ----- Error: %s\n" % errorMessage)
1462
1480
  rC.setError(errMsg=errorMessage)
1463
1481
  return rC
1482
+ #
1464
1483
  #
1465
1484
  for instId in instIdL:
1466
1485
  self.__lfh.write("+ChemCompWebAppWorker._ccAssign_assignInstnc() ----- instId %s\n" % instId)
@@ -1469,14 +1488,20 @@ class ChemCompWebAppWorker(object):
1469
1488
  self.__lfh.write("+ChemCompWebAppWorker._ccAssign_assignInstnc() ----- tuple %s for %s\n" % (hlist, instId))
1470
1489
  else:
1471
1490
  self.__lfh.write("+ChemCompWebAppWorker._ccAssign_assignInstnc() ----- no tuple for %s\n" % instId)
1491
+ #
1472
1492
  ccADS.setAnnotAssignment(instId, assgnCcId)
1473
1493
  if assgnMode == 'glbl' and assgnCcId != "Not Assigned":
1474
1494
  ccADS.addGrpToGlbllyAssgndLst(authAssgnGrp, assgnCcId)
1475
1495
  elif assgnMode == 'glbl' and assgnCcId == "Not Assigned":
1476
1496
  ccADS.removeGrpFrmGlbllyAssgndLst(authAssgnGrp)
1497
+ #
1477
1498
  ccADS.serialize()
1499
+ #
1478
1500
  ccADS.dumpData(self.__lfh)
1479
1501
 
1502
+ if warnMsg:
1503
+ rC.set("warnMsg", "Assigning (" + assgnCcId + ") will result in chirality error(s) for the following instance(s):\n" + warnMsg)
1504
+ #
1480
1505
  return rC
1481
1506
 
1482
1507
  def _ccAssign_setNewCcDefinedForInstnc(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wwpdb.apps.ccmodule
3
- Version: 0.29.3
3
+ Version: 0.30
4
4
  Summary: wwPDB workflow engine utils
5
5
  Home-page: https://github.com/rcsb/py-wwpdb_apps_wf_engine_utils
6
6
  Author: Ezra Peisach