wwpdb.apps.seqmodule 0.27.3__tar.gz → 0.29__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 (73) hide show
  1. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/PKG-INFO +1 -1
  2. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/__init__.py +1 -1
  3. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/update/UpdatePolymerEntityPartitions.py +3 -2
  4. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/FetchReferenceSequenceUtils.py +4 -4
  5. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/LocalBlastSearchUtils.py +2 -2
  6. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SequenceLabel.py +13 -1
  7. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb.apps.seqmodule.egg-info/PKG-INFO +1 -1
  8. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/README.md +0 -0
  9. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/setup.cfg +0 -0
  10. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/setup.py +0 -0
  11. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/__init__.py +0 -0
  12. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/__init__.py +0 -0
  13. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentBackEndEditingTools.py +0 -0
  14. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentDepictionTools.py +0 -0
  15. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentExport.py +0 -0
  16. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentFrontEndUIEditor.py +0 -0
  17. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentStatistics.py +0 -0
  18. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentStatisticsTests.py +0 -0
  19. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentToolUtils.py +0 -0
  20. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/AlignmentTools.py +0 -0
  21. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/align/__init__.py +0 -0
  22. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/DataImporter.py +0 -0
  23. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SequenceDataAssembleExample.py +0 -0
  24. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SequenceDataAssembleTests.py +0 -0
  25. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SequenceDataAssemble_v2.py +0 -0
  26. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SequenceDataPrepTests.py +0 -0
  27. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SummaryViewDepiction.py +0 -0
  28. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SummaryViewTests.py +0 -0
  29. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/SummaryView_v2.py +0 -0
  30. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/control/__init__.py +0 -0
  31. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/AlignmentDataStore.py +0 -0
  32. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/BlastPlusReader.py +0 -0
  33. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/FetchSeqInfoUtils.py +0 -0
  34. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/ModelSequenceUtils.py +0 -0
  35. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/ModelSequenceUtilsTests.py +0 -0
  36. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/PdbxIoUtils.py +0 -0
  37. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/SequenceDataExportTests.py +0 -0
  38. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/SequenceDataExport_v2.py +0 -0
  39. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/SequenceDataStore.py +0 -0
  40. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/SequenceDataStoreTests.py +0 -0
  41. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/SequenceEditStore.py +0 -0
  42. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/SequenceEditStoreTests.py +0 -0
  43. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/TaxonomyDbUtils.py +0 -0
  44. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/TaxonomyUtils.py +0 -0
  45. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/TaxonomyUtilsTests.py +0 -0
  46. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/__init__.py +0 -0
  47. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/io/testAuto.py +0 -0
  48. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/link/PolymerLinkageDepict.py +0 -0
  49. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/link/__init__.py +0 -0
  50. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/update/UpdatePolymerEntityReference_v2.py +0 -0
  51. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/update/UpdatePolymerEntitySourceDetails.py +0 -0
  52. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/update/__init__.py +0 -0
  53. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/Autodict.py +0 -0
  54. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/GetSameSeqAnnotationWithTaxIdOnly.py +0 -0
  55. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/MultiProcLimit.py +0 -0
  56. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SearchEntityPolySeqs.py +0 -0
  57. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SeqReferenceSearchUtils.py +0 -0
  58. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SequenceAssign.py +0 -0
  59. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SequenceExamples.py +0 -0
  60. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SequenceFeatureDepict.py +0 -0
  61. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/SequenceReferenceData.py +0 -0
  62. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/UpdateSequenceDataStoreUtils.py +0 -0
  63. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/util/__init__.py +0 -0
  64. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/view3d/ModelViewer3D.py +0 -0
  65. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/view3d/__init__.py +0 -0
  66. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/webapp/SeqModWebApp_v2.py +0 -0
  67. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/webapp/SeqModWebRequest.py +0 -0
  68. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb/apps/seqmodule/webapp/__init__.py +0 -0
  69. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb.apps.seqmodule.egg-info/SOURCES.txt +0 -0
  70. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb.apps.seqmodule.egg-info/dependency_links.txt +0 -0
  71. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb.apps.seqmodule.egg-info/not-zip-safe +0 -0
  72. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb.apps.seqmodule.egg-info/requires.txt +0 -0
  73. {wwpdb_apps_seqmodule-0.27.3 → wwpdb_apps_seqmodule-0.29}/wwpdb.apps.seqmodule.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wwpdb.apps.seqmodule
3
- Version: 0.27.3
3
+ Version: 0.29
4
4
  Summary: wwPDB sequence module
5
5
  Home-page: https://github.com/wwPDB/py-wwpdb_apps_seqmodule
6
6
  Author: Ezra Peisach
@@ -2,4 +2,4 @@ __docformat__ = "restructuredtext en"
2
2
  __author__ = "Ezra Peisach"
3
3
  __email__ = "ezra.peisach@rcsb.org"
4
4
  __license__ = "Apache 2.0"
5
- __version__ = "0.27.3"
5
+ __version__ = "0.29"
@@ -699,7 +699,7 @@ class UpdatePolymerEntityPartitions(object):
699
699
  nextVer = curVer + 1
700
700
  #
701
701
  seqIdxNext = []
702
- if updateSequenceFlag:
702
+ if updateSequenceFlag or updatePolymerTypeFlag:
703
703
  # First update the sequences for each part IF the sequence has changed -
704
704
  _authSelectId, authSL, authFdObj = self.__getCurrentAuthSelection(entityId, partId=1)
705
705
  polyTypeCode = authFdObj.getPolymerType()
