wwpdb.apps.seqmodule 0.24.11__tar.gz → 0.26__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.
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/PKG-INFO +13 -1
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/__init__.py +1 -1
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentDepictionTools.py +24 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SequenceDataAssemble_v2.py +28 -12
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SummaryView_v2.py +13 -13
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/BlastPlusReader.py +1 -1
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/webapp/SeqModWebApp_v2.py +8 -6
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/PKG-INFO +13 -1
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/README.md +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/setup.cfg +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/setup.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentBackEndEditingTools.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentExport.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentFrontEndUIEditor.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentStatistics.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentStatisticsTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentToolUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/AlignmentTools.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/DataImporter.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SequenceDataAssembleExample.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SequenceDataAssembleTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SequenceDataPrepTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SummaryViewDepiction.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/SummaryViewTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/AlignmentDataStore.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/FetchSeqInfoUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/ModelSequenceUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/ModelSequenceUtilsTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/PdbxIoUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/SequenceDataExportTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/SequenceDataExport_v2.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/SequenceDataStore.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/SequenceDataStoreTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/SequenceEditStore.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/SequenceEditStoreTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/TaxonomyDbUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/TaxonomyUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/TaxonomyUtilsTests.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/testAuto.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/link/PolymerLinkageDepict.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/link/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/update/UpdatePolymerEntityPartitions.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/update/UpdatePolymerEntityReference_v2.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/update/UpdatePolymerEntitySourceDetails.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/update/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/Autodict.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/FetchReferenceSequenceUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/GetSameSeqAnnotationWithTaxIdOnly.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/LocalBlastSearchUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/MultiProcLimit.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SearchEntityPolySeqs.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SeqReferenceSearchUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SequenceAssign.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SequenceExamples.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SequenceFeatureDepict.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SequenceLabel.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/SequenceReferenceData.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/UpdateSequenceDataStoreUtils.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/view3d/ModelViewer3D.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/view3d/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/webapp/SeqModWebRequest.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/webapp/__init__.py +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/SOURCES.txt +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/dependency_links.txt +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/not-zip-safe +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/requires.txt +0 -0
- {wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/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.
|
|
3
|
+
Version: 0.26
|
|
4
4
|
Summary: wwPDB sequence module
|
|
5
5
|
Home-page: https://github.com/wwPDB/py-wwpdb_apps_seqmodule
|
|
6
6
|
Author: Ezra Peisach
|
|
@@ -15,7 +15,19 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: wwpdb.utils.config>=0.33
|
|
19
|
+
Requires-Dist: wwpdb.io>=0.27
|
|
20
|
+
Requires-Dist: wwpdb.utils.session>=0.14
|
|
21
|
+
Requires-Dist: wwpdb.utils.wf>=0.30
|
|
22
|
+
Requires-Dist: wwpdb.utils.seqdb_v2~=0.11
|
|
23
|
+
Requires-Dist: wwpdb.utils.align>=0.11
|
|
24
|
+
Requires-Dist: wwpdb.utils.detach>=0.4.2
|
|
25
|
+
Requires-Dist: wwpdb.utils.dp>=0.42
|
|
26
|
+
Requires-Dist: wwpdb.utils.db>=0.28
|
|
27
|
+
Requires-Dist: rcsb.utils.multiproc
|
|
18
28
|
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: check-manifest; extra == "dev"
|
|
19
30
|
Provides-Extra: test
|
|
31
|
+
Requires-Dist: coverage; extra == "test"
|
|
20
32
|
|
|
21
33
|
See: README.md
|
|
@@ -315,6 +315,27 @@ class AlignmentDepictionTools(AlignmentBackEndEditingTools):
|
|
|
315
315
|
if alignLength < 1:
|
|
316
316
|
return
|
|
317
317
|
#
|
|
318
|
+
found_non_ala_residue = False
|
|
319
|
+
found_ala_residue = False
|
|
320
|
+
for alignTupList in self._seqAlignList:
|
|
321
|
+
for alignTup in alignTupList:
|
|
322
|
+
if (alignTup[1] == self._gapSymbol) or (alignTup[1].upper() == "ALA"):
|
|
323
|
+
if alignTup[1].upper() == "ALA":
|
|
324
|
+
found_ala_residue = True
|
|
325
|
+
#
|
|
326
|
+
continue
|
|
327
|
+
#
|
|
328
|
+
found_non_ala_residue = True
|
|
329
|
+
break
|
|
330
|
+
#
|
|
331
|
+
if found_non_ala_residue:
|
|
332
|
+
break
|
|
333
|
+
#
|
|
334
|
+
#
|
|
335
|
+
all_ala_flag = False
|
|
336
|
+
if (not found_non_ala_residue) and found_ala_residue:
|
|
337
|
+
all_ala_flag = True
|
|
338
|
+
#
|
|
318
339
|
fp = open(htmlFilePath, "w")
|
|
319
340
|
#
|
|
320
341
|
alignmentLine = 0
|
|
@@ -432,6 +453,9 @@ class AlignmentDepictionTools(AlignmentBackEndEditingTools):
|
|
|
432
453
|
ii = self._seqAlignList[sPos][alignIdx][5].find("hetero")
|
|
433
454
|
idS += "_" + self._seqAlignList[sPos][alignIdx][5][ii + 7 :]
|
|
434
455
|
#
|
|
456
|
+
if all_ala_flag and (seqType == "auth"):
|
|
457
|
+
cssPosClassBg += " cf-ala-unk "
|
|
458
|
+
#
|
|
435
459
|
# Add highlighting for linker regions in the sample sequence --
|
|
436
460
|
#
|
|
437
461
|
if (seqType == "auth") and (len(self._seqAlignList[sPos][alignIdx][5]) > 0):
|
|
@@ -125,8 +125,8 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
125
125
|
if not os.access(polyLinkPath, os.R_OK):
|
|
126
126
|
return False
|
|
127
127
|
#
|
|
128
|
-
ok, no_coord_issue, seqSimilarityInfoList, polymerLinkDistList, mixMseMetResidueList, entryD, entityD, instanceD, statisticsMap, depSeqAssign, \
|
|
129
|
-
|
|
128
|
+
ok, no_coord_issue, seqSimilarityInfoList, polymerLinkDistList, missingResidueInfoList, mixMseMetResidueList, entryD, entityD, instanceD, statisticsMap, depSeqAssign, \
|
|
129
|
+
seqAssign = self.__readJsonObject(polyLinkPath)
|
|
130
130
|
#
|
|
131
131
|
if not ok:
|
|
132
132
|
return False
|
|
@@ -180,8 +180,8 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
180
180
|
except: # noqa: E722 pylint: disable=bare-except
|
|
181
181
|
sortedEntityIdList = self.__entityIdList
|
|
182
182
|
#
|
|
183
|
-
self.__createSeqMatchFileAndMisMatchPickleFile(sortedEntityIdList, entityD, ownRefD, eSSRefD, list(newOldEntityIdMap.keys()), misMatchList,
|
|
184
|
-
notFoundMatchList, seqSimilarityInfoList, mixMseMetResidueList)
|
|
183
|
+
self.__createSeqMatchFileAndMisMatchPickleFile(sortedEntityIdList, entityD, ownRefD, eSSRefD, list(newOldEntityIdMap.keys()), misMatchList,
|
|
184
|
+
notFoundMatchList, seqSimilarityInfoList, missingResidueInfoList, mixMseMetResidueList)
|
|
185
185
|
#
|
|
186
186
|
self.__updateUtilDataStore(pdbxFilePath)
|
|
187
187
|
#
|
|
@@ -326,6 +326,7 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
326
326
|
no_coord_issue = True
|
|
327
327
|
seqSimilarityInfoList = []
|
|
328
328
|
polymerLinkDistList = []
|
|
329
|
+
missingResidueInfoList = []
|
|
329
330
|
mixMseMetResidueList = []
|
|
330
331
|
entryD = {}
|
|
331
332
|
entityD = {}
|
|
@@ -364,7 +365,7 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
364
365
|
seqAssign = jsonObj["annSeqAssign"]
|
|
365
366
|
#
|
|
366
367
|
#
|
|
367
|
-
for key,valD in entityD.items():
|
|
368
|
+
for key, valD in entityD.items():
|
|
368
369
|
if ("SEQ_TUP_LIST" not in valD) or (not valD["SEQ_TUP_LIST"]):
|
|
369
370
|
continue
|
|
370
371
|
#
|
|
@@ -380,15 +381,29 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
380
381
|
if hasMSE and hasMET:
|
|
381
382
|
mixMseMetResidueList.append("Entity " + key + " contains both MET and MSE.")
|
|
382
383
|
#
|
|
384
|
+
if ("INSTANCE_LIST" not in valD) or (not valD["INSTANCE_LIST"]):
|
|
385
|
+
continue
|
|
386
|
+
#
|
|
387
|
+
for instId in valD["INSTANCE_LIST"]:
|
|
388
|
+
if instId not in instanceD:
|
|
389
|
+
continue
|
|
390
|
+
#
|
|
391
|
+
if (10 * len(instanceD[instId])) > (3 * len(valD["SEQ_TUP_LIST"])):
|
|
392
|
+
continue
|
|
393
|
+
#
|
|
394
|
+
percent = float((len(valD["SEQ_TUP_LIST"]) - len(instanceD[instId])) * 100) / float(len(valD["SEQ_TUP_LIST"]))
|
|
395
|
+
missingResidueInfoList.append("%.1f" % percent + "% residues of chain '" + instId + "' (%d/%d residues) are missing in coordinates."
|
|
396
|
+
% (len(valD["SEQ_TUP_LIST"]) - len(instanceD[instId]), len(valD["SEQ_TUP_LIST"])))
|
|
397
|
+
#
|
|
383
398
|
#
|
|
384
|
-
return True, no_coord_issue, seqSimilarityInfoList, polymerLinkDistList, mixMseMetResidueList, entryD, entityD, instanceD, \
|
|
385
|
-
|
|
399
|
+
return True, no_coord_issue, seqSimilarityInfoList, polymerLinkDistList, missingResidueInfoList, mixMseMetResidueList, entryD, entityD, instanceD, \
|
|
400
|
+
statisticsMap, depSeqAssign, seqAssign
|
|
386
401
|
except: # noqa: E722 pylint: disable=bare-except
|
|
387
402
|
if self._verbose:
|
|
388
403
|
traceback.print_exc(file=self._lfh)
|
|
389
404
|
#
|
|
390
405
|
#
|
|
391
|
-
return False, False, [], [], [], {}, {}, {}, {}, {}, {}
|
|
406
|
+
return False, False, [], [], [], [], {}, {}, {}, {}, {}, {}
|
|
392
407
|
|
|
393
408
|
def __getAuthDefinedRefD(self, depSeqAssign):
|
|
394
409
|
"""Get author provided reference information from pdbx_struct_ref_seq_depositor_info category"""
|
|
@@ -505,8 +520,8 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
505
520
|
tmpPolyLinkPath = os.path.join(self.__sessionPath, self.__dataSetId + "-poly-link.json")
|
|
506
521
|
self.__calcPolymerLinkages(pdbxFilePath=prevModelFilePath, polyLinkPath=tmpPolyLinkPath)
|
|
507
522
|
#
|
|
508
|
-
ok, _no_coord_issue, _seqSimilarityInfoList, _polymerLinkDistList, _mixMseMetResidueList, _entryD, prevEntityD, prevInstanceD, _statisticsMap, \
|
|
509
|
-
|
|
523
|
+
ok, _no_coord_issue, _seqSimilarityInfoList, _polymerLinkDistList, _missingResidueInfoList, _mixMseMetResidueList, _entryD, prevEntityD, prevInstanceD, _statisticsMap, \
|
|
524
|
+
_depSeqAssign, _seqAssign = self.__readJsonObject(tmpPolyLinkPath)
|
|
510
525
|
#
|
|
511
526
|
if not ok:
|
|
512
527
|
return {}, [], []
|
|
@@ -980,8 +995,8 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
980
995
|
#
|
|
981
996
|
return rList, rList, []
|
|
982
997
|
|
|
983
|
-
def __createSeqMatchFileAndMisMatchPickleFile(self, sortedEntityIdList, entityD, ownRefD, eSSRefD, prevEntityIdList, prevMisMatchList,
|
|
984
|
-
prevNotFoundMatchList, seqSimilarityInfoList, mixMseMetResidueList):
|
|
998
|
+
def __createSeqMatchFileAndMisMatchPickleFile(self, sortedEntityIdList, entityD, ownRefD, eSSRefD, prevEntityIdList, prevMisMatchList,
|
|
999
|
+
prevNotFoundMatchList, seqSimilarityInfoList, missingResidueInfoList, mixMseMetResidueList):
|
|
985
1000
|
"""Create D_xxxxxxxxxx_seqmatch_P1.cif.Vx file"""
|
|
986
1001
|
annList = []
|
|
987
1002
|
misMatchList = []
|
|
@@ -1054,6 +1069,7 @@ class SequenceDataAssemble(UpdateSequenceDataStoreUtils):
|
|
|
1054
1069
|
#
|
|
1055
1070
|
warningMsgMap["mismatch"] = misMatchList
|
|
1056
1071
|
warningMsgMap["not_found_existing_match"] = notFoundMatchList
|
|
1072
|
+
warningMsgMap["missing_residue"] = missingResidueInfoList
|
|
1057
1073
|
warningMsgMap["mix_mse_met"] = mixMseMetResidueList
|
|
1058
1074
|
#
|
|
1059
1075
|
fb = open(self.__misMatchPath, "wb")
|
|
@@ -229,7 +229,7 @@ class SummaryView(object):
|
|
|
229
229
|
rL, withGapScoreList, withoutGapScoreList, hitDbInfoList, hitDbIdList, authTaxIdList = self.__buildReferenceSection(groupId=gId)
|
|
230
230
|
summaryDataObj[gId]["ref"] = rL
|
|
231
231
|
#
|
|
232
|
-
summaryDataObj[gId]["xyz"],missingResidueInfoList = self.__buildCoordinateSection(groupId=gId, authSeqLength=seqLength)
|
|
232
|
+
summaryDataObj[gId]["xyz"], missingResidueInfoList = self.__buildCoordinateSection(groupId=gId, authSeqLength=seqLength)
|
|
233
233
|
if len(missingResidueInfoList) > 0:
|
|
234
234
|
for missingInfo in missingResidueInfoList:
|
|
235
235
|
warningMsg += missingInfo + "<br />\n"
|
|
@@ -377,12 +377,12 @@ class SummaryView(object):
|
|
|
377
377
|
#
|
|
378
378
|
partIdList = self.__sds.getPartIds(groupId, dataType="sequence", seqType="auth")
|
|
379
379
|
if len(partIdList) == 0:
|
|
380
|
-
return {}, 0, {}, "", "", []
|
|
380
|
+
return {}, 0, {}, "", "", [], 0
|
|
381
381
|
#
|
|
382
382
|
altId = 1
|
|
383
383
|
verList = self.__sds.getVersionIds(groupId, partId=partIdList[0], altId=altId, dataType="sequence", seqType="auth")
|
|
384
384
|
if len(verList) == 0:
|
|
385
|
-
return {}, 0, {}, "", "", []
|
|
385
|
+
return {}, 0, {}, "", "", [], 0
|
|
386
386
|
#
|
|
387
387
|
if self.__verbose:
|
|
388
388
|
self.__lfh.write("SummaryView.__buildAuthSection() groupId %r op %s \n" % (groupId, op))
|
|
@@ -399,7 +399,7 @@ class SummaryView(object):
|
|
|
399
399
|
#
|
|
400
400
|
return dT, polyALA_assignment, summaryPageD, method, polyType, dbAccessionList, seqLength
|
|
401
401
|
|
|
402
|
-
def __buildCoordinateSection(self, groupId=None, authSeqLength=0):
|
|
402
|
+
def __buildCoordinateSection(self, groupId=None, authSeqLength=0): # pylint: disable=unused-argument
|
|
403
403
|
"""Assemble the data content for the coordinate sequence summary view.
|
|
404
404
|
|
|
405
405
|
Returns: summaryDataObject
|
|
@@ -457,11 +457,11 @@ class SummaryView(object):
|
|
|
457
457
|
# JDW add instance here to provide a selection group
|
|
458
458
|
if ver == maxVrsnNum:
|
|
459
459
|
rowStatusList.append((isSelected, isAligned, seqId, "maxver"))
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
(len(seqXyz), authSeqLength))
|
|
464
|
-
|
|
460
|
+
# if (authSeqLength > 0) and ((authSeqLength * 3) >= (10 * len(seqXyz))):
|
|
461
|
+
# percent = float((authSeqLength - len(seqXyz)) * 100) / float(authSeqLength)
|
|
462
|
+
# missingResidueInfoList.append("%.1f" % percent + "% residues of chain '" + seqId + "' (%d/%d residues) are missing in coordinates." %
|
|
463
|
+
# (authSeqLength - len(seqXyz), authSeqLength))
|
|
464
|
+
# #
|
|
465
465
|
else:
|
|
466
466
|
rowStatusList.append((isSelected, isAligned, seqId, ""))
|
|
467
467
|
#
|
|
@@ -478,7 +478,7 @@ class SummaryView(object):
|
|
|
478
478
|
dT["ROW_IDS"] = rowIdList
|
|
479
479
|
dT["ROW_STATUS"] = rowStatusList
|
|
480
480
|
dT["ROW_DATA_DICT"] = rowDataDictList
|
|
481
|
-
return dT,missingResidueInfoList
|
|
481
|
+
return dT, missingResidueInfoList
|
|
482
482
|
|
|
483
483
|
def __buildReferenceSection(self, groupId=None):
|
|
484
484
|
"""Assemble the data content for the reference sequence summary view.
|
|
@@ -733,7 +733,7 @@ class SummaryView(object):
|
|
|
733
733
|
"""
|
|
734
734
|
authFObj = self.__sds.getFeatureObj(seqId, "auth", partId=partId, altId=altId, version=version)
|
|
735
735
|
if authFObj.getPolymerType() != "AA":
|
|
736
|
-
return 0, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType()
|
|
736
|
+
return 0, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType(), 0
|
|
737
737
|
#
|
|
738
738
|
seqAuth = self.__sds.getSequence(seqId=seqId, seqType="auth", partId=partId, altId=altId, version=version)
|
|
739
739
|
has_consecutive_ALA = False
|
|
@@ -752,9 +752,9 @@ class SummaryView(object):
|
|
|
752
752
|
has_consecutive_ALA = True
|
|
753
753
|
#
|
|
754
754
|
if count == len(seqAuth):
|
|
755
|
-
return 1, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType()
|
|
755
|
+
return 1, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType(), len(seqAuth)
|
|
756
756
|
elif has_consecutive_ALA:
|
|
757
|
-
return 2, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType()
|
|
757
|
+
return 2, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType(), len(seqAuth)
|
|
758
758
|
#
|
|
759
759
|
return 0, authFObj.getEntitySourceMethod(), authFObj.getPolymerLinkingType(), len(seqAuth)
|
|
760
760
|
|
|
@@ -947,12 +947,14 @@ class SeqModWebAppWorker(object):
|
|
|
947
947
|
warningMsg += "Sequences not matched to existing entries in entity: " + warningD["not_found_existing_match"][0]
|
|
948
948
|
#
|
|
949
949
|
#
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
warningMsg
|
|
954
|
-
|
|
955
|
-
|
|
950
|
+
for warningType in ("missing_residue", "mix_mse_met"):
|
|
951
|
+
if (warningType in warningD) and len(warningD[warningType]) > 0:
|
|
952
|
+
for textMsg in warningD[warningType]:
|
|
953
|
+
if warningMsg:
|
|
954
|
+
warningMsg += "</br>\n"
|
|
955
|
+
#
|
|
956
|
+
warningMsg += textMsg
|
|
957
|
+
#
|
|
956
958
|
#
|
|
957
959
|
#
|
|
958
960
|
if warningMsg:
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wwpdb.apps.seqmodule
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26
|
|
4
4
|
Summary: wwPDB sequence module
|
|
5
5
|
Home-page: https://github.com/wwPDB/py-wwpdb_apps_seqmodule
|
|
6
6
|
Author: Ezra Peisach
|
|
@@ -15,7 +15,19 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: wwpdb.utils.config>=0.33
|
|
19
|
+
Requires-Dist: wwpdb.io>=0.27
|
|
20
|
+
Requires-Dist: wwpdb.utils.session>=0.14
|
|
21
|
+
Requires-Dist: wwpdb.utils.wf>=0.30
|
|
22
|
+
Requires-Dist: wwpdb.utils.seqdb_v2~=0.11
|
|
23
|
+
Requires-Dist: wwpdb.utils.align>=0.11
|
|
24
|
+
Requires-Dist: wwpdb.utils.detach>=0.4.2
|
|
25
|
+
Requires-Dist: wwpdb.utils.dp>=0.42
|
|
26
|
+
Requires-Dist: wwpdb.utils.db>=0.28
|
|
27
|
+
Requires-Dist: rcsb.utils.multiproc
|
|
18
28
|
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: check-manifest; extra == "dev"
|
|
19
30
|
Provides-Extra: test
|
|
31
|
+
Requires-Dist: coverage; extra == "test"
|
|
20
32
|
|
|
21
33
|
See: README.md
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/align/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/control/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/PdbxIoUtils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/TaxonomyUtils.py
RENAMED
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/__init__.py
RENAMED
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/io/testAuto.py
RENAMED
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/link/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/update/__init__.py
RENAMED
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/Autodict.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/util/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/view3d/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb/apps/seqmodule/webapp/__init__.py
RENAMED
|
File without changes
|
{wwpdb.apps.seqmodule-0.24.11 → wwpdb.apps.seqmodule-0.26}/wwpdb.apps.seqmodule.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|