@@ -720,6 +720,7 @@ class UpdatePolymerEntityPartitions(object):
720
720
  for r3 in r3L:
721
721
  comment = self.__getAuthSeqComment(ir, pD, seqBegMin, seqEndMax)
722
722
  seqIdxNext.append((r3, str(ir), comment, ir, self.__srd.cnv3To1(r3), r3))
723
+ self.__lfh.write("r3=%r cnv3To1=%r\n" % (r3, self.__srd.cnv3To1(r3)))
723
724
  ir += 1
724
725
  #
725
726
  for pId in pD.keys():
@@ -754,7 +755,7 @@ class UpdatePolymerEntityPartitions(object):
754
755
  #
755
756
  self.__sds.setFeatureObj(authFdObj, seqId0, seqType="auth", partId=partId, altId=1, version=nextVer)
756
757
  #
757
- if not updateSequenceFlag:
758
+ if (not updateSequenceFlag) and (not updatePolymerTypeFlag):
758
759
  # Update the annotation of the prior sequence ...
759
760
  seqIdx = self.__sds.getSequence(seqId0, seqType="auth", partId=partId, altId=1, version=curVer)
760
761
  sTupL = []
@@ -138,10 +138,10 @@ class FetchReferenceSequenceUtils(object):
138
138
  if dbCode:
139
139
  self.__accCode, self.__refInfoD = self.__fetchSeqUtil.getRefInfo(dbName, dbCode, "", 0, 0)
140
140
  if (not self.__refInfoD) or ("sequence" not in self.__refInfoD) or (not self.__refInfoD["sequence"]):
141
- return False, {}
141
+ return False, False, {}
142
142
  #
143
143
  else:
144
- return False, {}
144
+ return False, False, {}
145
145
  #
146
146
  #
147
147
  # Removed per ticket DAOTHER-7903
@@ -219,12 +219,12 @@ class FetchReferenceSequenceUtils(object):
219
219
  blockList.append((start, end))
220
220
  #
221
221
  if not blockList:
222
- return False, {}
222
+ return False, False, {}
223
223
  #
224
224
  start = blockList[0][0]
225
225
  end = blockList[-1][1]
226
226
  if (start < 0) or ((2 * (end - start + 1)) < len(authSeqList)):
227
- return False, {}
227
+ return False, False, {}
228
228
  #
229
229
  identity = 0
230
230
  mutation = 0
@@ -355,8 +355,8 @@ class LocalBlastSearchUtils(object):
355
355
  #
356
356
  #
357
357
  #
358
- autoMatchStatus, skipBlastSearch, authHitList = self.__fetchAuthProvidedRefSequence(searchSequence, seqNumBeg, seqNumEnd, str(partNum), \
359
- taxId, mutationList, len(self.__entityD["PART_LIST"]))
358
+ autoMatchStatus, skipBlastSearch, authHitList = self.__fetchAuthProvidedRefSequence(searchSequence, seqNumBeg, seqNumEnd, str(partNum),
359
+ taxId, mutationList, len(self.__entityD["PART_LIST"]))
360
360
  if not autoMatchStatus:
361
361
  foundPerfectMatch = False
362
362
  #
@@ -40,6 +40,7 @@
40
40
  # 02-Sep-2020 zf Excluded 'Uncharacterized protein' molecule name from Uniprot
41
41
  # 03-Oct-2022 zf Excluded "SOURCE_STRAIN" from updateAuth() method.
42
42
  # add IS_AUTH_PROVIDED_ID
43
+ # 18-Aug-2024 zf Excluded "Uncharacterized conserved protein", "Protein of uncharacterized function", "Protein of uncharacterized function (DUF2001)"
43
44
  ##
44
45
  """
45
46
  Containers for sequence and residue labels/features used as identifiers and classifiers
@@ -89,6 +90,8 @@ class SequenceFeatureMap(object):
89
90
  authFD["SOURCE_COMMON_NAME"] = common_name
90
91
  #
91
92
  #
93
+ excludedList = [ "PREDICTED PROTEIN", "PROTEIN OF UNCHARACTERIZED FUNCTION", "UNCHARACTERIZED CONSERVED PROTEIN", "UNCHARACTERIZED PROTEIN" ]
94
+ #
92
95
  for mapTup in mapTupList:
93
96
  if mapTup[0] == "ENTITY_DESCRIPTION":
94
97
  updateFlag = False
@@ -99,7 +102,16 @@ class SequenceFeatureMap(object):
99
102
  updateFlag = True
100
103
  #
101
104
  elif refFD[mapTup[1]] is not None and len(refFD[mapTup[1]]) > 1:
102
- if (refFD[mapTup[1]].strip().upper() != "UNCHARACTERIZED PROTEIN") and (refFD[mapTup[1]].strip().upper() != "PREDICTED PROTEIN"):
105
+ uniProtName = refFD[mapTup[1]].strip().upper()
106
+ #
107
+ isExcludeName = False
108
+ for excludeName in excludedList:
109
+ if uniProtName.startswith(excludeName):
110
+ isExcludeName = True
111
+ break
112
+ #
113
+ #
114
+ if not isExcludeName:
103
115
  authFD[mapTup[0]] = refFD[mapTup[1]]
104
116
  updateFlag = True
105
117
  #
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wwpdb.apps.seqmodule
3
- Version: 0.27.3
3
+ Version: 0.29
4
4
  Summary: wwPDB sequence module
5
5
  Home-page: https://github.com/wwPDB/py-wwpdb_apps_seqmodule
6
6
  Author: Ezra Peisach